• Home
  • Raw
  • Download

Lines Matching refs:pBuilder

134334   WhereLoopBuilder *pBuilder,
134348 if( nEq==pBuilder->nRecValid ){
134349 UnpackedRecord *pRec = pBuilder->pRec;
134379 testcase( pRec->nField!=pBuilder->nRecValid );
134380 pRec->nField = pBuilder->nRecValid;
134437 pBuilder->pRec = pRec;
134463 UNUSED_PARAMETER(pBuilder);
134513 WhereLoopBuilder *pBuilder,
134517 Index *p = pBuilder->pNew->u.btree.pIndex;
134518 int nEq = pBuilder->pNew->u.btree.nEq;
134519 UnpackedRecord *pRec = pBuilder->pRec;
134528 assert( pBuilder->nRecValid<nEq );
134532 if( pBuilder->nRecValid<(nEq-1) ){
134544 pBuilder->pRec = pRec;
134547 pBuilder->nRecValid = nEq;
134577 WhereLoopBuilder *pBuilder,
134581 Index *p = pBuilder->pNew->u.btree.pIndex;
134583 int nRecValid = pBuilder->nRecValid;
134592 rc = whereEqualScanEst(pParse, pBuilder, pList->a[i].pExpr, &nEst);
134594 pBuilder->nRecValid = nRecValid;
134602 assert( pBuilder->nRecValid==nRecValid );
134994 static int whereLoopInsert(WhereLoopBuilder *pBuilder, WhereLoop *pTemplate){
134996 WhereInfo *pWInfo = pBuilder->pWInfo;
135003 if( pBuilder->pOrSet!=0 ){
135006 u16 n = pBuilder->pOrSet->n;
135009 whereOrInsert(pBuilder->pOrSet, pTemplate->prereq, pTemplate->rRun,
135014 whereLoopPrint(pTemplate, pBuilder->pWC);
135032 whereLoopPrint(pTemplate, pBuilder->pWC);
135048 whereLoopPrint(p, pBuilder->pWC);
135053 whereLoopPrint(pTemplate, pBuilder->pWC);
135077 whereLoopPrint(pToDel, pBuilder->pWC);
135257 WhereLoopBuilder *pBuilder, /* The WhereLoop factory */
135262 WhereInfo *pWInfo = pBuilder->pWInfo; /* WHERE analyse context */
135282 pNew = pBuilder->pNew;
135307 pTerm = whereScanInit(&scan, pBuilder->pWC, pSrc->iCursor, saved_nEq,
135318 int nRecValid = pBuilder->nRecValid;
135344 pBuilder->bldFlags |= SQLITE_BLDF_UNIQUE;
135346 pBuilder->bldFlags |= SQLITE_BLDF_INDEXED;
135443 whereRangeScanEst(pParse, pBuilder, pBtm, pTop, pNew);
135467 rc = whereEqualScanEst(pParse, pBuilder, pExpr->pRight, &nOut);
135469 rc = whereInScanEst(pParse, pBuilder, pExpr->x.pList, &nOut);
135507 whereLoopOutputAdjust(pBuilder->pWC, pNew, rSize);
135508 rc = whereLoopInsert(pBuilder, pNew);
135519 whereLoopAddBtreeIndex(pBuilder, pSrc, pProbe, nInMul+nIn);
135523 pBuilder->nRecValid = nRecValid;
135562 whereLoopAddBtreeIndex(pBuilder, pSrc, pProbe, nIter + nInMul);
135583 WhereLoopBuilder *pBuilder,
135592 if( (pOB = pBuilder->pWInfo->pOrderBy)==0 ) return 0;
135690 WhereLoopBuilder *pBuilder, /* WHERE clause information */
135709 pNew = pBuilder->pNew;
135710 pWInfo = pBuilder->pWInfo;
135714 pWC = pBuilder->pWC;
135751 if( !pBuilder->pOrSet /* Not part of an OR optimization */
135793 rc = whereLoopInsert(pBuilder, pNew);
135821 b = indexMightHelpWithOrderBy(pBuilder, pProbe, pSrc->iCursor);
135834 rc = whereLoopInsert(pBuilder, pNew);
135894 rc = whereLoopInsert(pBuilder, pNew);
135900 pBuilder->bldFlags = 0;
135901 rc = whereLoopAddBtreeIndex(pBuilder, pSrc, pProbe, 0);
135902 if( pBuilder->bldFlags==SQLITE_BLDF_INDEXED ){
135910 sqlite3Stat4ProbeFree(pBuilder->pRec);
135911 pBuilder->nRecValid = 0;
135912 pBuilder->pRec = 0;
135941 WhereLoopBuilder *pBuilder,
135949 WhereClause *pWC = pBuilder->pWC;
135955 WhereLoop *pNew = pBuilder->pNew;
135956 Parse *pParse = pBuilder->pWInfo->pParse;
135957 struct SrcList_item *pSrc = &pBuilder->pWInfo->pTabList->a[pNew->iTab];
136056 rc = whereLoopInsert(pBuilder, pNew);
136116 WhereLoopBuilder *pBuilder, /* WHERE clause information */
136133 pWInfo = pBuilder->pWInfo;
136135 pWC = pBuilder->pWC;
136136 pNew = pBuilder->pNew;
136139 p = allocateIndexInfo(pParse, pWC, mUnusable, pSrc, pBuilder->pOrderBy,
136154 rc = whereLoopAddVirtualOne(pBuilder, mPrereq, ALLBITS, 0, p, mNoOmit, &bIn);
136172 pBuilder, mPrereq, ALLBITS, WO_IN, p, mNoOmit, &bIn);
136199 pBuilder, mPrereq, mNext|mPrereq, 0, p, mNoOmit, &bIn);
136212 pBuilder, mPrereq, mPrereq, 0, p, mNoOmit, &bIn);
136222 pBuilder, mPrereq, mPrereq, WO_IN, p, mNoOmit, &bIn);
136237 WhereLoopBuilder *pBuilder,
136241 WhereInfo *pWInfo = pBuilder->pWInfo;
136252 pWC = pBuilder->pWC;
136254 pNew = pBuilder->pNew;
136269 sSubBuild = *pBuilder;
136348 rc = whereLoopInsert(pBuilder, pNew);
136359 static int whereLoopAddAll(WhereLoopBuilder *pBuilder){
136360 WhereInfo *pWInfo = pBuilder->pWInfo;
136373 pNew = pBuilder->pNew;
136393 rc = whereLoopAddVirtual(pBuilder, mPrereq, mUnusable);
136397 rc = whereLoopAddBtree(pBuilder, mPrereq);
136400 rc = whereLoopAddOr(pBuilder, mPrereq, mUnusable);
137183 static int whereShortCut(WhereLoopBuilder *pBuilder){
137194 pWInfo = pBuilder->pWInfo;
137203 pLoop = pBuilder->pNew;