Home
last modified time | relevance | path

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

/titanic_41/usr/src/lib/libsqlite/src/
H A Dselect.c664 SrcList *pTabList, /* List of tables */ in generateColumnTypes() argument
673 if( p->op==TK_COLUMN && pTabList ){ in generateColumnTypes()
676 for(j=0; j<pTabList->nSrc && pTabList->a[j].iCursor!=p->iTable; j++){} in generateColumnTypes()
677 assert( j<pTabList->nSrc ); in generateColumnTypes()
678 pTab = pTabList->a[j].pTab; in generateColumnTypes()
704 SrcList *pTabList, /* List of tables */ in generateColumnNames() argument
727 if( p->op==TK_COLUMN && pTabList ){ in generateColumnNames()
731 for(j=0; j<pTabList->nSrc && pTabList->a[j].iCursor!=p->iTable; j++){} in generateColumnNames()
732 assert( j<pTabList->nSrc ); in generateColumnNames()
733 pTab = pTabList->a[j].pTab; in generateColumnNames()
[all …]
H A Dwhere.c385 SrcList *pTabList, /* A list of all tables to be scanned */ in sqliteWhereBegin() argument
406 assert( pushKey==0 || pTabList->nSrc==1 ); in sqliteWhereBegin()
425 pWInfo = sqliteMalloc( sizeof(WhereInfo) + pTabList->nSrc*sizeof(WhereLevel)); in sqliteWhereBegin()
431 pWInfo->pTabList = pTabList; in sqliteWhereBegin()
438 if( pWhere && (pTabList->nSrc==0 || sqliteExprIsConstant(pWhere)) ){ in sqliteWhereBegin()
485 for(i=0; i<pTabList->nSrc && i<ARRAYSIZE(iDirectEq); i++){ in sqliteWhereBegin()
487 int iCur = pTabList->a[i].iCursor; /* The cursor for this table */ in sqliteWhereBegin()
489 Table *pTab = pTabList->a[i].pTab; in sqliteWhereBegin()
667 if( ppOrderBy && *ppOrderBy && pTabList->nSrc>0 ){ in sqliteWhereBegin()
673 pTab = pTabList->a[0].pTab; in sqliteWhereBegin()
[all …]
H A Ddelete.c61 SrcList *pTabList, /* The table from which we should delete things */ in sqliteDeleteFrom() argument
83 pTabList = 0; in sqliteDeleteFrom()
87 assert( pTabList->nSrc==1 ); in sqliteDeleteFrom()
94 pTab = sqliteSrcListLookup(pParse, pTabList); in sqliteDeleteFrom()
125 assert( pTabList->nSrc==1 ); in sqliteDeleteFrom()
126 iCur = pTabList->a[0].iCursor = pParse->nTab++; in sqliteDeleteFrom()
128 if( sqliteExprResolveIds(pParse, pTabList, 0, pWhere) ){ in sqliteDeleteFrom()
200 pWInfo = sqliteWhereBegin(pParse, pTabList, pWhere, 1, 0); in sqliteDeleteFrom()
314 sqliteSrcListDelete(pTabList); in sqliteDeleteFrom()
H A Dauth.c109 SrcList *pTabList /* All table that pExpr might refer to */ in sqliteAuthRead() argument
120 for(iSrc=0; iSrc<pTabList->nSrc; iSrc++){ in sqliteAuthRead()
121 if( pExpr->iTable==pTabList->a[iSrc].iCursor ) break; in sqliteAuthRead()
123 if( iSrc>=0 && iSrc<pTabList->nSrc ){ in sqliteAuthRead()
124 pTab = pTabList->a[iSrc].pTab; in sqliteAuthRead()
H A Dupdate.c31 SrcList *pTabList, /* The table in which we should change things */ in sqliteUpdate() argument
69 assert( pTabList->nSrc==1 ); in sqliteUpdate()
74 pTab = sqliteSrcListLookup(pParse, pTabList); in sqliteUpdate()
107 pTabList->a[0].iCursor = iCur = pParse->nTab++; in sqliteUpdate()
120 if( sqliteExprResolveIds(pParse, pTabList, 0, pChanges->a[i].pExpr) ){ in sqliteUpdate()
199 if( sqliteExprResolveIds(pParse, pTabList, 0, pWhere) ){ in sqliteUpdate()
231 pWInfo = sqliteWhereBegin(pParse, pTabList, pWhere, 1, 0); in sqliteUpdate()
458 sqliteSrcListDelete(pTabList); in sqliteUpdate()
H A Dinsert.c91 SrcList *pTabList, /* Name of table into which we are inserting */ in sqliteInsert() argument
127 assert( pTabList->nSrc==1 ); in sqliteInsert()
128 zTab = pTabList->a[0].zName; in sqliteInsert()
130 pTab = sqliteSrcListLookup(pParse, pTabList); in sqliteInsert()
265 pTabList, 0, pTab->nCol, nColumn); in sqliteInsert()
303 pTabList, 0, pColumn->a[i].zName); in sqliteInsert()
538 sqliteSrcListDelete(pTabList); in sqliteInsert()
H A DsqliteInt.h826 SrcList *pTabList; /* List of tables in the join */ member