Home
last modified time | relevance | path

Searched refs:zDb (Results 1 – 25 of 49) sorted by relevance

12

/external/chromium_org/third_party/sqlite/src/src/
Dalter.c399 char *zDb; /* Name of database iDb */ in sqlite3AlterRenameTable() local
420 zDb = db->aDb[iDb].zName; in sqlite3AlterRenameTable()
430 if( sqlite3FindTable(db, zName, zDb) || sqlite3FindIndex(db, zName, zDb) ){ in sqlite3AlterRenameTable()
455 if( sqlite3AuthCheck(pParse, SQLITE_ALTER_TABLE, zDb, pTab->zName, 0) ){ in sqlite3AlterRenameTable()
511 "WHERE %s;", zDb, SCHEMA_TABLE(iDb), zTabName, zName, zWhere); in sqlite3AlterRenameTable()
535 zDb, SCHEMA_TABLE(iDb), zName, zName, zName, in sqlite3AlterRenameTable()
546 if( sqlite3FindTable(db, "sqlite_sequence", zDb) ){ in sqlite3AlterRenameTable()
549 zDb, zName, pTab->zName); in sqlite3AlterRenameTable()
627 const char *zDb; /* Database name */ in sqlite3AlterFinishAddColumn() local
641 zDb = db->aDb[iDb].zName; in sqlite3AlterFinishAddColumn()
[all …]
Dauth.c108 char *zDb = db->aDb[iDb].zName; /* Name of attached database */ in sqlite3AuthReadCol() local
111 rc = db->xAuth(db->pAuthArg, SQLITE_READ, zTab,zCol,zDb,pParse->zAuthContext); in sqlite3AuthReadCol()
114 sqlite3ErrorMsg(pParse, "access to %s.%s.%s is prohibited",zDb,zTab,zCol); in sqlite3AuthReadCol()
Dattach.c422 pFix->zDb = db->aDb[iDb].zName; in sqlite3FixInit()
447 const char *zDb; in sqlite3FixSrcList() local
451 zDb = pFix->zDb; in sqlite3FixSrcList()
454 pItem->zDatabase = sqlite3DbStrDup(pFix->pParse->db, zDb); in sqlite3FixSrcList()
455 }else if( sqlite3StrICmp(pItem->zDatabase,zDb)!=0 ){ in sqlite3FixSrcList()
Dtrigger.c206 const char *zDb = db->aDb[iTabDb].zName; in sqlite3BeginTrigger() local
207 const char *zDbTrig = isTemp ? db->aDb[1].zName : zDb; in sqlite3BeginTrigger()
212 if( sqlite3AuthCheck(pParse, SQLITE_INSERT, SCHEMA_TABLE(iTabDb),0,zDb)){ in sqlite3BeginTrigger()
480 const char *zDb; in sqlite3DropTrigger() local
491 zDb = pName->a[0].zDatabase; in sqlite3DropTrigger()
494 assert( zDb!=0 || sqlite3BtreeHoldsAllMutexes(db) ); in sqlite3DropTrigger()
497 if( zDb && sqlite3StrICmp(db->aDb[j].zName, zDb) ) continue; in sqlite3DropTrigger()
506 sqlite3CodeVerifyNamedSchema(pParse, zDb); in sqlite3DropTrigger()
544 const char *zDb = db->aDb[iDb].zName; in sqlite3DropTriggerPtr() local
547 if( sqlite3AuthCheck(pParse, code, pTrigger->zName, pTable->zName, zDb) || in sqlite3DropTriggerPtr()
[all …]
Dresolve.c130 const char *zDb, /* Name of the database containing table, or NULL */ in lookupName() argument
179 if( zDb!=0 && sqlite3StrICmp(db->aDb[iDb].zName, zDb)!=0 ){ in lookupName()
230 if( zDb==0 && zTab!=0 && cnt==0 && pParse->pTriggerTab!=0 ){ in lookupName()
316 assert( zTab==0 && zDb==0 ); in lookupName()
353 if( zDb ){ in lookupName()
354 sqlite3ErrorMsg(pParse, "%s: %s.%s.%s", zErr, zDb, zTab, zCol); in lookupName()
492 const char *zDb; in resolveExprStep() local
498 zDb = 0; in resolveExprStep()
503 zDb = pExpr->pLeft->u.zToken; in resolveExprStep()
507 return lookupName(pParse, zDb, zTable, zColumn, pNC, pExpr); in resolveExprStep()
Drecover.c492 static int getRootPage(sqlite3 *db, const char *zDb, const char *zTable, in getRootPage() argument
505 zDb, zTable); in getRootPage()
535 static int getEncoding(sqlite3 *db, const char *zDb, int* piEncoding){ in getEncoding() argument
538 char *zSql = sqlite3_mprintf("PRAGMA %s.encoding", zDb); in getEncoding()
1535 char *zDb; /* Database containing target table */ member
1543 sqlite3_free(pRecover->zDb); in recoverRelease()
1620 rc = getRootPage(pRecover->db, pRecover->zDb, pRecover->zTable, in recoverOpen()
1627 rc = getEncoding(pRecover->db, pRecover->zDb, &iEncoding); in recoverOpen()
1632 rc = GetPager(pRecover->db, pRecover->zDb, &pPager, &nPageSize); in recoverOpen()
2115 pRecover->zDb = sqlite3_strdup(db->aDb[0].zName); in recoverInit()
[all …]
Dbuild.c336 Index *sqlite3FindIndex(sqlite3 *db, const char *zName, const char *zDb){ in sqlite3FindIndex() argument
341 assert( zDb!=0 || sqlite3BtreeHoldsAllMutexes(db) ); in sqlite3FindIndex()
346 if( zDb && sqlite3StrICmp(zDb, db->aDb[j].zName) ) continue; in sqlite3FindIndex()
777 char *zDb = db->aDb[iDb].zName; in sqlite3StartTable() local
778 if( sqlite3AuthCheck(pParse, SQLITE_INSERT, SCHEMA_TABLE(isTemp), 0, zDb) ){ in sqlite3StartTable()
794 if( !isVirtual && sqlite3AuthCheck(pParse, code, zName, 0, zDb) ){ in sqlite3StartTable()
808 char *zDb = db->aDb[iDb].zName; in sqlite3StartTable() local
812 pTable = sqlite3FindTable(db, zName, zDb); in sqlite3StartTable()
822 if( sqlite3FindIndex(db, zName, zDb)!=0 ){ in sqlite3StartTable()
2022 const char *zDb = db->aDb[iDb].zName; in sqlite3DropTable() local
[all …]
Dtest1.c1548 const char *zDb; in test_table_column_metadata() local
1565 zDb = Tcl_GetString(objv[2]); in test_table_column_metadata()
1569 if( strlen(zDb)==0 ) zDb = 0; in test_table_column_metadata()
1571 rc = sqlite3_table_column_metadata(db, zDb, zTbl, zCol, in test_table_column_metadata()
2018 char *zDb; in test_load_extension() local
2027 zDb = Tcl_GetString(objv[1]); in test_load_extension()
2034 if( !Tcl_GetCommandInfo(interp, zDb, &cmdInfo) ){ in test_load_extension()
2035 Tcl_AppendResult(interp, "command not found: ", zDb, (char*)0); in test_load_extension()
2073 char *zDb; in test_enable_load() local
2080 zDb = Tcl_GetString(objv[1]); in test_enable_load()
[all …]
Dpragma.c310 const char *zDb = 0; /* The database name */ in sqlite3Pragma() local
342 zDb = pId2->n>0 ? pDb->zName : 0; in sqlite3Pragma()
343 if( sqlite3AuthCheck(pParse, SQLITE_PRAGMA, zLeft, zRight, zDb) ){ in sqlite3Pragma()
866 pTab = sqlite3FindTable(db, zRight, zDb); in sqlite3Pragma()
905 pIdx = sqlite3FindIndex(db, zRight, zDb); in sqlite3Pragma()
929 pTab = sqlite3FindTable(db, zRight, zDb); in sqlite3Pragma()
992 pTab = sqlite3FindTable(db, zRight, zDb); in sqlite3Pragma()
Danalyze.c442 char *z, *zDb; in sqlite3Analyze() local
481 zDb = db->aDb[iDb].zName; in sqlite3Analyze()
484 if( (pIdx = sqlite3FindIndex(db, z, zDb))!=0 ){ in sqlite3Analyze()
486 }else if( (pTab = sqlite3LocateTable(pParse, 0, z, zDb))!=0 ){ in sqlite3Analyze()
Ddelete.c230 const char *zDb; /* Name of database holding pTab */ in sqlite3DeleteFrom() local
289 zDb = db->aDb[iDb].zName; in sqlite3DeleteFrom()
290 rcauth = sqlite3AuthCheck(pParse, SQLITE_DELETE, pTab->zName, 0, zDb); in sqlite3DeleteFrom()
Dtest_stat.c586 char *zDb; in test_dbstat()
594 zDb = Tcl_GetString(objv[1]); in test_dbstat()
595 if( Tcl_GetCommandInfo(interp, zDb, &cmdInfo) ){ in test_dbstat()
Dmain.c1320 const char *zDb, /* Database */ in sqlite3WalDefaultHook() argument
1325 sqlite3_wal_checkpoint(db, zDb); in sqlite3WalDefaultHook()
1384 const char *zDb, /* Name of attached database (or NULL) */ in sqlite3_wal_checkpoint_v2() argument
1407 if( zDb && zDb[0] ){ in sqlite3_wal_checkpoint_v2()
1408 iDb = sqlite3FindDbName(db, zDb); in sqlite3_wal_checkpoint_v2()
1412 sqlite3Error(db, SQLITE_ERROR, "unknown database: %s", zDb); in sqlite3_wal_checkpoint_v2()
1429 int sqlite3_wal_checkpoint(sqlite3 *db, const char *zDb){ in sqlite3_wal_checkpoint() argument
1430 return sqlite3_wal_checkpoint_v2(db, zDb, SQLITE_CHECKPOINT_PASSIVE, 0, 0); in sqlite3_wal_checkpoint()
Dbackup.c88 static Btree *findBtree(sqlite3 *pErrorDb, sqlite3 *pDb, const char *zDb){ in findBtree() argument
89 int i = sqlite3FindDbName(pDb, zDb); in findBtree()
113 sqlite3Error(pErrorDb, SQLITE_ERROR, "unknown database %s", zDb); in findBtree()
Dvdbeblob.c110 const char *zDb, /* The attached database containing the blob */ in sqlite3_blob_open() argument
176 pTab = sqlite3LocateTable(pParse, 0, zTable, zDb); in sqlite3_blob_open()
Dfkey.c692 const char *zDb; /* Name of database containing pTab */ in sqlite3FkCheck() local
702 zDb = db->aDb[iDb].zName; in sqlite3FkCheck()
720 pTo = sqlite3FindTable(db, pFKey->zTo, zDb); in sqlite3FkCheck()
722 pTo = sqlite3LocateTable(pParse, 0, pFKey->zTo, zDb); in sqlite3FkCheck()
/external/chromium_org/third_party/sqlite/src/tool/
Dspeedtest8inst1.c136 const char *zDb = 0; in main() local
154 zDb = argv[++ii]; in main()
173 if( !zDb || !zScript || !zLog ) goto usage; in main()
184 zDb, &db, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE, "logging" in main()
/external/chromium_org/third_party/sqlite/src/ext/fts3/
Dfts3_aux.c64 char const *zDb; /* Name of database (e.g. "main") */ in fts3auxConnectMethod() local
82 zDb = argv[1]; in fts3auxConnectMethod()
83 nDb = strlen(zDb); in fts3auxConnectMethod()
96 p->pFts3Tab->zDb = (char *)&p->pFts3Tab[1]; in fts3auxConnectMethod()
97 p->pFts3Tab->zName = &p->pFts3Tab->zDb[nDb+1]; in fts3auxConnectMethod()
100 memcpy((char *)p->pFts3Tab->zDb, zDb, nDb); in fts3auxConnectMethod()
Dfts3.c498 fts3DbExec(&rc, db, "DROP TABLE IF EXISTS %Q.'%q_content'", p->zDb, p->zName); in fts3DestroyMethod()
499 fts3DbExec(&rc, db, "DROP TABLE IF EXISTS %Q.'%q_segments'", p->zDb,p->zName); in fts3DestroyMethod()
500 fts3DbExec(&rc, db, "DROP TABLE IF EXISTS %Q.'%q_segdir'", p->zDb, p->zName); in fts3DestroyMethod()
501 fts3DbExec(&rc, db, "DROP TABLE IF EXISTS %Q.'%q_docsize'", p->zDb, p->zName); in fts3DestroyMethod()
502 fts3DbExec(&rc, db, "DROP TABLE IF EXISTS %Q.'%q_stat'", p->zDb, p->zName); in fts3DestroyMethod()
576 p->zDb, p->zName, zContentCols in fts3CreateTables()
582 p->zDb, p->zName in fts3CreateTables()
594 p->zDb, p->zName in fts3CreateTables()
599 p->zDb, p->zName in fts3CreateTables()
605 p->zDb, p->zName in fts3CreateTables()
[all …]
/external/chromium_org/third_party/sqlite/src/test/
Dwalhook.test27 proc wal_hook {zDb nEntry} {
28 lappend ::wal_hook $zDb $nEntry
55 proc wal_hook {zDb nEntry} {
65 proc wal_hook {zDb nEntry} {
Dtt3_checkpoint.c56 const char *zDb, in checkpoint_starvation_walhook() argument
64 sqlite3_wal_checkpoint_v2(db, zDb, p->eMode, 0, 0); in checkpoint_starvation_walhook()
Dthreadtest1.c268 char *zDb = &zFile[2]; in main() local
269 char *zJournal = sqlite3_mprintf("%s-journal", zDb); in main()
270 unlink(zDb); in main()
/external/chromium_org/third_party/sqlite/src/ext/fts1/
Dfts1.c891 const char *zDb, const char *zName){ in string_format() argument
894 size_t nDb = strlen(zDb); in string_format()
909 memcpy(r, zDb, nDb); in string_format()
923 static int sql_exec(sqlite3 *db, const char *zDb, const char *zName, in sql_exec() argument
925 char *zCommand = string_format(zFormat, zDb, zName); in sql_exec()
933 static int sql_prepare(sqlite3 *db, const char *zDb, const char *zName, in sql_prepare() argument
935 char *zCommand = string_format(zFormat, zDb, zName); in sql_prepare()
1087 const char *zDb; /* logical database name */ member
1187 rc = sql_prepare(v->db, v->zDb, v->zName, &v->pFulltextStatements[iStmt], in sql_get_statement()
1789 const char *zDb; /* Logical database name */ member
[all …]
/external/chromium_org/third_party/sqlite/src/ext/rtree/
Drtree.c150 char *zDb; /* Name of database containing r-tree table */ member
782 pRtree->zDb, pRtree->zName, in rtreeDestroy()
783 pRtree->zDb, pRtree->zName, in rtreeDestroy()
784 pRtree->zDb, pRtree->zName in rtreeDestroy()
2803 , pRtree->zDb, pRtree->zName, zNewName in rtreeRename()
2804 , pRtree->zDb, pRtree->zName, zNewName in rtreeRename()
2805 , pRtree->zDb, pRtree->zName, zNewName in rtreeRename()
2840 const char *zDb, in rtreeSqlInit() argument
2874 zDb, zPrefix, zDb, zPrefix, zDb, zPrefix, zDb, zPrefix, pRtree->iNodeSize in rtreeSqlInit()
2897 char *zSql = sqlite3_mprintf(azSql[i], zDb, zPrefix); in rtreeSqlInit()
[all …]
/external/chromium_org/third_party/sqlite/src/ext/fts2/
Dfts2.c1810 const char *zDb, const char *zName){ in string_format() argument
1813 size_t nDb = strlen(zDb); in string_format()
1828 memcpy(r, zDb, nDb); in string_format()
1842 static int sql_exec(sqlite3 *db, const char *zDb, const char *zName, in sql_exec() argument
1844 char *zCommand = string_format(zFormat, zDb, zName); in sql_exec()
1852 static int sql_prepare(sqlite3 *db, const char *zDb, const char *zName, in sql_prepare() argument
1854 char *zCommand = string_format(zFormat, zDb, zName); in sql_prepare()
2022 const char *zDb; /* logical database name */ member
2137 rc = sql_prepare(v->db, v->zDb, v->zName, &v->pFulltextStatements[iStmt], in sql_get_statement()
2170 return sql_prepare(v->db, v->zDb, v->zName, ppStmt, LEAF_SELECT); in sql_get_leaf_statement()
[all …]

12