Lines Matching refs:zDb
4933 ** in row iRow, column zColumn, table zTable in database zDb;
4937 ** SELECT zColumn FROM zDb.zTable WHERE [rowid] = iRow;
4987 const char *zDb,
9833 const char *zDb; /* Make sure all objects are contained in this database */
45761 ** Return a pointer corresponding to database zDb (i.e. "main", "temp")
45769 static Btree *findBtree(sqlite3 *pErrorDb, sqlite3 *pDb, const char *zDb){
45770 int i = sqlite3FindDbName(pDb, zDb);
45794 sqlite3Error(pErrorDb, SQLITE_ERROR, "unknown database %s", zDb);
52790 const char *zDb; /* database name - used by the update hook */
56267 const char *zDb; /* database name - used by the update hook */
56316 u.bf.zDb = db->aDb[u.bf.pC->iDb].zName;
56320 db->xUpdateCallback(db->pUpdateArg, u.bf.op, u.bf.zDb, u.bf.zTbl, u.bf.iKey);
56384 const char *zDb = db->aDb[u.bg.pC->iDb].zName;
56386 db->xUpdateCallback(db->pUpdateArg, SQLITE_DELETE, zDb, zTbl, u.bg.iKey);
58326 const char *zDb, /* The attached database containing the blob */
58386 pTab = sqlite3LocateTable(pParse, 0, zTable, zDb);
59417 ** The zDb variable is the name of the database (the "X"). This value may be
59420 ** value can be NULL if zDb is also NULL. If zTable is NULL it
59429 const char *zDb, /* Name of the database containing table, or NULL */
59478 if( zDb!=0 && sqlite3StrICmp(db->aDb[iDb].zName, zDb)!=0 ){
59529 if( zDb==0 && zTab!=0 && cnt==0 && pParse->pTriggerTab!=0 ){
59615 assert( zTab==0 && zDb==0 );
59652 if( zDb ){
59653 sqlite3ErrorMsg(pParse, "%s: %s.%s.%s", zErr, zDb, zTab, zCol);
59788 const char *zDb;
59794 zDb = 0;
59799 zDb = pExpr->pLeft->u.zToken;
59803 return lookupName(pParse, zDb, zTable, zColumn, pNC, pExpr);
64612 char *zDb; /* Name of database iDb */
64631 zDb = db->aDb[iDb].zName;
64640 if( sqlite3FindTable(db, zName, zDb) || sqlite3FindIndex(db, zName, zDb) ){
64668 if( sqlite3AuthCheck(pParse, SQLITE_ALTER_TABLE, zDb, pTab->zName, 0) ){
64748 zDb, SCHEMA_TABLE(iDb), zName, zName, zName,
64759 if( sqlite3FindTable(db, "sqlite_sequence", zDb) ){
64762 zDb, zName, pTab->zName);
64839 const char *zDb; /* Database name */
64853 zDb = db->aDb[iDb].zName;
64857 pTab = sqlite3FindTable(db, zTab, zDb);
64862 if( sqlite3AuthCheck(pParse, SQLITE_ALTER_TABLE, zDb, pTab->zName, 0) ){
64925 zDb, SCHEMA_TABLE(iDb), pNew->addColOffset, zCol, pNew->addColOffset+1,
65427 char *z, *zDb;
65464 zDb = db->aDb[iDb].zName;
65467 pTab = sqlite3LocateTable(pParse, 0, z, zDb);
66098 pFix->zDb = db->aDb[iDb].zName;
66123 const char *zDb;
66127 zDb = pFix->zDb;
66130 pItem->zDatabase = sqlite3DbStrDup(pFix->pParse->db, zDb);
66131 }else if( sqlite3StrICmp(pItem->zDatabase,zDb)!=0 ){
66315 ** table zTab in database zDb. This function assumes that an authorization
66329 char *zDb = db->aDb[iDb].zName; /* Name of attached database */
66332 rc = db->xAuth(db->pAuthArg, SQLITE_READ, zTab,zCol,zDb,pParse->zAuthContext);
66335 sqlite3ErrorMsg(pParse, "access to %s.%s.%s is prohibited",zDb,zTab,zCol);
66802 SQLITE_PRIVATE Index *sqlite3FindIndex(sqlite3 *db, const char *zName, const char *zDb){
66810 if( zDb && sqlite3StrICmp(zDb, db->aDb[j].zName) ) continue;
67239 char *zDb = db->aDb[iDb].zName;
67240 if( sqlite3AuthCheck(pParse, SQLITE_INSERT, SCHEMA_TABLE(isTemp), 0, zDb) ){
67256 if( !isVirtual && sqlite3AuthCheck(pParse, code, zName, 0, zDb) ){
68470 const char *zDb = db->aDb[iDb].zName;
68472 if( sqlite3AuthCheck(pParse, SQLITE_DELETE, zTab, 0, zDb)){
68493 if( sqlite3AuthCheck(pParse, code, pTab->zName, zArg2, zDb) ){
68496 if( sqlite3AuthCheck(pParse, SQLITE_DELETE, pTab->zName, 0, zDb) ){
68989 const char *zDb = pDb->zName;
68990 if( sqlite3AuthCheck(pParse, SQLITE_INSERT, SCHEMA_TABLE(iDb), 0, zDb) ){
68995 if( sqlite3AuthCheck(pParse, i, zName, pTab->zName, zDb) ){
69375 const char *zDb = db->aDb[iDb].zName;
69377 if( sqlite3AuthCheck(pParse, SQLITE_DELETE, zTab, 0, zDb) ){
69381 if( sqlite3AuthCheck(pParse, code, pIndex->zName, pTab->zName, zDb) ){
70089 const char *zDb; /* Name of the database */
70122 zDb = db->aDb[iDb].zName;
70123 pTab = sqlite3FindTable(db, z, zDb);
70129 pIndex = sqlite3FindIndex(db, z, zDb);
70850 const char *zDb; /* Name of database holding pTab */
70909 zDb = db->aDb[iDb].zName;
70910 rcauth = sqlite3AuthCheck(pParse, SQLITE_DELETE, pTab->zName, 0, zDb);
73484 const char *zDb; /* Name of database containing pTab */
73495 zDb = db->aDb[iDb].zName;
73513 pTo = sqlite3FindTable(db, pFKey->zTo, zDb);
73515 pTo = sqlite3LocateTable(pParse, 0, pFKey->zTo, zDb);
74427 const char *zDb; /* Name of the database holding this table */
74481 zDb = pDb->zName;
74482 if( sqlite3AuthCheck(pParse, SQLITE_INSERT, pTab->zName, 0, zDb) ){
77220 const char *zDb = 0; /* The database name */
77252 zDb = pId2->n>0 ? pDb->zName : 0;
77253 if( sqlite3AuthCheck(pParse, SQLITE_PRAGMA, zLeft, zRight, zDb) ){
77776 pTab = sqlite3FindTable(db, zRight, zDb);
77815 pIdx = sqlite3FindIndex(db, zRight, zDb);
77839 pTab = sqlite3FindTable(db, zRight, zDb);
77902 pTab = sqlite3FindTable(db, zRight, zDb);
78942 const char *zDb = db->aDb[i].zName;
78943 sqlite3Error(db, rc, "database schema is locked: %s", zDb);
83913 const char *zDb = db->aDb[iTabDb].zName;
83914 const char *zDbTrig = isTemp ? db->aDb[1].zName : zDb;
83919 if( sqlite3AuthCheck(pParse, SQLITE_INSERT, SCHEMA_TABLE(iTabDb),0,zDb)){
84187 const char *zDb;
84198 zDb = pName->a[0].zDatabase;
84203 if( zDb && sqlite3StrICmp(db->aDb[j].zName, zDb) ) continue;
84246 const char *zDb = db->aDb[iDb].zName;
84249 if( sqlite3AuthCheck(pParse, code, pTrigger->zName, pTable->zName, zDb) ||
84250 sqlite3AuthCheck(pParse, SQLITE_DELETE, zTab, 0, zDb) ){
98776 const char *zDb; /* logical database name */
99145 p->zDb, p->zName, p->zDb, p->zName, p->zDb, p->zName
99230 p->zDb, p->zName, zContentCols, p->zDb, p->zName, p->zDb, p->zName
99311 nDb + /* zDb */
99331 /* Fill in the zName and zDb fields of the vtab structure. */
99335 p->zDb = zCsr;
100575 zSql = sqlite3_mprintf(azSql[idxNum==FTS3_FULLSCAN_SEARCH], p->zDb, p->zName);
101021 , p->zDb, p->zName, zName
101022 , p->zDb, p->zName, zName
101023 , p->zDb, p->zName, zName
104050 zSql = sqlite3_mprintf(azSql[eStmt], p->zDb, p->zName, zVarlist);
104052 zSql = sqlite3_mprintf(azSql[eStmt], p->zDb, p->zName);
104742 "ORDER BY blockid", p->zDb, p->zName
107600 char *zDb; /* Name of database containing r-tree table */
108181 pRtree->zDb, pRtree->zName,
108182 pRtree->zDb, pRtree->zName,
108183 pRtree->zDb, pRtree->zName
110016 , pRtree->zDb, pRtree->zName, zNewName
110017 , pRtree->zDb, pRtree->zName, zNewName
110018 , pRtree->zDb, pRtree->zName, zNewName
110053 const char *zDb,
110087 zDb, zPrefix, zDb, zPrefix, zDb, zPrefix, zDb, zPrefix, pRtree->iNodeSize
110110 char *zSql = sqlite3_mprintf(azSql[i], zDb, zPrefix);
110124 ** database zDb. If successful, the page-size in bytes is written to
110128 static int getPageSize(sqlite3 *db, const char *zDb, int *piPageSize){
110133 zSql = sqlite3_mprintf("PRAGMA %Q.page_size", zDb);
110202 pRtree->zDb = (char *)&pRtree[1];
110203 pRtree->zName = &pRtree->zDb[nDb+1];
110207 memcpy(pRtree->zDb, argv[1], nDb);