Home
last modified time | relevance | path

Searched refs:zTab (Results 1 – 15 of 15) sorted by relevance

/external/chromium_org/third_party/sqlite/src/ext/rtree/
Drtree_util.tcl30 proc rtree_depth {db zTab} { argument
31 $db one "SELECT rtreedepth(data) FROM ${zTab}_node WHERE nodeno=1"
34 proc rtree_nodedepth {db zTab iNode} {
35 set iDepth [rtree_depth $db $zTab]
39 set sql "SELECT parentnode FROM ${zTab}_parent WHERE nodeno = $ii"
49 proc rtree_ndim {db zTab} { argument
50 set nDim [expr {(([llength [$db eval "pragma table_info($zTab)"]]/6)-1)/2}]
55 proc rtree_node {db zTab iNode {iPrec 6}} {
56 set nDim [rtree_ndim $db $zTab]
58 SELECT rtreenode($nDim, data) FROM ${zTab}_node WHERE nodeno = $iNode
[all …]
Dviewrtree.tcl18 set sql "SELECT parentnode FROM $::O(zTab)_parent WHERE nodeno = $::O(iNode)"
25 set O(zTab) ""
57 set ::O(zTab) [lindex $::option_var 1]
61 set ::O(zTab) [lindex $::rtree_tables 0 1]
85 .status configure -text [cell_report db $::O(zTab) $::O(iNode) $i]
119 set zTab $::O(zTab)
121 set data [rtree_node db $zTab $iNode 12]
122 set depth [rtree_nodedepth db $zTab $iNode]
131 .title configure -text "Node $iNode: [cell_report db $zTab $iNode -1]"
158 proc cell_report {db zTab iParent iCell} {
[all …]
/external/chromium_org/third_party/sqlite/src/src/
Dauth.c103 const char *zTab, /* Table name */ in sqlite3AuthReadCol() argument
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()
116 sqlite3ErrorMsg(pParse, "access to %s.%s is prohibited", zTab, zCol); in sqlite3AuthReadCol()
Dresolve.c131 const char *zTab, /* Name of table containing column, or NULL */ in lookupName() argument
170 if( zTab ){ in lookupName()
173 if( sqlite3StrICmp(zTabName, zTab)!=0 ) continue; in lookupName()
176 if( NEVER(zTabName==0) || sqlite3StrICmp(zTabName, zTab)!=0 ){ in lookupName()
230 if( zDb==0 && zTab!=0 && cnt==0 && pParse->pTriggerTab!=0 ){ in lookupName()
234 if( op!=TK_DELETE && sqlite3StrICmp("new",zTab) == 0 ){ in lookupName()
237 }else if( op!=TK_INSERT && sqlite3StrICmp("old",zTab)==0 ){ in lookupName()
300 if( cnt==0 && (pEList = pNC->pEList)!=0 && zTab==0 ){ in lookupName()
316 assert( zTab==0 && zDb==0 ); in lookupName()
340 if( cnt==0 && zTab==0 && ExprHasProperty(pExpr,EP_DblQuoted) ){ in lookupName()
[all …]
Danalyze.c63 const char *zTab = aTable[i].zName; in openStatTable() local
65 if( (pStat = sqlite3FindTable(db, zTab, pDb->zName))==0 ){ in openStatTable()
71 "CREATE TABLE %Q.%s(%s)", pDb->zName, zTab, aTable[i].zCols in openStatTable()
80 sqlite3TableLock(pParse, iDb, aRoot[i], 1, zTab); in openStatTable()
83 "DELETE FROM %Q.%s WHERE %s=%Q", pDb->zName, zTab, zWhereType, zWhere in openStatTable()
Dalter.c628 const char *zTab; /* Table name */ in sqlite3AlterFinishAddColumn() local
642 zTab = &pNew->zName[16]; /* Skip the "sqlite_altertab_" prefix on the name */ in sqlite3AlterFinishAddColumn()
645 pTab = sqlite3FindTable(db, zTab, zDb); in sqlite3AlterFinishAddColumn()
716 zTab in sqlite3AlterFinishAddColumn()
Dvtab.c599 int sqlite3VtabCallCreate(sqlite3 *db, int iDb, const char *zTab, char **pzErr){ in sqlite3VtabCallCreate() argument
605 pTab = sqlite3FindTable(db, zTab, db->aDb[iDb].zName); in sqlite3VtabCallCreate()
701 int sqlite3VtabCallDestroy(sqlite3 *db, int iDb, const char *zTab){ in sqlite3VtabCallDestroy() argument
705 pTab = sqlite3FindTable(db, zTab, db->aDb[iDb].zName); in sqlite3VtabCallDestroy()
Dtest8.c157 const char *zTab, in getColumnNames() argument
171 zSql = sqlite3_mprintf("SELECT * FROM %Q", zTab); in getColumnNames()
237 const char *zTab, /* Name of table in database db */ in getIndexArray() argument
254 zSql = sqlite3_mprintf("PRAGMA index_list(%s)", zTab); in getIndexArray()
Dinsert.c443 char *zTab; /* Name of the table into which we are inserting */ in sqlite3Insert() local
488 zTab = pTabList->a[0].zName; in sqlite3Insert()
489 if( NEVER(zTab==0) ) goto insert_cleanup; in sqlite3Insert()
Dtrigger.c545 const char *zTab = SCHEMA_TABLE(iDb); in sqlite3DropTriggerPtr() local
548 sqlite3AuthCheck(pParse, SQLITE_DELETE, zTab, 0, zDb) ){ in sqlite3DropTriggerPtr()
Dbuild.c2021 const char *zTab = SCHEMA_TABLE(iDb); in sqlite3DropTable() local
2024 if( sqlite3AuthCheck(pParse, SQLITE_DELETE, zTab, 0, zDb)){ in sqlite3DropTable()
2938 const char *zTab = SCHEMA_TABLE(iDb); in sqlite3DropIndex() local
2939 if( sqlite3AuthCheck(pParse, SQLITE_DELETE, zTab, 0, zDb) ){ in sqlite3DropIndex()
/external/sqlite/dist/
Dsqlite3.c76963 const char *zTab,
76973 if( zTab && (sqlite3StrNICmp(zSpan, zTab, n)!=0 || zTab[n]!=0) ){
77013 const char *zTab, /* Name of table containing column, or NULL */
77077 if( sqlite3MatchSpanName(pEList->a[j].zSpan, zCol, zTab, zDb) ){
77085 if( hit || zTab==0 ) continue;
77090 if( zTab ){
77093 if( sqlite3StrICmp(zTabName, zTab)!=0 ){
77129 if( zDb==0 && zTab!=0 && cntTab==0 && pParse->pTriggerTab!=0 ){
77132 if( op!=TK_DELETE && sqlite3StrICmp("new",zTab) == 0 ){
77135 }else if( op!=TK_INSERT && sqlite3StrICmp("old",zTab)==0 ){
[all …]
/external/sqlite/dist/orig/
Dsqlite3.c76943 const char *zTab,
76953 if( zTab && (sqlite3StrNICmp(zSpan, zTab, n)!=0 || zTab[n]!=0) ){
76993 const char *zTab, /* Name of table containing column, or NULL */
77057 if( sqlite3MatchSpanName(pEList->a[j].zSpan, zCol, zTab, zDb) ){
77065 if( hit || zTab==0 ) continue;
77070 if( zTab ){
77073 if( sqlite3StrICmp(zTabName, zTab)!=0 ){
77109 if( zDb==0 && zTab!=0 && cntTab==0 && pParse->pTriggerTab!=0 ){
77112 if( op!=TK_DELETE && sqlite3StrICmp("new",zTab) == 0 ){
77115 }else if( op!=TK_INSERT && sqlite3StrICmp("old",zTab)==0 ){
[all …]
/external/chromium_org/third_party/sqlite/amalgamation/
Dsqlite3.c69662 const char *zTab, /* Name of table containing column, or NULL */
69701 if( zTab ){
69704 if( sqlite3StrICmp(zTabName, zTab)!=0 ) continue;
69707 if( NEVER(zTabName==0) || sqlite3StrICmp(zTabName, zTab)!=0 ){
69761 if( zDb==0 && zTab!=0 && cnt==0 && pParse->pTriggerTab!=0 ){
69765 if( op!=TK_DELETE && sqlite3StrICmp("new",zTab) == 0 ){
69768 }else if( op!=TK_INSERT && sqlite3StrICmp("old",zTab)==0 ){
69831 if( cnt==0 && (pEList = pNC->pEList)!=0 && zTab==0 ){
69847 assert( zTab==0 && zDb==0 );
69871 if( cnt==0 && zTab==0 && ExprHasProperty(pExpr,EP_DblQuoted) ){
[all …]
/external/chromium_org/third_party/sqlite/src/test/
De_fkey.test1737 foreach {tn zTab lRes} {
1747 do_test e_fkey-40.$tn { execsql "PRAGMA foreign_key_list($zTab)" } $lRes