/osnet-11/usr/src/lib/libsqlite/src/ |
H A D | trigger.c | 59 int iDb; /* When database to store the trigger in */ local 72 && sqliteFixInit(&sFix, pParse, db->init.iDb, "trigger", pName) 81 iDb = isTemp ? 1 : tab->iDb; 82 if( iDb>=2 && !db->init.busy ){ 84 "database %s", db->aDb[tab->iDb].zName); 90 if( sqliteHashFind(&(db->aDb[iDb].trigHash), zName,pName->n+1) ){ 112 const char *zDb = db->aDb[tab->iDb].zName; 114 if( tab->iDb==1 || isTemp ) code = SQLITE_CREATE_TEMP_TRIGGER; 118 if( sqliteAuthCheck(pParse, SQLITE_INSERT, SCHEMA_TABLE(tab->iDb), 584 int iDb; /* Index of the database to use */ local [all...] |
H A D | build.c | 184 pOld = sqliteHashInsert(&db->aDb[p->iDb].idxHash, p->zName, 187 sqliteHashInsert(&db->aDb[p->iDb].idxHash, pOld->zName, 217 ** If iDb<=0 then reset the internal schema tables for all database 218 ** files. If iDb>=2 then reset the internal schema for only the 221 void sqliteResetInternalSchema(sqlite *db, int iDb){ argument 227 assert( iDb>=0 && iDb<db->nDb ); 229 for(i=iDb; i<db->nDb; i++){ 248 if( iDb>0 ) return; 250 assert( iDb 438 int iDb; local 1183 int iDb; local 2089 sqliteCodeVerifySchema(Parse *pParse, int iDb) argument 2118 sqliteBeginWriteOperation(Parse *pParse, int setCheckpoint, int iDb) argument [all...] |
H A D | main.c | 86 db->init.iDb = atoi(argv[4]); 87 assert( db->init.iDb>=0 && db->init.iDb<db->nDb ); 93 db->init.iDb = 0; 101 int iDb; local 104 iDb = atoi(argv[4]); 105 assert( iDb>=0 && iDb<db->nDb ); 106 pIndex = sqliteFindIndex(db, argv[1], db->aDb[iDb].zName); 185 ** database file is given by iDb 190 sqliteInitOne(sqlite *db, int iDb, char **pzErrMsg) argument [all...] |
H A D | copy.c | 54 assert( pTab->iDb<db->nDb ); 55 zDb = db->aDb[pTab->iDb].zName; 62 sqliteBeginWriteOperation(pParse, 1, pTab->iDb);
|
H A D | delete.c | 105 assert( pTab->iDb<db->nDb ); 106 zDb = db->aDb[pTab->iDb].zName; 148 sqliteBeginWriteOperation(pParse, row_triggers_exist, pTab->iDb); 177 sqliteVdbeAddOp(v, OP_Integer, pTab->iDb, 0); 187 sqliteVdbeAddOp(v, OP_Clear, pTab->tnum, pTab->iDb); 189 sqliteVdbeAddOp(v, OP_Clear, pIdx->tnum, pIdx->iDb); 234 sqliteVdbeAddOp(v, OP_Integer, pTab->iDb, 0);
|
H A D | auth.c | 145 assert( pExpr->iDb<db->nDb ); 146 zDBase = db->aDb[pExpr->iDb].zName; 152 if( db->nDb>2 || pExpr->iDb!=0 ){
|
H A D | attach.c | 191 int iDb, /* This is the database that must must be used */ 197 if( iDb<0 || iDb==1 ) return 0; 199 assert( db->nDb>iDb ); 201 pFix->zDb = db->aDb[iDb].zName; 188 sqliteFixInit( DbFixer *pFix, Parse *pParse, int iDb, const char *zType, const Token *pName ) argument
|
H A D | update.c | 149 pTab->aCol[j].zName, db->aDb[pTab->iDb].zName); 217 sqliteBeginWriteOperation(pParse, 1, pTab->iDb); 269 sqliteVdbeAddOp(v, OP_Integer, pTab->iDb, 0); 320 sqliteVdbeAddOp(v, OP_Integer, pTab->iDb, 0); 335 sqliteVdbeAddOp(v, OP_Integer, pIdx->iDb, 0);
|
H A D | expr.c | 392 ** pExpr->iDb Set the index in db->aDb[] of the database holding 465 if( zDb!=0 && sqliteStrICmp(db->aDb[pTab->iDb].zName, zDb)!=0 ){ 472 pExpr->iDb = pTab->iDb; 478 pExpr->iDb = pTab->iDb; 507 pExpr->iDb = pTab->iDb;
|
H A D | sqliteInt.h | 372 int iDb; /* When back is being initialized */ member in struct:sqlite::sqliteInitInfo 489 ** database file. If Table.iDb is the index of the database table backend 508 u8 iDb; /* Index into sqlite.aDb[] of the backend for this table */ member in struct:Table 630 u8 iDb; /* Index in sqlite.aDb[] of where this index is stored */ member in struct:Index 687 u8 iDb; /* Database referenced by this expression */ member in struct:Expr 973 u8 iDb; /* Database containing this trigger */ member in struct:Trigger
|
H A D | insert.c | 134 assert( pTab->iDb<db->nDb ); 135 zDb = db->aDb[pTab->iDb].zName; 165 sqliteBeginWriteOperation(pParse, pSelect || row_triggers_exist, pTab->iDb); 209 if( pOp->opcode==OP_Integer && pOp->p1==pTab->iDb ){ 915 sqliteVdbeAddOp(v, OP_Integer, pTab->iDb, 0); 918 sqliteVdbeAddOp(v, OP_Integer, pIdx->iDb, 0);
|
H A D | where.c | 710 sqliteVdbeAddOp(v, OP_Integer, pTab->iDb, 0); 713 sqliteCodeVerifySchema(pParse, pTab->iDb); 715 sqliteVdbeAddOp(v, OP_Integer, pIx->iDb, 0);
|
H A D | pragma.c | 645 sqliteVdbeAddOp(v, OP_Integer, pIdx->iDb, 0);
|
H A D | vdbe.c | 2399 int iDb; local 2403 iDb = pTos->i; 2405 assert( iDb>=0 && iDb<db->nDb ); 2406 pX = db->aDb[iDb].pBt;
|
H A D | select.c | 1923 sqliteCodeVerifySchema(pParse, pTab->iDb); 1927 sqliteVdbeAddOp(v, OP_Integer, pTab->iDb, 0); 1934 sqliteVdbeAddOp(v, OP_Integer, pIdx->iDb, 0);
|