Lines Matching refs:pTable

457     if( iColumn==pIdx->pTable->iPKey ){  in whereScanInit()
460 pScan->idxaff = pIdx->pTable->aCol[iColumn].affinity; in whereScanInit()
570 return pIdx->pTable->aCol[j].notNull; in indexColumnNotNull()
833 Table *pTable; /* The table being indexed */ in constructAutomaticIndex() local
860 pTable = pSrc->pTab; in constructAutomaticIndex()
885 "automatic index on %s(%s)", pTable->zName, in constructAutomaticIndex()
886 pTable->aCol[iCol].zCnName); in constructAutomaticIndex()
912 mxBitCol = MIN(BMS-1,pTable->nCol); in constructAutomaticIndex()
913 testcase( pTable->nCol==BMS-1 ); in constructAutomaticIndex()
914 testcase( pTable->nCol==BMS-2 ); in constructAutomaticIndex()
919 nKeyCol += pTable->nCol - BMS + 1; in constructAutomaticIndex()
927 pIdx->pTable = pTable; in constructAutomaticIndex()
962 for(i=BMS-1; i<pTable->nCol; i++){ in constructAutomaticIndex()
977 VdbeComment((v, "for %s", pTable->zName)); in constructAutomaticIndex()
1126 assert( pIdx->pTable==pItem->pTab ); in sqlite3ConstructBloomFilter()
1127 sqlite3ExprCodeGetColumnOfTable(v, pIdx->pTable, iCur, iCol,r1+jj); in sqlite3ConstructBloomFilter()
2752 idxaff = sqlite3TableColumnAffinity(pIdx->pTable, pLhs->iColumn); in whereRangeVectorLen()
2813 pProbe->pTable->zName,pProbe->zName, in whereLoopAddBtreeIndex()
3100 ApplyCostMultiplier(pNew->rRun, pProbe->pTable->costMult); in whereLoopAddBtreeIndex()
3173 pProbe->pTable->zName, pProbe->zName, saved_nEq, rc)); in whereLoopAddBtreeIndex()
3419 sPk.pTable = pTab; in whereLoopAddBtree()
4490 assert( nColumn==nKeyCol+1 || !HasRowid(pIndex->pTable) ); in wherePathSatisfiesOrderBy()
4492 || !HasRowid(pIndex->pTable)); in wherePathSatisfiesOrderBy()
4557 if( iColumn==pIndex->pTable->iPKey ) iColumn = XN_ROWID; in wherePathSatisfiesOrderBy()
4569 && pIndex->pTable->aCol[iColumn].notNull==0 in wherePathSatisfiesOrderBy()
5497 pTab = pIdx->pTable; in whereAddIndexedExpr()
6471 if( pWInfo->eOnePass==ONEPASS_OFF || !HasRowid(pIdx->pTable) ){ in sqlite3WhereEnd()
6509 assert( pIdx->pTable==pTab ); in sqlite3WhereEnd()