Lines Matching refs:pTabList
10858 #define WHERE_ONETABLE_ONLY 0x0040 /* Only code the 1st table in pTabList */
10874 SrcList *pTabList; /* List of tables in the join */
81108 ** is in pTabList or else it is the NEW or OLD table of a trigger.
81119 SrcList *pTabList /* All table that pExpr might refer to */
81124 int iSrc; /* Index in pTabList->a[] of table being read */
81140 assert( pTabList );
81141 for(iSrc=0; ALWAYS(iSrc<pTabList->nSrc); iSrc++){
81142 if( pExpr->iTable==pTabList->a[iSrc].iCursor ){
81143 pTab = pTabList->a[iSrc].pTab;
85727 ** pTabList pWhere
85731 SrcList *pTabList, /* The table from which we should delete things */
85759 assert( pTabList->nSrc==1 );
85766 pTab = sqlite3SrcListLookup(pParse, pTabList);
85805 assert( pTabList->nSrc==1 );
85806 iCur = pTabList->a[0].iCursor = pParse->nTab++;
85839 sNC.pSrcList = pTabList;
85881 pParse, pTabList, pWhere, 0, 0, WHERE_DUPLICATES_OK
85954 sqlite3SrcListDelete(db, pTabList);
89434 SrcList *pTabList, /* Name of table into which we are inserting */
89486 assert( pTabList->nSrc==1 );
89487 zTab = pTabList->a[0].zName;
89489 pTab = sqlite3SrcListLookup(pParse, pTabList);
89691 pTabList, 0, pTab->nCol-nHidden, nColumn);
89729 pTabList, 0, pColumn->a[i].zName);
90041 sqlite3SrcListDelete(db, pTabList);
95566 SrcList *pTabList = pNC->pSrcList;
95567 for(j=0;j<pTabList->nSrc && pTabList->a[j].iCursor!=pExpr->iTable;j++);
95568 if( j<pTabList->nSrc ){
95569 pTab = pTabList->a[j].pTab;
95570 pS = pTabList->a[j].pSelect;
95669 SrcList *pTabList, /* List of tables */
95676 sNC.pSrcList = pTabList;
95709 SrcList *pTabList, /* List of tables */
95736 }else if( (p->op==TK_COLUMN || p->op==TK_AGG_COLUMN) && pTabList ){
95740 for(j=0; ALWAYS(j<pTabList->nSrc); j++){
95741 if( pTabList->a[j].iCursor==p->iTable ) break;
95743 assert( j<pTabList->nSrc );
95744 pTab = pTabList->a[j].pTab;
95767 generateColumnTypes(pParse, pTabList, pEList);
97719 ** (2) Fill in the pTabList->a[].pTab fields in the SrcList that
97721 ** fill pTabList->a[].pSelect with a copy of the SELECT statement
97739 SrcList *pTabList;
97751 pTabList = p->pSrc;
97757 sqlite3SrcListAssignCursors(pParse, pTabList);
97763 for(i=0, pFrom=pTabList->a; i<pTabList->nSrc; i++, pFrom++){
97873 for(i=0, pFrom=pTabList->a; i<pTabList->nSrc; i++, pFrom++){
97902 && tableAndColumnIndex(pTabList, i, zName, 0, 0)
97917 if( longNames || pTabList->nSrc>1 ){
98008 SrcList *pTabList;
98015 pTabList = p->pSrc;
98016 for(i=0, pFrom=pTabList->a; i<pTabList->nSrc; i++, pFrom++){
98301 SrcList *pTabList; /* List of tables to select from */
98338 pTabList = p->pSrc;
98363 for(i=0; !p->pPrior && i<pTabList->nSrc; i++){
98364 struct SrcList_item *pItem = &pTabList->a[i];
98426 pTabList = p->pSrc;
98552 pWInfo = sqlite3WhereBegin(pParse, pTabList, pWhere, &pOrderBy, pDist, 0);
98658 sNC.pSrcList = pTabList;
98723 pWInfo = sqlite3WhereBegin(pParse, pTabList, pWhere, &pGroupBy, 0, 0);
98992 pWInfo = sqlite3WhereBegin(pParse, pTabList, pWhere, &pMinMax, 0, flag);
99047 generateColumnNames(pParse, pTabList, pEList);
100563 * onError pTabList pChanges pWhere
100567 SrcList *pTabList, /* The table in which we should change things */
100614 assert( pTabList->nSrc==1 );
100618 pTab = sqlite3SrcListLookup(pParse, pTabList);
100654 pTabList->a[0].iCursor = iCur = pParse->nTab++;
100662 sNC.pSrcList = pTabList;
100746 updateVirtualTable(pParse, pTabList, pTab, pChanges, pRowidExpr, aXRef,
100749 pTabList = 0;
100792 pParse, pTabList, pWhere, 0, 0, WHERE_ONEPASS_DESIRED
101040 sqlite3SrcListDelete(db, pTabList);
103214 SrcList *pTabList, /* the FROM clause */
103219 exprAnalyze(pTabList, pWC, i);
104096 SrcList *pTabList,
104108 if( pTabList->nSrc!=1 ) return 0;
104109 iBase = pTabList->a[0].iCursor;
104110 pTab = pTabList->a[0].pTab;
106288 SrcList *pTabList, /* Table list this loop refers to */
106296 struct SrcList_item *pItem = &pTabList->a[pLevel->iFrom];
106395 pTabItem = &pWInfo->pTabList->a[pLevel->iFrom];
106882 origSrc = pWInfo->pTabList->a;
106887 pOrTab = pWInfo->pTabList;
107128 ** number pTabList->a[0].iCursor. t2 uses the cursor pTabList->a[1].iCursor.
107133 ** in pTabList pointing at their appropriate entries. The [...] code
107185 SrcList *pTabList, /* A list of all tables to be scanned */
107193 int nTabList; /* Number of elements in pTabList */
107199 struct SrcList_item *pTabItem; /* A single entry from pTabList */
107208 testcase( pTabList->nSrc==BMS );
107209 if( pTabList->nSrc>BMS ){
107215 ** pTabList. But if the WHERE_ONETABLE_ONLY flag is set, then we should
107216 ** only generate code for the first table in pTabList and assume that
107219 nTabList = (wctrlFlags & WHERE_ONETABLE_ONLY) ? 1 : pTabList->nSrc;
107242 pWInfo->pTabList = pTabList;
107285 ** Note that bitmasks are created for all pTabList->nSrc tables in
107286 ** pTabList, not just the first nTabList tables. nTabList is normally
107287 ** equal to pTabList->nSrc but might be shortened to 1 if the
107291 for(i=0; i<pTabList->nSrc; i++){
107292 createMask(pMaskSet, pTabList->a[i].iCursor);
107294 if( ALWAYS(pTabList->a[i].pTab) && IsVirtual(pTabList->a[i].pTab) ){
107302 for(i=0; i<pTabList->nSrc; i++){
107303 Bitmask m = getMask(pMaskSet, pTabList->a[i].iCursor);
107315 exprAnalyzeAll(pTabList, pWC);
107324 if( pDistinct && isDistinctRedundant(pParse, pTabList, pWC, pDistinct) ){
107408 for(j=iFrom, pTabItem=&pTabList->a[j]; j<nTabList; j++, pTabItem++){
107492 assert( notReady & getMask(pMaskSet, pTabList->a[bestJ].iCursor) );
107513 notReady &= ~getMask(pMaskSet, pTabList->a[bestJ].iCursor);
107524 pIdx = pTabList->a[bestJ].pIndex;
107560 /* Open all tables in the pTabList and any indices selected for
107570 pTabItem = &pTabList->a[pLevel->iFrom];
107630 explainOneScan(pParse, pTabList, pLevel, i, pLevel->iFrom, wctrlFlags);
107646 pTabItem = &pTabList->a[pLevel->iFrom];
107707 SrcList *pTabList = pWInfo->pTabList;
107738 sqlite3VdbeAddOp1(v, OP_NullRow, pTabList->a[i].iCursor);
107759 assert( pWInfo->nLevel==1 || pWInfo->nLevel==pTabList->nSrc );
107761 struct SrcList_item *pTabItem = &pTabList->a[pLevel->iFrom];