/titanic_44/usr/src/lib/libsqlite/src/ |
H A D | copy.c | 44 const char *zDb; in sqliteCopy() local 55 zDb = db->aDb[pTab->iDb].zName; in sqliteCopy() 56 if( sqliteAuthCheck(pParse, SQLITE_INSERT, pTab->zName, 0, zDb) in sqliteCopy() 57 || sqliteAuthCheck(pParse, SQLITE_COPY, pTab->zName, zFile, zDb) ){ in sqliteCopy()
|
H A D | attach.c | 201 pFix->zDb = db->aDb[iDb].zName; in sqliteFixInit() 226 const char *zDb; in sqliteFixSrcList() local 229 zDb = pFix->zDb; in sqliteFixSrcList() 232 pList->a[i].zDatabase = sqliteStrDup(zDb); in sqliteFixSrcList() 233 }else if( sqliteStrICmp(pList->a[i].zDatabase,zDb)!=0 ){ in sqliteFixSrcList()
|
H A D | trigger.c | 112 const char *zDb = db->aDb[tab->iDb].zName; in sqliteBeginTrigger() local 113 const char *zDbTrig = isTemp ? db->aDb[1].zName : zDb; in sqliteBeginTrigger() 118 if( sqliteAuthCheck(pParse, SQLITE_INSERT, SCHEMA_TABLE(tab->iDb), 0, zDb)){ in sqliteBeginTrigger() 394 const char *zDb; in sqliteDropTrigger() local 401 zDb = pName->a[0].zDatabase; in sqliteDropTrigger() 406 if( zDb && sqliteStrICmp(db->aDb[j].zName, zDb) ) continue; in sqliteDropTrigger() 442 const char *zDb = db->aDb[pTrigger->iDb].zName; in sqliteDropTriggerPtr() local 445 if( sqliteAuthCheck(pParse, code, pTrigger->name, pTable->zName, zDb) || in sqliteDropTriggerPtr() 446 sqliteAuthCheck(pParse, SQLITE_DELETE, zTab, 0, zDb) ){ in sqliteDropTriggerPtr()
|
H A D | delete.c | 32 const char *zDb = pSrc->a[i].zDatabase; in sqliteSrcListLookup() local 33 pTab = sqliteLocateTable(pParse, zTab, zDb); in sqliteSrcListLookup() 66 const char *zDb; /* Name of database holding pTab */ in sqliteDeleteFrom() local 106 zDb = db->aDb[pTab->iDb].zName; in sqliteDeleteFrom() 107 if( sqliteAuthCheck(pParse, SQLITE_DELETE, pTab->zName, 0, zDb) ){ in sqliteDeleteFrom()
|
H A D | build.c | 160 Index *sqliteFindIndex(sqlite *db, const char *zName, const char *zDb){ in sqliteFindIndex() argument 165 if( zDb && sqliteStrICmp(zDb, db->aDb[j].zName) ) continue; in sqliteFindIndex() 448 char *zDb = isTemp ? "temp" : "main"; in sqliteStartTable() local 449 if( sqliteAuthCheck(pParse, SQLITE_INSERT, SCHEMA_TABLE(isTemp), 0, zDb) ){ in sqliteStartTable() 466 if( sqliteAuthCheck(pParse, code, zName, 0, zDb) ){ in sqliteStartTable() 1194 const char *zDb = db->aDb[pTable->iDb].zName; in sqliteDropTable() local 1195 if( sqliteAuthCheck(pParse, SQLITE_DELETE, zTab, 0, zDb)){ in sqliteDropTable() 1211 if( sqliteAuthCheck(pParse, code, pTable->zName, 0, zDb) ){ in sqliteDropTable() 1214 if( sqliteAuthCheck(pParse, SQLITE_DELETE, pTable->zName, 0, zDb) ){ in sqliteDropTable() 1570 const char *zDb = db->aDb[pTab->iDb].zName; in sqliteCreateIndex() local [all …]
|
H A D | expr.c | 421 char *zDb = 0; /* Name of the database. The "X" in X.Y.Z */ in lookupName() local 431 zDb = sqliteStrNDup(pDbToken->z, pDbToken->n); in lookupName() 432 sqliteDequote(zDb); in lookupName() 434 zDb = 0; in lookupName() 440 assert( zDb==0 ); in lookupName() 465 if( zDb!=0 && sqliteStrICmp(db->aDb[pTab->iDb].zName, zDb)!=0 ){ in lookupName() 490 if( zDb==0 && zTab!=0 && cnt==0 && pParse->trigStack!=0 ){ in lookupName() 550 assert( zTab==0 && zDb==0 ); in lookupName() 576 if( zDb ){ in lookupName() 577 sqliteSetString(&z, zDb, ".", zTab, ".", zCol, 0); in lookupName() [all …]
|
H A D | insert.c | 99 const char *zDb; /* Name of the database holding this table */ in sqliteInsert() local 135 zDb = db->aDb[pTab->iDb].zName; in sqliteInsert() 136 if( sqliteAuthCheck(pParse, SQLITE_INSERT, pTab->zName, 0, zDb) ){ in sqliteInsert()
|
H A D | sqliteInt.h | 1086 const char *zDb; /* Make sure all objects are contained in this database */ member
|