Searched refs:pSchema (Results 1 - 25 of 30) sorted by relevance

12

/external/chromium_org/third_party/sqlite/src/src/
H A Dstatus.c169 Schema *pSchema = db->aDb[i].pSchema; local
170 if( ALWAYS(pSchema!=0) ){
174 pSchema->tblHash.count
175 + pSchema->trigHash.count
176 + pSchema->idxHash.count
177 + pSchema->fkeyHash.count
179 nByte += sqlite3MallocSize(pSchema->tblHash.ht);
180 nByte += sqlite3MallocSize(pSchema->trigHash.ht);
181 nByte += sqlite3MallocSize(pSchema
[all...]
H A Dcallback.c412 Schema *pSchema = (Schema *)p; local
414 temp1 = pSchema->tblHash;
415 temp2 = pSchema->trigHash;
416 sqlite3HashInit(&pSchema->trigHash);
417 sqlite3HashClear(&pSchema->idxHash);
422 sqlite3HashInit(&pSchema->tblHash);
428 sqlite3HashClear(&pSchema->fkeyHash);
429 pSchema->pSeqTab = 0;
430 if( pSchema->flags & DB_SchemaLoaded ){
431 pSchema
[all...]
H A Dtrigger.c48 Schema * const pTmpSchema = pParse->db->aDb[1].pSchema;
55 if( pTmpSchema!=pTab->pSchema ){
60 if( pTrig->pTabSchema==pTab->pSchema
131 && pTab->pSchema==db->aDb[1].pSchema ){
170 if( sqlite3HashFind(&(db->aDb[iDb].pSchema->trigHash),
201 iTabDb = sqlite3SchemaToIndex(db, pTab->pSchema);
233 pTrigger->pSchema = db->aDb[iDb].pSchema;
234 pTrigger->pTabSchema = pTab->pSchema;
[all...]
H A Dprepare.c174 assert( db->aDb[iDb].pSchema );
251 pDb->pSchema->schema_cookie = meta[BTREE_SCHEMA_VERSION-1];
278 pDb->pSchema->enc = ENC(db);
280 if( pDb->pSchema->cache_size==0 ){
283 pDb->pSchema->cache_size = size;
284 sqlite3BtreeSetCacheSize(pDb->pBt, pDb->pSchema->cache_size);
293 pDb->pSchema->file_format = (u8)meta[BTREE_FILE_FORMAT-1];
294 if( pDb->pSchema->file_format==0 ){
295 pDb->pSchema->file_format = 1;
297 if( pDb->pSchema
493 sqlite3SchemaToIndex(sqlite3 *db, Schema *pSchema) argument
[all...]
H A Dalter.c301 const Schema *pTempSchema = pParse->db->aDb[1].pSchema; /* Temp db schema */
308 if( pTab->pSchema!=pTempSchema ){
311 if( pTrig->pSchema==pTempSchema ){
343 iDb = sqlite3SchemaToIndex(pParse->db, pTab->pSchema);
349 int iTrigDb = sqlite3SchemaToIndex(pParse->db, pTrig->pSchema);
419 iDb = sqlite3SchemaToIndex(pParse->db, pTab->pSchema);
640 iDb = sqlite3SchemaToIndex(db, pNew->pSchema);
780 iDb = sqlite3SchemaToIndex(db, pTab->pSchema);
812 pNew->pSchema = db->aDb[iDb].pSchema;
[all...]
H A Dbuild.c162 db->aDb[iDb].pSchema->iGeneration);
281 p = sqlite3HashFind(&db->aDb[j].pSchema->tblHash, zName, nName);
344 Schema *pSchema = db->aDb[j].pSchema; local
345 assert( pSchema );
348 p = sqlite3HashFind(&pSchema->idxHash, zName, nName);
377 pHash = &db->aDb[iDb].pSchema->idxHash;
417 assert( pDb->pSchema!=0 );
418 sqlite3SchemaClear(pDb->pSchema);
426 assert( pDb->pSchema!
1633 Schema *pSchema = p->pSchema; local
[all...]
H A Dattach.c135 aNew->pSchema = sqlite3SchemaGet(db, aNew->pBt);
136 if( !aNew->pSchema ){
138 }else if( aNew->pSchema->file_format && aNew->pSchema->enc!=ENC(db) ){
203 db->aDb[iDb].pSchema = 0;
276 pDb->pSchema = 0;
H A Dauth.c137 Schema *pSchema, /* The schema of the expression */
148 iDb = sqlite3SchemaToIndex(pParse->db, pSchema);
134 sqlite3AuthRead( Parse *pParse, Expr *pExpr, Schema *pSchema, SrcList *pTabList ) argument
H A Dbtmutex.c241 ** db->aDb[iDb].pSchema structure. The mutexes required for schema
247 ** If pSchema is not NULL, then iDb is computed from pSchema and
250 int sqlite3SchemaMutexHeld(sqlite3 *db, int iDb, Schema *pSchema){ argument
253 if( pSchema ) iDb = sqlite3SchemaToIndex(db, pSchema);
H A Danalyze.c150 iDb = sqlite3SchemaToIndex(db, pTab->pSchema);
177 assert( iDb==sqlite3SchemaToIndex(db, pIdx->pSchema) );
384 Schema *pSchema = db->aDb[iDb].pSchema; /* Schema of database iDb */ local
395 for(k=sqliteHashFirst(&pSchema->tblHash); k; k=sqliteHashNext(k)){
413 iDb = sqlite3SchemaToIndex(pParse->db, pTab->pSchema);
612 for(i=sqliteHashFirst(&db->aDb[iDb].pSchema->idxHash);i;i=sqliteHashNext(i)){
H A Dresolve.c143 Schema *pSchema = 0; /* Schema of the expression */ local
168 iDb = sqlite3SchemaToIndex(db, pTab->pSchema);
187 pSchema = pTab->pSchema;
197 pSchema = pTab->pSchema;
244 pSchema = pTab->pSchema;
390 sqlite3AuthRead(pParse, pExpr, pSchema, pNC->pSrcList);
H A Dfkey.c583 return (FKey *)sqlite3HashFind(&pTab->pSchema->fkeyHash, pTab->zName, nName);
701 iDb = sqlite3SchemaToIndex(db, pTab->pSchema);
1112 pTrigger->pSchema = pTab->pSchema;
1113 pTrigger->pTabSchema = pTab->pSchema;
1157 assert( db==0 || sqlite3SchemaMutexHeld(db, 0, pTab->pSchema) );
1167 sqlite3HashInsert(&pTab->pSchema->fkeyHash, z, sqlite3Strlen30(z), p);
H A Dvtab.c150 assert( db==0 || sqlite3SchemaMutexHeld(db, 0, p->pSchema) );
281 iDb = sqlite3SchemaToIndex(db, pTable->pSchema);
357 iDb = sqlite3SchemaToIndex(db, pTab->pSchema);
386 Schema *pSchema = pTab->pSchema; local
389 assert( sqlite3SchemaMutexHeld(db, 0, pSchema) );
390 pOld = sqlite3HashInsert(&pSchema->tblHash, zName, nName, pTab);
H A Dinsert.c240 assert( sqlite3SchemaMutexHeld(db, 0, pDb->pSchema) );
241 sqlite3OpenTable(pParse, 0, p->iDb, pDb->pSchema->pSeqTab, OP_OpenRead);
291 assert( sqlite3SchemaMutexHeld(db, 0, pDb->pSchema) );
292 sqlite3OpenTable(pParse, 0, p->iDb, pDb->pSchema->pSeqTab, OP_OpenWrite);
494 iDb = sqlite3SchemaToIndex(db, pTab->pSchema);
1495 iDb = sqlite3SchemaToIndex(pParse->db, pTab->pSchema);
1501 assert( pIdx->pSchema==pTab->pSchema );
1749 iDbSrc = sqlite3SchemaToIndex(pParse->db, pSrc->pSchema);
H A Ddelete.c287 iDb = sqlite3SchemaToIndex(db, pTab->pSchema);
358 assert( pIdx->pSchema==pTab->pSchema );
H A Dvdbeblob.c257 int iDb = sqlite3SchemaToIndex(db, pTab->pSchema);
268 sqlite3VdbeChangeP2(v, 1, pTab->pSchema->schema_cookie);
269 sqlite3VdbeChangeP3(v, 1, pTab->pSchema->iGeneration);
H A DbtreeInt.h382 ** The pSchema field may be set once under BtShared.mutex and
427 void *pSchema; /* Pointer to space allocated by sqlite3BtreeSchema() */ member in struct:BtShared
428 void (*xFreeSchema)(void*); /* Destructor for BtShared.pSchema */
H A DsqliteInt.h666 Schema *pSchema; /* Pointer to database schema (possibly shared) */ member in struct:Db
702 ** Db.pSchema->flags field.
704 #define DbHasProperty(D,I,P) (((D)->aDb[I].pSchema->flags&(P))==(P))
705 #define DbHasAnyProperty(D,I,P) (((D)->aDb[I].pSchema->flags&(P))!=0)
706 #define DbSetProperty(D,I,P) (D)->aDb[I].pSchema->flags|=(P)
707 #define DbClearProperty(D,I,P) (D)->aDb[I].pSchema->flags&=~(P)
710 ** Allowed values for the DB.pSchema->flags field.
911 #define ENC(db) ((db)->aDb[0].pSchema->enc)
1293 Trigger *pTrigger; /* List of triggers stored in pSchema */
1294 Schema *pSchema; /* Schem member in struct:Table
1482 Schema *pSchema; /* Schema containing this index */ member in struct:Index
2307 Schema *pSchema; /* Schema containing the trigger */ member in struct:Trigger
[all...]
H A Dpragma.c392 pDb->pSchema->cache_size = size;
393 sqlite3BtreeSetCacheSize(pDb->pBt, pDb->pSchema->cache_size);
696 returnSingleInt(pParse, "cache_size", pDb->pSchema->cache_size);
699 pDb->pSchema->cache_size = size;
700 sqlite3BtreeSetCacheSize(pDb->pBt, pDb->pSchema->cache_size);
1116 pTbls = &db->aDb[i].pSchema->tblHash;
H A Dvacuum.c335 pDb->pSchema = 0;
H A Dmain.c730 pDb->pSchema = 0;
791 sqlite3DbFree(db, db->aDb[1].pSchema);
1946 db->aDb[0].pSchema = sqlite3SchemaGet(db, db->aDb[0].pBt);
1947 db->aDb[1].pSchema = sqlite3SchemaGet(db, 0);
H A Dupdate.c143 iDb = sqlite3SchemaToIndex(pParse->db, pTab->pSchema);
/external/chromium_org/third_party/sqlite/amalgamation/
H A Dsqlite3.c9011 Schema *pSchema; /* Pointer to database schema (possibly shared) */ member in struct:Db
9047 ** Db.pSchema->flags field.
9049 #define DbHasProperty(D,I,P) (((D)->aDb[I].pSchema->flags&(P))==(P))
9050 #define DbHasAnyProperty(D,I,P) (((D)->aDb[I].pSchema->flags&(P))!=0)
9051 #define DbSetProperty(D,I,P) (D)->aDb[I].pSchema->flags|=(P)
9052 #define DbClearProperty(D,I,P) (D)->aDb[I].pSchema->flags&=~(P)
9055 ** Allowed values for the DB.pSchema->flags field.
9256 #define ENC(db) ((db)->aDb[0].pSchema->enc)
9638 Trigger *pTrigger; /* List of triggers stored in pSchema */
9639 Schema *pSchema; /* Schem member in struct:Table
9827 Schema *pSchema; /* Schema containing this index */ member in struct:Index
10652 Schema *pSchema; /* Schema containing the trigger */ member in struct:Trigger
12791 Schema *pSchema = db->aDb[i].pSchema; local
46629 void *pSchema; /* Pointer to space allocated by sqlite3BtreeSchema() */ member in struct:BtShared
47080 sqlite3SchemaMutexHeld(sqlite3 *db, int iDb, Schema *pSchema) argument
47246 Schema *pSchema = (Schema *)pBtree->pBt->pSchema; local
69674 Schema *pSchema = 0; /* Schema of the expression */ local
75706 Schema *pSchema = db->aDb[iDb].pSchema; /* Schema of database iDb */ local
76722 sqlite3AuthRead( Parse *pParse, Expr *pExpr, Schema *pSchema, SrcList *pTabList ) argument
77183 Schema *pSchema = db->aDb[j].pSchema; local
78472 Schema *pSchema = p->pSchema; local
81010 Schema *pSchema = (Schema *)p; local
89555 sqlite3SchemaToIndex(sqlite3 *db, Schema *pSchema) argument
97098 Schema *pSchema = pTab->pSchema; local
[all...]
/external/sqlite/dist/orig/
H A Dsqlite3.c10323 Schema *pSchema; /* Pointer to database schema (possibly shared) */ member in struct:Db
10359 ** Db.pSchema->flags field.
10361 #define DbHasProperty(D,I,P) (((D)->aDb[I].pSchema->schemaFlags&(P))==(P))
10362 #define DbHasAnyProperty(D,I,P) (((D)->aDb[I].pSchema->schemaFlags&(P))!=0)
10363 #define DbSetProperty(D,I,P) (D)->aDb[I].pSchema->schemaFlags|=(P)
10364 #define DbClearProperty(D,I,P) (D)->aDb[I].pSchema->schemaFlags&=~(P)
10367 ** Allowed values for the DB.pSchema->flags field.
10547 #define ENC(db) ((db)->aDb[0].pSchema->enc)
10967 Trigger *pTrigger; /* List of triggers stored in pSchema */
10968 Schema *pSchema; /* Schem member in struct:Table
11164 Schema *pSchema; /* Schema containing this index */ member in struct:Index
11564 Schema *pSchema; /* Schema to which this item is fixed */ member in struct:SrcList::SrcList_item
12065 Schema *pSchema; /* Schema containing the trigger */ member in struct:Trigger
12140 Schema *pSchema; /* Fix items to this schema */ member in struct:DbFixer
14499 Schema *pSchema = db->aDb[i].pSchema; local
51023 void *pSchema; /* Pointer to space allocated by sqlite3BtreeSchema() */ member in struct:BtShared
51500 sqlite3SchemaMutexHeld(sqlite3 *db, int iDb, Schema *pSchema) argument
51685 Schema *pSchema = (Schema *)pBtree->pBt->pSchema; local
76995 Schema *pSchema = 0; /* Schema of the expression */ local
84698 Schema *pSchema = db->aDb[iDb].pSchema; /* Schema of database iDb */ local
85974 sqlite3AuthRead( Parse *pParse, Expr *pExpr, Schema *pSchema, SrcList *pTabList ) argument
86477 Schema *pSchema = db->aDb[j].pSchema; local
88039 Schema *pSchema = p->pSchema; local
90785 Schema *pSchema = (Schema *)p; local
101064 sqlite3SchemaToIndex(sqlite3 *db, Schema *pSchema) argument
109756 Schema *pSchema = pTab->pSchema; local
122956 Schema *pSchema = db->aDb[i].pSchema; local
[all...]
/external/sqlite/dist/
H A Dsqlite3.c10323 Schema *pSchema; /* Pointer to database schema (possibly shared) */ member in struct:Db
10359 ** Db.pSchema->flags field.
10361 #define DbHasProperty(D,I,P) (((D)->aDb[I].pSchema->schemaFlags&(P))==(P))
10362 #define DbHasAnyProperty(D,I,P) (((D)->aDb[I].pSchema->schemaFlags&(P))!=0)
10363 #define DbSetProperty(D,I,P) (D)->aDb[I].pSchema->schemaFlags|=(P)
10364 #define DbClearProperty(D,I,P) (D)->aDb[I].pSchema->schemaFlags&=~(P)
10367 ** Allowed values for the DB.pSchema->flags field.
10547 #define ENC(db) ((db)->aDb[0].pSchema->enc)
10967 Trigger *pTrigger; /* List of triggers stored in pSchema */
10968 Schema *pSchema; /* Schem member in struct:Table
11164 Schema *pSchema; /* Schema containing this index */ member in struct:Index
11564 Schema *pSchema; /* Schema to which this item is fixed */ member in struct:SrcList::SrcList_item
12065 Schema *pSchema; /* Schema containing the trigger */ member in struct:Trigger
12140 Schema *pSchema; /* Fix items to this schema */ member in struct:DbFixer
14499 Schema *pSchema = db->aDb[i].pSchema; local
51043 void *pSchema; /* Pointer to space allocated by sqlite3BtreeSchema() */ member in struct:BtShared
51520 sqlite3SchemaMutexHeld(sqlite3 *db, int iDb, Schema *pSchema) argument
51705 Schema *pSchema = (Schema *)pBtree->pBt->pSchema; local
77015 Schema *pSchema = 0; /* Schema of the expression */ local
84718 Schema *pSchema = db->aDb[iDb].pSchema; /* Schema of database iDb */ local
85994 sqlite3AuthRead( Parse *pParse, Expr *pExpr, Schema *pSchema, SrcList *pTabList ) argument
86497 Schema *pSchema = db->aDb[j].pSchema; local
88059 Schema *pSchema = p->pSchema; local
90805 Schema *pSchema = (Schema *)p; local
101084 sqlite3SchemaToIndex(sqlite3 *db, Schema *pSchema) argument
109776 Schema *pSchema = pTab->pSchema; local
122976 Schema *pSchema = db->aDb[i].pSchema; local
[all...]

Completed in 1539 milliseconds

12