Lines Matching refs:pBuilder
134350 WhereLoopBuilder *pBuilder,
134364 if( nEq==pBuilder->nRecValid ){
134365 UnpackedRecord *pRec = pBuilder->pRec;
134395 testcase( pRec->nField!=pBuilder->nRecValid );
134396 pRec->nField = pBuilder->nRecValid;
134453 pBuilder->pRec = pRec;
134479 UNUSED_PARAMETER(pBuilder);
134529 WhereLoopBuilder *pBuilder,
134533 Index *p = pBuilder->pNew->u.btree.pIndex;
134534 int nEq = pBuilder->pNew->u.btree.nEq;
134535 UnpackedRecord *pRec = pBuilder->pRec;
134544 assert( pBuilder->nRecValid<nEq );
134548 if( pBuilder->nRecValid<(nEq-1) ){
134560 pBuilder->pRec = pRec;
134563 pBuilder->nRecValid = nEq;
134593 WhereLoopBuilder *pBuilder,
134597 Index *p = pBuilder->pNew->u.btree.pIndex;
134599 int nRecValid = pBuilder->nRecValid;
134608 rc = whereEqualScanEst(pParse, pBuilder, pList->a[i].pExpr, &nEst);
134610 pBuilder->nRecValid = nRecValid;
134618 assert( pBuilder->nRecValid==nRecValid );
135010 static int whereLoopInsert(WhereLoopBuilder *pBuilder, WhereLoop *pTemplate){
135012 WhereInfo *pWInfo = pBuilder->pWInfo;
135019 if( pBuilder->pOrSet!=0 ){
135022 u16 n = pBuilder->pOrSet->n;
135025 whereOrInsert(pBuilder->pOrSet, pTemplate->prereq, pTemplate->rRun,
135030 whereLoopPrint(pTemplate, pBuilder->pWC);
135048 whereLoopPrint(pTemplate, pBuilder->pWC);
135064 whereLoopPrint(p, pBuilder->pWC);
135069 whereLoopPrint(pTemplate, pBuilder->pWC);
135093 whereLoopPrint(pToDel, pBuilder->pWC);
135273 WhereLoopBuilder *pBuilder, /* The WhereLoop factory */
135278 WhereInfo *pWInfo = pBuilder->pWInfo; /* WHERE analyse context */
135298 pNew = pBuilder->pNew;
135323 pTerm = whereScanInit(&scan, pBuilder->pWC, pSrc->iCursor, saved_nEq,
135334 int nRecValid = pBuilder->nRecValid;
135360 pBuilder->bldFlags |= SQLITE_BLDF_UNIQUE;
135362 pBuilder->bldFlags |= SQLITE_BLDF_INDEXED;
135459 whereRangeScanEst(pParse, pBuilder, pBtm, pTop, pNew);
135483 rc = whereEqualScanEst(pParse, pBuilder, pExpr->pRight, &nOut);
135485 rc = whereInScanEst(pParse, pBuilder, pExpr->x.pList, &nOut);
135523 whereLoopOutputAdjust(pBuilder->pWC, pNew, rSize);
135524 rc = whereLoopInsert(pBuilder, pNew);
135535 whereLoopAddBtreeIndex(pBuilder, pSrc, pProbe, nInMul+nIn);
135539 pBuilder->nRecValid = nRecValid;
135578 whereLoopAddBtreeIndex(pBuilder, pSrc, pProbe, nIter + nInMul);
135599 WhereLoopBuilder *pBuilder,
135608 if( (pOB = pBuilder->pWInfo->pOrderBy)==0 ) return 0;
135706 WhereLoopBuilder *pBuilder, /* WHERE clause information */
135725 pNew = pBuilder->pNew;
135726 pWInfo = pBuilder->pWInfo;
135730 pWC = pBuilder->pWC;
135767 if( !pBuilder->pOrSet /* Not part of an OR optimization */
135809 rc = whereLoopInsert(pBuilder, pNew);
135837 b = indexMightHelpWithOrderBy(pBuilder, pProbe, pSrc->iCursor);
135850 rc = whereLoopInsert(pBuilder, pNew);
135910 rc = whereLoopInsert(pBuilder, pNew);
135916 pBuilder->bldFlags = 0;
135917 rc = whereLoopAddBtreeIndex(pBuilder, pSrc, pProbe, 0);
135918 if( pBuilder->bldFlags==SQLITE_BLDF_INDEXED ){
135926 sqlite3Stat4ProbeFree(pBuilder->pRec);
135927 pBuilder->nRecValid = 0;
135928 pBuilder->pRec = 0;
135957 WhereLoopBuilder *pBuilder,
135965 WhereClause *pWC = pBuilder->pWC;
135971 WhereLoop *pNew = pBuilder->pNew;
135972 Parse *pParse = pBuilder->pWInfo->pParse;
135973 struct SrcList_item *pSrc = &pBuilder->pWInfo->pTabList->a[pNew->iTab];
136072 rc = whereLoopInsert(pBuilder, pNew);
136132 WhereLoopBuilder *pBuilder, /* WHERE clause information */
136149 pWInfo = pBuilder->pWInfo;
136151 pWC = pBuilder->pWC;
136152 pNew = pBuilder->pNew;
136155 p = allocateIndexInfo(pParse, pWC, mUnusable, pSrc, pBuilder->pOrderBy,
136170 rc = whereLoopAddVirtualOne(pBuilder, mPrereq, ALLBITS, 0, p, mNoOmit, &bIn);
136188 pBuilder, mPrereq, ALLBITS, WO_IN, p, mNoOmit, &bIn);
136215 pBuilder, mPrereq, mNext|mPrereq, 0, p, mNoOmit, &bIn);
136228 pBuilder, mPrereq, mPrereq, 0, p, mNoOmit, &bIn);
136238 pBuilder, mPrereq, mPrereq, WO_IN, p, mNoOmit, &bIn);
136253 WhereLoopBuilder *pBuilder,
136257 WhereInfo *pWInfo = pBuilder->pWInfo;
136268 pWC = pBuilder->pWC;
136270 pNew = pBuilder->pNew;
136285 sSubBuild = *pBuilder;
136364 rc = whereLoopInsert(pBuilder, pNew);
136375 static int whereLoopAddAll(WhereLoopBuilder *pBuilder){
136376 WhereInfo *pWInfo = pBuilder->pWInfo;
136389 pNew = pBuilder->pNew;
136409 rc = whereLoopAddVirtual(pBuilder, mPrereq, mUnusable);
136413 rc = whereLoopAddBtree(pBuilder, mPrereq);
136416 rc = whereLoopAddOr(pBuilder, mPrereq, mUnusable);
137199 static int whereShortCut(WhereLoopBuilder *pBuilder){
137210 pWInfo = pBuilder->pWInfo;
137219 pLoop = pBuilder->pNew;