Home
last modified time | relevance | path

Searched refs:pTabList (Results 1 – 7 of 7) sorted by relevance

/illumos-gate/usr/src/lib/libsqlite/src/
H A Dselect.c660 SrcList *pTabList, /* List of tables */ in generateColumnTypes() argument
669 if( p->op==TK_COLUMN && pTabList ){ in generateColumnTypes()
672 for(j=0; j<pTabList->nSrc && pTabList->a[j].iCursor!=p->iTable; j++){} in generateColumnTypes()
673 assert( j<pTabList->nSrc ); in generateColumnTypes()
674 pTab = pTabList->a[j].pTab; in generateColumnTypes()
700 SrcList *pTabList, /* List of tables */ in generateColumnNames() argument
723 if( p->op==TK_COLUMN && pTabList ){ in generateColumnNames()
727 for(j=0; j<pTabList->nSrc && pTabList->a[j].iCursor!=p->iTable; j++){} in generateColumnNames()
728 assert( j<pTabList->nSrc ); in generateColumnNames()
729 pTab = pTabList->a[j].pTab; in generateColumnNames()
[all …]
H A Dwhere.c382 SrcList *pTabList, /* A list of all tables to be scanned */ in sqliteWhereBegin() argument
403 assert( pushKey==0 || pTabList->nSrc==1 ); in sqliteWhereBegin()
422 pWInfo = sqliteMalloc( sizeof(WhereInfo) + pTabList->nSrc*sizeof(WhereLevel)); in sqliteWhereBegin()
428 pWInfo->pTabList = pTabList; in sqliteWhereBegin()
435 if( pWhere && (pTabList->nSrc==0 || sqliteExprIsConstant(pWhere)) ){ in sqliteWhereBegin()
482 for(i=0; i<pTabList->nSrc && i<ARRAYSIZE(iDirectEq); i++){ in sqliteWhereBegin()
484 int iCur = pTabList->a[i].iCursor; /* The cursor for this table */ in sqliteWhereBegin()
486 Table *pTab = pTabList->a[i].pTab; in sqliteWhereBegin()
664 if( ppOrderBy && *ppOrderBy && pTabList->nSrc>0 ){ in sqliteWhereBegin()
670 pTab = pTabList->a[0].pTab; in sqliteWhereBegin()
[all …]
H A Ddelete.c58 SrcList *pTabList, /* The table from which we should delete things */ in sqliteDeleteFrom() argument
80 pTabList = 0; in sqliteDeleteFrom()
84 assert( pTabList->nSrc==1 ); in sqliteDeleteFrom()
91 pTab = sqliteSrcListLookup(pParse, pTabList); in sqliteDeleteFrom()
122 assert( pTabList->nSrc==1 ); in sqliteDeleteFrom()
123 iCur = pTabList->a[0].iCursor = pParse->nTab++; in sqliteDeleteFrom()
125 if( sqliteExprResolveIds(pParse, pTabList, 0, pWhere) ){ in sqliteDeleteFrom()
197 pWInfo = sqliteWhereBegin(pParse, pTabList, pWhere, 1, 0); in sqliteDeleteFrom()
311 sqliteSrcListDelete(pTabList); in sqliteDeleteFrom()
H A Dauth.c106 SrcList *pTabList /* All table that pExpr might refer to */ in sqliteAuthRead() argument
117 for(iSrc=0; iSrc<pTabList->nSrc; iSrc++){ in sqliteAuthRead()
118 if( pExpr->iTable==pTabList->a[iSrc].iCursor ) break; in sqliteAuthRead()
120 if( iSrc>=0 && iSrc<pTabList->nSrc ){ in sqliteAuthRead()
121 pTab = pTabList->a[iSrc].pTab; in sqliteAuthRead()
H A Dupdate.c28 SrcList *pTabList, /* The table in which we should change things */ in sqliteUpdate() argument
66 assert( pTabList->nSrc==1 ); in sqliteUpdate()
71 pTab = sqliteSrcListLookup(pParse, pTabList); in sqliteUpdate()
104 pTabList->a[0].iCursor = iCur = pParse->nTab++; in sqliteUpdate()
117 if( sqliteExprResolveIds(pParse, pTabList, 0, pChanges->a[i].pExpr) ){ in sqliteUpdate()
196 if( sqliteExprResolveIds(pParse, pTabList, 0, pWhere) ){ in sqliteUpdate()
228 pWInfo = sqliteWhereBegin(pParse, pTabList, pWhere, 1, 0); in sqliteUpdate()
455 sqliteSrcListDelete(pTabList); in sqliteUpdate()
H A Dinsert.c88 SrcList *pTabList, /* Name of table into which we are inserting */ in sqliteInsert() argument
124 assert( pTabList->nSrc==1 ); in sqliteInsert()
125 zTab = pTabList->a[0].zName; in sqliteInsert()
127 pTab = sqliteSrcListLookup(pParse, pTabList); in sqliteInsert()
262 pTabList, 0, pTab->nCol, nColumn); in sqliteInsert()
300 pTabList, 0, pColumn->a[i].zName); in sqliteInsert()
535 sqliteSrcListDelete(pTabList); in sqliteInsert()
H A DsqliteInt.h823 SrcList *pTabList; /* List of tables in the join */ member