Lines Matching refs:pBuilder
147077 WhereLoopBuilder *pBuilder,
147093 if( nEq==pBuilder->nRecValid ){
147094 UnpackedRecord *pRec = pBuilder->pRec;
147124 testcase( pRec->nField!=pBuilder->nRecValid );
147125 pRec->nField = pBuilder->nRecValid;
147182 pBuilder->pRec = pRec;
147208 UNUSED_PARAMETER(pBuilder);
147258 WhereLoopBuilder *pBuilder,
147262 Index *p = pBuilder->pNew->u.btree.pIndex;
147263 int nEq = pBuilder->pNew->u.btree.nEq;
147264 UnpackedRecord *pRec = pBuilder->pRec;
147273 assert( pBuilder->nRecValid<nEq );
147277 if( pBuilder->nRecValid<(nEq-1) ){
147289 pBuilder->pRec = pRec;
147292 pBuilder->nRecValid = nEq;
147322 WhereLoopBuilder *pBuilder,
147326 Index *p = pBuilder->pNew->u.btree.pIndex;
147328 int nRecValid = pBuilder->nRecValid;
147337 rc = whereEqualScanEst(pParse, pBuilder, pList->a[i].pExpr, &nEst);
147339 pBuilder->nRecValid = nRecValid;
147347 assert( pBuilder->nRecValid==nRecValid );
147748 static int whereLoopInsert(WhereLoopBuilder *pBuilder, WhereLoop *pTemplate){
147750 WhereInfo *pWInfo = pBuilder->pWInfo;
147755 if( pBuilder->iPlanLimit==0 ){
147757 if( pBuilder->pOrSet ) pBuilder->pOrSet->n = 0;
147760 pBuilder->iPlanLimit--;
147767 if( pBuilder->pOrSet!=0 ){
147770 u16 n = pBuilder->pOrSet->n;
147773 whereOrInsert(pBuilder->pOrSet, pTemplate->prereq, pTemplate->rRun,
147778 sqlite3WhereLoopPrint(pTemplate, pBuilder->pWC);
147795 sqlite3WhereLoopPrint(pTemplate, pBuilder->pWC);
147811 sqlite3WhereLoopPrint(p, pBuilder->pWC);
147816 sqlite3WhereLoopPrint(pTemplate, pBuilder->pWC);
147840 sqlite3WhereLoopPrint(pToDel, pBuilder->pWC);
148027 WhereLoopBuilder *pBuilder, /* The WhereLoop factory */
148032 WhereInfo *pWInfo = pBuilder->pWInfo; /* WHERE analyse context */
148052 pNew = pBuilder->pNew;
148078 pTerm = whereScanInit(&scan, pBuilder->pWC, pSrc->iCursor, saved_nEq,
148089 int nRecValid = pBuilder->nRecValid;
148112 pBuilder->bldFlags1 |= SQLITE_BLDF1_UNIQUE;
148114 pBuilder->bldFlags1 |= SQLITE_BLDF1_INDEXED;
148246 whereRangeScanEst(pParse, pBuilder, pBtm, pTop, pNew);
148271 rc = whereEqualScanEst(pParse, pBuilder, pExpr->pRight, &nOut);
148273 rc = whereInScanEst(pParse, pBuilder, pExpr->x.pList, &nOut);
148297 pBuilder->bldFlags2 |= SQLITE_BLDF2_2NDPASS;
148333 whereLoopOutputAdjust(pBuilder->pWC, pNew, rSize);
148334 rc = whereLoopInsert(pBuilder, pNew);
148345 whereLoopAddBtreeIndex(pBuilder, pSrc, pProbe, nInMul+nIn);
148349 pBuilder->nRecValid = nRecValid;
148391 whereLoopAddBtreeIndex(pBuilder, pSrc, pProbe, nIter + nInMul);
148412 WhereLoopBuilder *pBuilder,
148421 if( (pOB = pBuilder->pWInfo->pOrderBy)==0 ) return 0;
148508 WhereLoopBuilder *pBuilder, /* WHERE clause information */
148527 pNew = pBuilder->pNew;
148528 pWInfo = pBuilder->pWInfo;
148532 pWC = pBuilder->pWC;
148570 if( !pBuilder->pOrSet /* Not part of an OR optimization */
148614 rc = whereLoopInsert(pBuilder, pNew);
148645 b = indexMightHelpWithOrderBy(pBuilder, pProbe, pSrc->iCursor);
148659 rc = whereLoopInsert(pBuilder, pNew);
148720 rc = whereLoopInsert(pBuilder, pNew);
148726 pBuilder->bldFlags1 = 0;
148727 rc = whereLoopAddBtreeIndex(pBuilder, pSrc, pProbe, 0);
148728 if( pBuilder->bldFlags1==SQLITE_BLDF1_INDEXED ){
148736 sqlite3Stat4ProbeFree(pBuilder->pRec);
148737 pBuilder->nRecValid = 0;
148738 pBuilder->pRec = 0;
148767 WhereLoopBuilder *pBuilder,
148775 WhereClause *pWC = pBuilder->pWC;
148781 WhereLoop *pNew = pBuilder->pNew;
148782 Parse *pParse = pBuilder->pWInfo->pParse;
148783 struct SrcList_item *pSrc = &pBuilder->pWInfo->pTabList->a[pNew->iTab];
148907 rc = whereLoopInsert(pBuilder, pNew);
148967 WhereLoopBuilder *pBuilder, /* WHERE clause information */
148984 pWInfo = pBuilder->pWInfo;
148986 pWC = pBuilder->pWC;
148987 pNew = pBuilder->pNew;
148990 p = allocateIndexInfo(pParse, pWC, mUnusable, pSrc, pBuilder->pOrderBy,
149006 rc = whereLoopAddVirtualOne(pBuilder, mPrereq, ALLBITS, 0, p, mNoOmit, &bIn);
149024 pBuilder, mPrereq, ALLBITS, WO_IN, p, mNoOmit, &bIn);
149051 pBuilder, mPrereq, mNext|mPrereq, 0, p, mNoOmit, &bIn);
149064 pBuilder, mPrereq, mPrereq, 0, p, mNoOmit, &bIn);
149074 pBuilder, mPrereq, mPrereq, WO_IN, p, mNoOmit, &bIn);
149090 WhereLoopBuilder *pBuilder,
149094 WhereInfo *pWInfo = pBuilder->pWInfo;
149105 pWC = pBuilder->pWC;
149107 pNew = pBuilder->pNew;
149122 sSubBuild = *pBuilder;
149202 rc = whereLoopInsert(pBuilder, pNew);
149213 static int whereLoopAddAll(WhereLoopBuilder *pBuilder){
149214 WhereInfo *pWInfo = pBuilder->pWInfo;
149226 pNew = pBuilder->pNew;
149228 pBuilder->iPlanLimit = SQLITE_QUERY_PLANNER_LIMIT;
149232 pBuilder->iPlanLimit += SQLITE_QUERY_PLANNER_LIMIT_INCR;
149249 rc = whereLoopAddVirtual(pBuilder, mPrereq, mUnusable);
149253 rc = whereLoopAddBtree(pBuilder, mPrereq);
149255 if( rc==SQLITE_OK && pBuilder->pWC->hasOr ){
149256 rc = whereLoopAddOr(pBuilder, mPrereq, mUnusable);
150086 static int whereShortCut(WhereLoopBuilder *pBuilder){
150097 pWInfo = pBuilder->pWInfo;
150106 pLoop = pBuilder->pNew;