Lines Matching defs:zDb
5593 ** in row iRow, column zColumn, table zTable in database zDb;
5597 ** SELECT zColumn FROM zDb.zTable WHERE [rowid] = iRow;
5647 const char *zDb,
7062 SQLITE_API int sqlite3_wal_checkpoint(sqlite3 *db, const char *zDb);
7067 ** Run a checkpoint operation on WAL database zDb attached to database
7118 ** If parameter zDb is NULL or points to a zero length string, then the
7129 ** If database zDb is the name of an attached database that is not in WAL
7131 ** zDb is not NULL (or a zero length string) and is not the name of any
7136 const char *zDb, /* Name of attached database (or NULL) */
11041 const char *zDb; /* Make sure all objects are contained in this database */
11434 SQLITE_PRIVATE void sqlite3CodeVerifyNamedSchema(Parse*, const char *zDb);
29454 char zDb[MAX_PATHNAME+1]; /* Database file path */
29455 int nDb; /* Number of valid bytes in zDb */
29473 memcpy(zDb, zPath, nDb);
29474 zDb[nDb] = '\0';
29476 if( 0==osStat(zDb, &sStat) ){
56525 ** Return a pointer corresponding to database zDb (i.e. "main", "temp")
56533 static Btree *findBtree(sqlite3 *pErrorDb, sqlite3 *pDb, const char *zDb){
56534 int i = sqlite3FindDbName(pDb, zDb);
56558 sqlite3Error(pErrorDb, SQLITE_ERROR, "unknown database %s", zDb);
63895 const char *zDb; /* database name - used by the update hook */
67542 const char *zDb; /* database name - used by the update hook */
67593 u.bg.zDb = db->aDb[u.bg.pC->iDb].zName;
67597 db->xUpdateCallback(db->pUpdateArg, u.bg.op, u.bg.zDb, u.bg.zTbl, u.bg.iKey);
67661 const char *zDb = db->aDb[u.bh.pC->iDb].zName;
67663 db->xUpdateCallback(db->pUpdateArg, SQLITE_DELETE, zDb, zTbl, u.bh.iKey);
69917 const char *zDb, /* The attached database containing the blob */
69983 pTab = sqlite3LocateTable(pParse, 0, zTable, zDb);
71918 ** The zDb variable is the name of the database (the "X"). This value may be
71921 ** value can be NULL if zDb is also NULL. If zTable is NULL it
71930 const char *zDb, /* Name of the database containing table, or NULL */
71979 if( zDb!=0 && sqlite3StrICmp(db->aDb[iDb].zName, zDb)!=0 ){
72030 if( zDb==0 && zTab!=0 && cnt==0 && pParse->pTriggerTab!=0 ){
72116 assert( zTab==0 && zDb==0 );
72153 if( zDb ){
72154 sqlite3ErrorMsg(pParse, "%s: %s.%s.%s", zErr, zDb, zTab, zCol);
72292 const char *zDb;
72298 zDb = 0;
72303 zDb = pExpr->pLeft->u.zToken;
72307 return lookupName(pParse, zDb, zTable, zColumn, pNC, pExpr);
77176 char *zDb; /* Name of database iDb */
77197 zDb = db->aDb[iDb].zName;
77207 if( sqlite3FindTable(db, zName, zDb) || sqlite3FindIndex(db, zName, zDb) ){
77232 if( sqlite3AuthCheck(pParse, SQLITE_ALTER_TABLE, zDb, pTab->zName, 0) ){
77288 "WHERE %s;", zDb, SCHEMA_TABLE(iDb), zTabName, zName, zWhere);
77312 zDb, SCHEMA_TABLE(iDb), zName, zName, zName,
77323 if( sqlite3FindTable(db, "sqlite_sequence", zDb) ){
77326 zDb, zName, pTab->zName);
77404 const char *zDb; /* Database name */
77418 zDb = db->aDb[iDb].zName;
77422 pTab = sqlite3FindTable(db, zTab, zDb);
77427 if( sqlite3AuthCheck(pParse, SQLITE_ALTER_TABLE, zDb, pTab->zName, 0) ){
77492 zDb, SCHEMA_TABLE(iDb), pNew->addColOffset, zCol, pNew->addColOffset+1,
78047 char *z, *zDb;
78086 zDb = db->aDb[iDb].zName;
78089 if( (pIdx = sqlite3FindIndex(db, z, zDb))!=0 ){
78091 }else if( (pTab = sqlite3LocateTable(pParse, 0, z, zDb))!=0 ){
78762 pFix->zDb = db->aDb[iDb].zName;
78787 const char *zDb;
78791 zDb = pFix->zDb;
78794 pItem->zDatabase = sqlite3DbStrDup(pFix->pParse->db, zDb);
78795 }else if( sqlite3StrICmp(pItem->zDatabase,zDb)!=0 ){
78979 ** table zTab in database zDb. This function assumes that an authorization
78993 char *zDb = db->aDb[iDb].zName; /* Name of attached database */
78996 rc = db->xAuth(db->pAuthArg, SQLITE_READ, zTab,zCol,zDb,pParse->zAuthContext);
78999 sqlite3ErrorMsg(pParse, "access to %s.%s.%s is prohibited",zDb,zTab,zCol);
79470 SQLITE_PRIVATE Index *sqlite3FindIndex(sqlite3 *db, const char *zName, const char *zDb){
79475 assert( zDb!=0 || sqlite3BtreeHoldsAllMutexes(db) );
79480 if( zDb && sqlite3StrICmp(zDb, db->aDb[j].zName) ) continue;
79911 char *zDb = db->aDb[iDb].zName;
79912 if( sqlite3AuthCheck(pParse, SQLITE_INSERT, SCHEMA_TABLE(isTemp), 0, zDb) ){
79928 if( !isVirtual && sqlite3AuthCheck(pParse, code, zName, 0, zDb) ){
79942 char *zDb = db->aDb[iDb].zName;
79946 pTable = sqlite3FindTable(db, zName, zDb);
79956 if( sqlite3FindIndex(db, zName, zDb)!=0 ){
81179 const char *zDb = db->aDb[iDb].zName;
81181 if( sqlite3AuthCheck(pParse, SQLITE_DELETE, zTab, 0, zDb)){
81202 if( sqlite3AuthCheck(pParse, code, pTab->zName, zArg2, zDb) ){
81205 if( sqlite3AuthCheck(pParse, SQLITE_DELETE, pTab->zName, 0, zDb) ){
81731 const char *zDb = pDb->zName;
81732 if( sqlite3AuthCheck(pParse, SQLITE_INSERT, SCHEMA_TABLE(iDb), 0, zDb) ){
81737 if( sqlite3AuthCheck(pParse, i, zName, pTab->zName, zDb) ){
82122 const char *zDb = db->aDb[iDb].zName;
82124 if( sqlite3AuthCheck(pParse, SQLITE_DELETE, zTab, 0, zDb) ){
82128 if( sqlite3AuthCheck(pParse, code, pIndex->zName, pTab->zName, zDb) ){
82693 ** If argument zDb is NULL, then call sqlite3CodeVerifySchema() for each
82694 ** attached database. Otherwise, invoke it for the database named zDb only.
82696 SQLITE_PRIVATE void sqlite3CodeVerifyNamedSchema(Parse *pParse, const char *zDb){
82701 if( pDb->pBt && (!zDb || 0==sqlite3StrICmp(zDb, pDb->zName)) ){
82851 const char *zDb; /* Name of the database */
82884 zDb = db->aDb[iDb].zName;
82885 pTab = sqlite3FindTable(db, z, zDb);
82891 pIndex = sqlite3FindIndex(db, z, zDb);
83628 const char *zDb; /* Name of database holding pTab */
83687 zDb = db->aDb[iDb].zName;
83688 rcauth = sqlite3AuthCheck(pParse, SQLITE_DELETE, pTab->zName, 0, zDb);
86364 const char *zDb; /* Name of database containing pTab */
86374 zDb = db->aDb[iDb].zName;
86392 pTo = sqlite3FindTable(db, pFKey->zTo, zDb);
86394 pTo = sqlite3LocateTable(pParse, 0, pFKey->zTo, zDb);
87324 const char *zDb; /* Name of the database holding this table */
87377 zDb = pDb->zName;
87378 if( sqlite3AuthCheck(pParse, SQLITE_INSERT, pTab->zName, 0, zDb) ){
90271 const char *zDb = 0; /* The database name */
90303 zDb = pId2->n>0 ? pDb->zName : 0;
90304 if( sqlite3AuthCheck(pParse, SQLITE_PRAGMA, zLeft, zRight, zDb) ){
90827 pTab = sqlite3FindTable(db, zRight, zDb);
90866 pIdx = sqlite3FindIndex(db, zRight, zDb);
90890 pTab = sqlite3FindTable(db, zRight, zDb);
90953 pTab = sqlite3FindTable(db, zRight, zDb);
92062 const char *zDb = db->aDb[i].zName;
92063 sqlite3Error(db, rc, "database schema is locked: %s", zDb);
97353 const char *zDb = db->aDb[iTabDb].zName;
97354 const char *zDbTrig = isTemp ? db->aDb[1].zName : zDb;
97359 if( sqlite3AuthCheck(pParse, SQLITE_INSERT, SCHEMA_TABLE(iTabDb),0,zDb)){
97626 const char *zDb;
97637 zDb = pName->a[0].zDatabase;
97640 assert( zDb!=0 || sqlite3BtreeHoldsAllMutexes(db) );
97643 if( zDb && sqlite3StrICmp(db->aDb[j].zName, zDb) ) continue;
97652 sqlite3CodeVerifyNamedSchema(pParse, zDb);
97690 const char *zDb = db->aDb[iDb].zName;
97693 if( sqlite3AuthCheck(pParse, code, pTrigger->zName, pTable->zName, zDb) ||
97694 sqlite3AuthCheck(pParse, SQLITE_DELETE, zTab, 0, zDb) ){
111479 const char *zDb, /* Database */
111484 sqlite3_wal_checkpoint(db, zDb);
111539 ** Checkpoint database zDb.
111543 const char *zDb, /* Name of attached database (or NULL) */
111566 if( zDb && zDb[0] ){
111567 iDb = sqlite3FindDbName(db, zDb);
111571 sqlite3Error(db, SQLITE_ERROR, "unknown database: %s", zDb);
111584 ** Checkpoint database zDb. If zDb is NULL, or if the buffer zDb points
111588 SQLITE_API int sqlite3_wal_checkpoint(sqlite3 *db, const char *zDb){
111589 return sqlite3_wal_checkpoint_v2(db, zDb, SQLITE_CHECKPOINT_PASSIVE, 0, 0);
114180 const char *zDb; /* logical database name */
114732 fts3DbExec(&rc, db, "DROP TABLE IF EXISTS %Q.'%q_content'", p->zDb, p->zName);
114733 fts3DbExec(&rc, db, "DROP TABLE IF EXISTS %Q.'%q_segments'", p->zDb,p->zName);
114734 fts3DbExec(&rc, db, "DROP TABLE IF EXISTS %Q.'%q_segdir'", p->zDb, p->zName);
114735 fts3DbExec(&rc, db, "DROP TABLE IF EXISTS %Q.'%q_docsize'", p->zDb, p->zName);
114736 fts3DbExec(&rc, db, "DROP TABLE IF EXISTS %Q.'%q_stat'", p->zDb, p->zName);
114812 p->zDb, p->zName, zContentCols
114818 p->zDb, p->zName
114830 p->zDb, p->zName
114835 p->zDb, p->zName
114841 p->zDb, p->zName
114860 zSql = sqlite3_mprintf("PRAGMA %Q.page_size", p->zDb);
115311 nDb + /* zDb */
115338 /* Fill in the zName and zDb fields of the vtab structure. */
115343 p->zDb = zCsr;
116935 zSql = sqlite3_mprintf(zTmpl, p->zReadExprlist, p->zDb, p->zName, zSort);
116938 zSql = sqlite3_mprintf(zTmpl, p->zReadExprlist, p->zDb, p->zName);
117301 p->zDb, p->zName, zName
117306 p->zDb, p->zName, zName
117312 p->zDb, p->zName, zName
117317 p->zDb, p->zName, zName
117321 p->zDb, p->zName, zName
119125 char const *zDb; /* Name of database (e.g. "main") */
119127 int nDb; /* Result of strlen(zDb) */
119143 zDb = argv[1];
119144 nDb = strlen(zDb);
119157 p->pFts3Tab->zDb = (char *)&p->pFts3Tab[1];
119158 p->pFts3Tab->zName = &p->pFts3Tab->zDb[nDb+1];
119162 memcpy((char *)p->pFts3Tab->zDb, zDb, nDb);
122558 zSql = sqlite3_mprintf(azSql[eStmt], p->zDb, p->zName, p->zWriteExprlist);
122560 zSql = sqlite3_mprintf(azSql[eStmt], p->zReadExprlist, p->zDb, p->zName);
122562 zSql = sqlite3_mprintf(azSql[eStmt], p->zDb, p->zName);
123253 p->db, p->zDb, p->zSegmentsTbl, "block", iBlockid, 0, &p->pSegments
127179 char *zDb; /* Name of database containing r-tree table */
127811 pRtree->zDb, pRtree->zName,
127812 pRtree->zDb, pRtree->zName,
127813 pRtree->zDb, pRtree->zName
129869 , pRtree->zDb, pRtree->zName, zNewName
129870 , pRtree->zDb, pRtree->zName, zNewName
129871 , pRtree->zDb, pRtree->zName, zNewName
129909 const char *zDb,
129943 zDb, zPrefix, zDb, zPrefix, zDb, zPrefix, zDb, zPrefix, pRtree->iNodeSize
129966 char *zSql = sqlite3_mprintf(azSql[i], zDb, zPrefix);
130024 zSql = sqlite3_mprintf("PRAGMA %Q.page_size", pRtree->zDb);
130035 pRtree->zDb, pRtree->zName
130092 pRtree->zDb = (char *)&pRtree[1];
130093 pRtree->zName = &pRtree->zDb[nDb+1];
130097 memcpy(pRtree->zDb, argv[1], nDb);