HomeSort by relevance Sort by last modified time
    Searched refs:iDb (Results 1 - 25 of 26) sorted by null

1 2

  /external/chromium_org/third_party/sqlite/src/src/
analyze.c 35 int iDb, /* The database we are looking in */
60 pDb = &db->aDb[iDb];
80 sqlite3TableLock(pParse, iDb, aRoot[i], 1, zTab);
87 sqlite3VdbeAddOp2(v, OP_Clear, aRoot[i], iDb);
94 sqlite3VdbeAddOp3(v, OP_OpenWrite, iStatCur+i, aRoot[i], iDb);
119 int iDb; /* Index of database containing pTab */
150 iDb = sqlite3SchemaToIndex(db, pTab->pSchema);
151 assert( iDb>=0 );
152 assert( sqlite3SchemaMutexHeld(db, iDb, 0) );
155 db->aDb[iDb].zName ) )
    [all...]
prepare.c 55 int iDb = pData->iDb;
60 DbClearProperty(db, iDb, DB_Empty);
66 assert( iDb>=0 && iDb<db->nDb );
81 db->init.iDb = iDb;
87 db->init.iDb = 0;
90 assert( iDb==1 );
111 pIndex = sqlite3FindIndex(db, argv[0], db->aDb[iDb].zName)
    [all...]
auth.c 105 int iDb /* Index of containing database. */
108 char *zDb = db->aDb[iDb].zName; /* Name of attached database */
113 if( db->nDb>2 || iDb!=0 ){
144 int iDb; /* The index of the database the expression refers to */
148 iDb = sqlite3SchemaToIndex(pParse->db, pSchema);
149 if( iDb<0 ){
179 assert( iDb>=0 && iDb<db->nDb );
180 if( SQLITE_IGNORE==sqlite3AuthReadCol(pParse, pTab->zName, zCol, iDb) ){
build.c 42 int iDb; /* The database containing the table to be locked */
51 ** The table to be locked has root page iTab and is found in database iDb.
60 int iDb, /* Index of the database containing the table to lock */
69 assert( iDb>=0 );
73 if( p->iDb==iDb && p->iTab==iTab ){
84 p->iDb = iDb;
107 int p1 = p->iDb;
152 int iDb;
    [all...]
alter.c 335 int iDb; /* Index of database containing pTab */
343 iDb = sqlite3SchemaToIndex(pParse->db, pTab->pSchema);
344 assert( iDb>=0 );
350 assert( iTrigDb==iDb || iTrigDb==1 );
356 sqlite3VdbeAddOp4(v, OP_DropTable, iDb, 0, 0, pTab->zName, 0);
361 sqlite3VdbeAddOp4(v, OP_ParseSchema, iDb, 0, 0, zWhere, P4_DYNAMIC);
398 int iDb; /* Database that contains the table */
399 char *zDb; /* Name of database iDb */
419 iDb = sqlite3SchemaToIndex(pParse->db, pTab->pSchema);
420 zDb = db->aDb[iDb].zName
    [all...]
trigger.c 96 int iDb; /* The database to store the trigger in */
111 iDb = 1;
115 iDb = sqlite3TwoPartName(pParse, pName1, pName2, &pName);
116 if( iDb<0 ){
122 ** then set iDb to 1 to create the trigger in the temporary database.
132 iDb = 1;
138 if( sqlite3FixInit(&sFix, pParse, iDb, "trigger", pName) &&
145 if( db->init.iDb==1 ){
169 assert( sqlite3SchemaMutexHeld(db, iDb, 0) );
170 if( sqlite3HashFind(&(db->aDb[iDb].pSchema->trigHash)
    [all...]
attach.c 198 int iDb = db->nDb - 1;
199 assert( iDb>=2 );
200 if( db->aDb[iDb].pBt ){
201 sqlite3BtreeClose(db->aDb[iDb].pBt);
202 db->aDb[iDb].pBt = 0;
203 db->aDb[iDb].pSchema = 0;
206 db->nDb = iDb;
412 int iDb, /* This is the database that must be used */
418 if( NEVER(iDb<0) || iDb==1 ) return 0
    [all...]
btmutex.c 241 ** db->aDb[iDb].pSchema structure. The mutexes required for schema
245 ** (2) if iDb!=1, then the mutex on db->aDb[iDb].pBt.
247 ** If pSchema is not NULL, then iDb is computed from pSchema and
250 int sqlite3SchemaMutexHeld(sqlite3 *db, int iDb, Schema *pSchema){
253 if( pSchema ) iDb = sqlite3SchemaToIndex(db, pSchema);
254 assert( iDb>=0 && iDb<db->nDb );
256 if( iDb==1 ) return 1;
257 p = db->aDb[iDb].pBt
    [all...]
pragma.c 312 int iDb; /* Database index for <database> */
320 /* Interpret the [database.] part of the pragma statement. iDb is the
322 iDb = sqlite3TwoPartName(pParse, pId1, pId2, &pId);
323 if( iDb<0 ) return;
324 pDb = &db->aDb[iDb];
329 if( iDb==1 && sqlite3OpenTempDatabase(pParse) ){
377 sqlite3VdbeUsesBtree(v, iDb);
383 sqlite3VdbeChangeP1(v, addr, iDb);
384 sqlite3VdbeChangeP1(v, addr+1, iDb);
388 sqlite3BeginWriteOperation(pParse, 0, iDb);
    [all...]
insert.c 23 int iDb, /* The database index in sqlite3.aDb[] */
31 sqlite3TableLock(p, iDb, pTab->tnum, (opcode==OP_OpenWrite)?1:0, pTab->zName);
32 sqlite3VdbeAddOp3(v, opcode, iCur, pTab->tnum, iDb);
130 ** Return non-zero if the table pTab in database iDb or any of its indices
133 ** a statement of the form "INSERT INTO <iDb, pTab> SELECT ..." can
136 static int readsTable(Parse *p, int iStartAddr, int iDb, Table *pTab){
147 if( pOp->opcode==OP_OpenRead && pOp->p3==iDb ){
173 ** which is in database iDb. Return the register number for the register
193 int iDb, /* Index of the database holding pTab */
209 pInfo->iDb = iDb
    [all...]
vtab.c 271 int iDb; /* The database the table is being created in */
281 iDb = sqlite3SchemaToIndex(db, pTable->pSchema);
282 assert( iDb>=0 );
287 addModuleArgument(db, pTable, sqlite3DbStrDup(db, db->aDb[iDb].zName));
299 pTable->azModuleArg[0], pParse->db->aDb[iDb].zName);
340 int iDb;
357 iDb = sqlite3SchemaToIndex(db, pTab->pSchema);
362 db->aDb[iDb].zName, SCHEMA_TABLE(iDb),
370 sqlite3ChangeCookie(pParse, iDb);
    [all...]
delete.c 239 int iDb; /* Database number */
287 iDb = sqlite3SchemaToIndex(db, pTab->pSchema);
288 assert( iDb<db->nDb );
289 zDb = db->aDb[iDb].zName;
318 sqlite3BeginWriteOperation(pParse, 1, iDb);
355 sqlite3VdbeAddOp4(v, OP_Clear, pTab->tnum, iDb, memCnt,
359 sqlite3VdbeAddOp2(v, OP_Clear, pIdx->tnum, iDb);
vdbeblob.c 257 int iDb = sqlite3SchemaToIndex(db, pTab->pSchema);
263 sqlite3VdbeChangeP1(v, 0, iDb);
267 sqlite3VdbeChangeP1(v, 1, iDb);
272 sqlite3VdbeUsesBtree(v, iDb);
278 sqlite3VdbeChangeP1(v, 2, iDb);
288 sqlite3VdbeChangeP3(v, 3 + flags, iDb);
vdbe.c 192 int iDb, /* When database the cursor belongs to, or -1 */
230 pCx->iDb = iDb;
    [all...]
fkey.c 316 int iDb, /* Index of database housing pTab */
368 sqlite3OpenTable(pParse, iCur, iDb, pTab, OP_OpenRead);
380 sqlite3VdbeAddOp3(v, OP_OpenRead, iCur, pIdx->tnum, iDb);
691 int iDb; /* Index of database containing pTab */
701 iDb = sqlite3SchemaToIndex(db, pTab->pSchema);
702 zDb = db->aDb[iDb].zName;
747 rcauth = sqlite3AuthReadCol(pParse, pTo->zName, zCol, iDb);
756 sqlite3TableLock(pParse, iDb, pTo->tnum, 0, pTo->zName);
763 fkLookupParent(pParse, iDb, pTo, pIdx, pFKey, aiCol, regOld, -1,isIgnore);
768 fkLookupParent(pParse, iDb, pTo, pIdx, pFKey, aiCol, regNew, +1,isIgnore)
    [all...]
update.c 113 int iDb; /* Database containing the table being updated */
143 iDb = sqlite3SchemaToIndex(pParse->db, pTab->pSchema);
222 pTab->aCol[j].zName, db->aDb[iDb].zName);
264 sqlite3BeginWriteOperation(pParse, 1, iDb);
343 if( !okOnePass ) sqlite3OpenTable(pParse, iCur, iDb, pTab, OP_OpenWrite);
358 sqlite3VdbeAddOp4(v, OP_OpenWrite, iCur+i+1, pIdx->tnum, iDb,
main.c     [all...]
test3.c 528 int iDb = 0;
541 iDb = atoi(argv[2]);
547 pBt = db->aDb[iDb].pBt;
vdbeInt.h 47 int iDb; /* Index of cursor database in db->aDb[] (or -1) */
resolve.c 107 ** pExpr->iDb Set the index in db->aDb[] of the database X
163 int iDb;
168 iDb = sqlite3SchemaToIndex(db, pTab->pSchema);
179 if( zDb!=0 && sqlite3StrICmp(db->aDb[iDb].zName, zDb)!=0 ){
    [all...]
expr.c     [all...]
sqliteInt.h 824 int iDb; /* When back is being initialized */
    [all...]
select.c     [all...]
where.c     [all...]
btree.c     [all...]

Completed in 342 milliseconds

1 2