Lines Matching refs:pTabItem
847 SrcItem *pTabItem; /* FROM clause term being indexed */ in constructAutomaticIndex() local
984 pTabItem = &pWC->pWInfo->pTabList->a[pLevel->iFrom]; in constructAutomaticIndex()
985 if( pTabItem->fg.viaCoroutine ){ in constructAutomaticIndex()
986 int regYield = pTabItem->regReturn; in constructAutomaticIndex()
988 sqlite3VdbeAddOp3(v, OP_InitCoroutine, regYield, 0, pTabItem->addrFillSub); in constructAutomaticIndex()
991 VdbeComment((v, "next row of %s", pTabItem->pTab->zName)); in constructAutomaticIndex()
1011 if( pTabItem->fg.viaCoroutine ){ in constructAutomaticIndex()
1016 pTabItem->regResult, pLevel->iIdxCur); in constructAutomaticIndex()
1018 pTabItem->fg.viaCoroutine = 0; in constructAutomaticIndex()
1139 const SrcItem *pTabItem; in sqlite3ConstructBloomFilter() local
1141 pTabItem = &pWInfo->pTabList->a[pLevel->iFrom]; in sqlite3ConstructBloomFilter()
1142 if( pTabItem->fg.jointype & (JT_LEFT|JT_LTORJ) ) continue; in sqlite3ConstructBloomFilter()
5491 SrcItem *pTabItem /* The FROM clause entry for the table */ in whereAddIndexedExpr() argument
5504 testcase( pTabItem->fg.jointype & JT_LEFT ); in whereAddIndexedExpr()
5505 testcase( pTabItem->fg.jointype & JT_RIGHT ); in whereAddIndexedExpr()
5506 testcase( pTabItem->fg.jointype & JT_LTORJ ); in whereAddIndexedExpr()
5507 bMaybeNullRow = (pTabItem->fg.jointype & (JT_LEFT|JT_LTORJ|JT_RIGHT))!=0; in whereAddIndexedExpr()
5519 p->iDataCur = pTabItem->iCursor; in whereAddIndexedExpr()
5992 SrcItem *pTabItem; in sqlite3WhereBegin() local
5994 pTabItem = &pTabList->a[pLevel->iFrom]; in sqlite3WhereBegin()
5995 pTab = pTabItem->pTab; in sqlite3WhereBegin()
6004 int iCur = pTabItem->iCursor; in sqlite3WhereBegin()
6012 || (pTabItem->fg.jointype & (JT_LTORJ|JT_RIGHT))!=0 in sqlite3WhereBegin()
6017 pWInfo->aiCurOnePass[0] = pTabItem->iCursor; in sqlite3WhereBegin()
6019 sqlite3OpenTable(pParse, pTabItem->iCursor, iDb, pTab, op); in sqlite3WhereBegin()
6020 assert( pTabItem->iCursor==pLevel->iTabCur ); in sqlite3WhereBegin()
6031 Bitmask b = pTabItem->colUsed; in sqlite3WhereBegin()
6046 sqlite3VdbeAddOp4Dup8(v, OP_ColumnsUsed, pTabItem->iCursor, 0, 0, in sqlite3WhereBegin()
6047 (const u8*)&pTabItem->colUsed, P4_INT64); in sqlite3WhereBegin()
6066 Index *pJ = pTabItem->pTab->pIndex; in sqlite3WhereBegin()
6081 whereAddIndexedExpr(pParse, pIx, iIndexCur, pTabItem); in sqlite3WhereBegin()
6109 if( (pTabItem->colUsed & MASKBIT(jj))==0 ) continue; in sqlite3WhereBegin()
6119 if( (pTabItem->fg.jointype & JT_RIGHT)!=0 in sqlite3WhereBegin()
6128 assert( pTab==pTabItem->pTab ); in sqlite3WhereBegin()
6427 SrcItem *pTabItem = &pTabList->a[pLevel->iFrom]; in sqlite3WhereEnd() local
6428 Table *pTab = pTabItem->pTab; in sqlite3WhereEnd()
6445 if( pTabItem->fg.viaCoroutine ){ in sqlite3WhereEnd()
6448 pTabItem->regResult, 0); in sqlite3WhereEnd()