Lines Matching refs:pTabList

333 ** number pTabList->a[0].iCursor.  t2 uses the cursor pTabList->a[1].iCursor.
385 SrcList *pTabList, /* A list of all tables to be scanned */
406 assert( pushKey==0 || pTabList->nSrc==1 );
425 pWInfo = sqliteMalloc( sizeof(WhereInfo) + pTabList->nSrc*sizeof(WhereLevel));
431 pWInfo->pTabList = pTabList;
438 if( pWhere && (pTabList->nSrc==0 || sqliteExprIsConstant(pWhere)) ){
470 ** loop where i==0 is the outer loop and i==pTabList->nSrc-1 is the inner
485 for(i=0; i<pTabList->nSrc && i<ARRAYSIZE(iDirectEq); i++){
487 int iCur = pTabList->a[i].iCursor; /* The cursor for this table */
489 Table *pTab = pTabList->a[i].pTab;
667 if( ppOrderBy && *ppOrderBy && pTabList->nSrc>0 ){
673 pTab = pTabList->a[0].pTab;
688 pSortIdx = findSortingIndex(pTab, pTabList->a[0].iCursor,
702 /* Open all tables in the pTabList and all indices used by those tables.
704 for(i=0; i<pTabList->nSrc; i++){
708 pTab = pTabList->a[i].pTab;
711 sqliteVdbeOp3(v, OP_OpenRead, pTabList->a[i].iCursor, pTab->tnum,
723 for(i=0; i<pTabList->nSrc; i++){
725 int iCur = pTabList->a[i].iCursor;
733 if( i>0 && (pTabList->a[i-1].jointype & JT_LEFT)!=0 ){
862 if( i==pTabList->nSrc-1 && pushKey ){
1125 if( i==pTabList->nSrc-1 && pushKey ){
1183 sqliteVdbeAddOp(v, OP_Recno, pTabList->a[0].iCursor, 0);
1197 SrcList *pTabList = pWInfo->pTabList;
1199 for(i=pTabList->nSrc-1; i>=0; i--){
1213 sqliteVdbeAddOp(v, OP_NullRow, pTabList->a[i].iCursor, 0);
1221 for(i=0; i<pTabList->nSrc; i++){
1222 Table *pTab = pTabList->a[i].pTab;
1226 sqliteVdbeAddOp(v, OP_Close, pTabList->a[i].iCursor, 0);