/illumos-gate/usr/src/lib/libsqlite/src/ |
H A D | copy.c | 41 const char *zDb; in sqliteCopy() local 52 zDb = db->aDb[pTab->iDb].zName; in sqliteCopy() 53 if( sqliteAuthCheck(pParse, SQLITE_INSERT, pTab->zName, 0, zDb) in sqliteCopy() 54 || sqliteAuthCheck(pParse, SQLITE_COPY, pTab->zName, zFile, zDb) ){ in sqliteCopy()
|
H A D | attach.c | 198 pFix->zDb = db->aDb[iDb].zName; in sqliteFixInit() 223 const char *zDb; in sqliteFixSrcList() local 226 zDb = pFix->zDb; in sqliteFixSrcList() 229 pList->a[i].zDatabase = sqliteStrDup(zDb); in sqliteFixSrcList() 230 }else if( sqliteStrICmp(pList->a[i].zDatabase,zDb)!=0 ){ in sqliteFixSrcList()
|
H A D | trigger.c | 109 const char *zDb = db->aDb[tab->iDb].zName; in sqliteBeginTrigger() local 110 const char *zDbTrig = isTemp ? db->aDb[1].zName : zDb; in sqliteBeginTrigger() 115 if( sqliteAuthCheck(pParse, SQLITE_INSERT, SCHEMA_TABLE(tab->iDb), 0, zDb)){ in sqliteBeginTrigger() 391 const char *zDb; in sqliteDropTrigger() local 398 zDb = pName->a[0].zDatabase; in sqliteDropTrigger() 403 if( zDb && sqliteStrICmp(db->aDb[j].zName, zDb) ) continue; in sqliteDropTrigger() 439 const char *zDb = db->aDb[pTrigger->iDb].zName; in sqliteDropTriggerPtr() local 442 if( sqliteAuthCheck(pParse, code, pTrigger->name, pTable->zName, zDb) || in sqliteDropTriggerPtr() 443 sqliteAuthCheck(pParse, SQLITE_DELETE, zTab, 0, zDb) ){ in sqliteDropTriggerPtr()
|
H A D | delete.c | 29 const char *zDb = pSrc->a[i].zDatabase; in sqliteSrcListLookup() local 30 pTab = sqliteLocateTable(pParse, zTab, zDb); in sqliteSrcListLookup() 63 const char *zDb; /* Name of database holding pTab */ in sqliteDeleteFrom() local 103 zDb = db->aDb[pTab->iDb].zName; in sqliteDeleteFrom() 104 if( sqliteAuthCheck(pParse, SQLITE_DELETE, pTab->zName, 0, zDb) ){ in sqliteDeleteFrom()
|
H A D | build.c | 157 Index *sqliteFindIndex(sqlite *db, const char *zName, const char *zDb){ in sqliteFindIndex() argument 162 if( zDb && sqliteStrICmp(zDb, db->aDb[j].zName) ) continue; in sqliteFindIndex() 445 char *zDb = isTemp ? "temp" : "main"; in sqliteStartTable() local 446 if( sqliteAuthCheck(pParse, SQLITE_INSERT, SCHEMA_TABLE(isTemp), 0, zDb) ){ in sqliteStartTable() 463 if( sqliteAuthCheck(pParse, code, zName, 0, zDb) ){ in sqliteStartTable() 1191 const char *zDb = db->aDb[pTable->iDb].zName; in sqliteDropTable() local 1192 if( sqliteAuthCheck(pParse, SQLITE_DELETE, zTab, 0, zDb)){ in sqliteDropTable() 1208 if( sqliteAuthCheck(pParse, code, pTable->zName, 0, zDb) ){ in sqliteDropTable() 1211 if( sqliteAuthCheck(pParse, SQLITE_DELETE, pTable->zName, 0, zDb) ){ in sqliteDropTable() 1567 const char *zDb = db->aDb[pTab->iDb].zName; in sqliteCreateIndex() local [all …]
|
H A D | expr.c | 418 char *zDb = 0; /* Name of the database. The "X" in X.Y.Z */ in lookupName() local 428 zDb = sqliteStrNDup(pDbToken->z, pDbToken->n); in lookupName() 429 sqliteDequote(zDb); in lookupName() 431 zDb = 0; in lookupName() 437 assert( zDb==0 ); in lookupName() 462 if( zDb!=0 && sqliteStrICmp(db->aDb[pTab->iDb].zName, zDb)!=0 ){ in lookupName() 487 if( zDb==0 && zTab!=0 && cnt==0 && pParse->trigStack!=0 ){ in lookupName() 547 assert( zTab==0 && zDb==0 ); in lookupName() 573 if( zDb ){ in lookupName() 574 sqliteSetString(&z, zDb, ".", zTab, ".", zCol, 0); in lookupName() [all …]
|
H A D | insert.c | 96 const char *zDb; /* Name of the database holding this table */ in sqliteInsert() local 132 zDb = db->aDb[pTab->iDb].zName; in sqliteInsert() 133 if( sqliteAuthCheck(pParse, SQLITE_INSERT, pTab->zName, 0, zDb) ){ in sqliteInsert()
|
H A D | sqliteInt.h | 1083 const char *zDb; /* Make sure all objects are contained in this database */ member
|