Lines Matching refs:pBuilder
146429 WhereLoopBuilder *pBuilder,
146445 if( nEq==pBuilder->nRecValid ){
146446 UnpackedRecord *pRec = pBuilder->pRec;
146476 testcase( pRec->nField!=pBuilder->nRecValid );
146477 pRec->nField = pBuilder->nRecValid;
146534 pBuilder->pRec = pRec;
146560 UNUSED_PARAMETER(pBuilder);
146610 WhereLoopBuilder *pBuilder,
146614 Index *p = pBuilder->pNew->u.btree.pIndex;
146615 int nEq = pBuilder->pNew->u.btree.nEq;
146616 UnpackedRecord *pRec = pBuilder->pRec;
146625 assert( pBuilder->nRecValid<nEq );
146629 if( pBuilder->nRecValid<(nEq-1) ){
146641 pBuilder->pRec = pRec;
146644 pBuilder->nRecValid = nEq;
146674 WhereLoopBuilder *pBuilder,
146678 Index *p = pBuilder->pNew->u.btree.pIndex;
146680 int nRecValid = pBuilder->nRecValid;
146689 rc = whereEqualScanEst(pParse, pBuilder, pList->a[i].pExpr, &nEst);
146691 pBuilder->nRecValid = nRecValid;
146699 assert( pBuilder->nRecValid==nRecValid );
147100 static int whereLoopInsert(WhereLoopBuilder *pBuilder, WhereLoop *pTemplate){
147102 WhereInfo *pWInfo = pBuilder->pWInfo;
147107 if( pBuilder->iPlanLimit==0 ){
147109 if( pBuilder->pOrSet ) pBuilder->pOrSet->n = 0;
147112 pBuilder->iPlanLimit--;
147119 if( pBuilder->pOrSet!=0 ){
147122 u16 n = pBuilder->pOrSet->n;
147125 whereOrInsert(pBuilder->pOrSet, pTemplate->prereq, pTemplate->rRun,
147130 sqlite3WhereLoopPrint(pTemplate, pBuilder->pWC);
147147 sqlite3WhereLoopPrint(pTemplate, pBuilder->pWC);
147163 sqlite3WhereLoopPrint(p, pBuilder->pWC);
147168 sqlite3WhereLoopPrint(pTemplate, pBuilder->pWC);
147192 sqlite3WhereLoopPrint(pToDel, pBuilder->pWC);
147379 WhereLoopBuilder *pBuilder, /* The WhereLoop factory */
147384 WhereInfo *pWInfo = pBuilder->pWInfo; /* WHERE analyse context */
147404 pNew = pBuilder->pNew;
147430 pTerm = whereScanInit(&scan, pBuilder->pWC, pSrc->iCursor, saved_nEq,
147441 int nRecValid = pBuilder->nRecValid;
147464 pBuilder->bldFlags1 |= SQLITE_BLDF1_UNIQUE;
147466 pBuilder->bldFlags1 |= SQLITE_BLDF1_INDEXED;
147598 whereRangeScanEst(pParse, pBuilder, pBtm, pTop, pNew);
147623 rc = whereEqualScanEst(pParse, pBuilder, pExpr->pRight, &nOut);
147625 rc = whereInScanEst(pParse, pBuilder, pExpr->x.pList, &nOut);
147649 pBuilder->bldFlags2 |= SQLITE_BLDF2_2NDPASS;
147685 whereLoopOutputAdjust(pBuilder->pWC, pNew, rSize);
147686 rc = whereLoopInsert(pBuilder, pNew);
147697 whereLoopAddBtreeIndex(pBuilder, pSrc, pProbe, nInMul+nIn);
147701 pBuilder->nRecValid = nRecValid;
147743 whereLoopAddBtreeIndex(pBuilder, pSrc, pProbe, nIter + nInMul);
147764 WhereLoopBuilder *pBuilder,
147773 if( (pOB = pBuilder->pWInfo->pOrderBy)==0 ) return 0;
147860 WhereLoopBuilder *pBuilder, /* WHERE clause information */
147879 pNew = pBuilder->pNew;
147880 pWInfo = pBuilder->pWInfo;
147884 pWC = pBuilder->pWC;
147922 if( !pBuilder->pOrSet /* Not part of an OR optimization */
147966 rc = whereLoopInsert(pBuilder, pNew);
147997 b = indexMightHelpWithOrderBy(pBuilder, pProbe, pSrc->iCursor);
148010 rc = whereLoopInsert(pBuilder, pNew);
148070 rc = whereLoopInsert(pBuilder, pNew);
148076 pBuilder->bldFlags1 = 0;
148077 rc = whereLoopAddBtreeIndex(pBuilder, pSrc, pProbe, 0);
148078 if( pBuilder->bldFlags1==SQLITE_BLDF1_INDEXED ){
148086 sqlite3Stat4ProbeFree(pBuilder->pRec);
148087 pBuilder->nRecValid = 0;
148088 pBuilder->pRec = 0;
148117 WhereLoopBuilder *pBuilder,
148125 WhereClause *pWC = pBuilder->pWC;
148131 WhereLoop *pNew = pBuilder->pNew;
148132 Parse *pParse = pBuilder->pWInfo->pParse;
148133 struct SrcList_item *pSrc = &pBuilder->pWInfo->pTabList->a[pNew->iTab];
148257 rc = whereLoopInsert(pBuilder, pNew);
148317 WhereLoopBuilder *pBuilder, /* WHERE clause information */
148334 pWInfo = pBuilder->pWInfo;
148336 pWC = pBuilder->pWC;
148337 pNew = pBuilder->pNew;
148340 p = allocateIndexInfo(pParse, pWC, mUnusable, pSrc, pBuilder->pOrderBy,
148356 rc = whereLoopAddVirtualOne(pBuilder, mPrereq, ALLBITS, 0, p, mNoOmit, &bIn);
148374 pBuilder, mPrereq, ALLBITS, WO_IN, p, mNoOmit, &bIn);
148401 pBuilder, mPrereq, mNext|mPrereq, 0, p, mNoOmit, &bIn);
148414 pBuilder, mPrereq, mPrereq, 0, p, mNoOmit, &bIn);
148424 pBuilder, mPrereq, mPrereq, WO_IN, p, mNoOmit, &bIn);
148440 WhereLoopBuilder *pBuilder,
148444 WhereInfo *pWInfo = pBuilder->pWInfo;
148455 pWC = pBuilder->pWC;
148457 pNew = pBuilder->pNew;
148472 sSubBuild = *pBuilder;
148552 rc = whereLoopInsert(pBuilder, pNew);
148563 static int whereLoopAddAll(WhereLoopBuilder *pBuilder){
148564 WhereInfo *pWInfo = pBuilder->pWInfo;
148577 pNew = pBuilder->pNew;
148579 pBuilder->iPlanLimit = SQLITE_QUERY_PLANNER_LIMIT;
148583 pBuilder->iPlanLimit += SQLITE_QUERY_PLANNER_LIMIT_INCR;
148599 rc = whereLoopAddVirtual(pBuilder, mPrereq, mUnusable);
148603 rc = whereLoopAddBtree(pBuilder, mPrereq);
148605 if( rc==SQLITE_OK && pBuilder->pWC->hasOr ){
148606 rc = whereLoopAddOr(pBuilder, mPrereq, mUnusable);
149428 static int whereShortCut(WhereLoopBuilder *pBuilder){
149439 pWInfo = pBuilder->pWInfo;
149448 pLoop = pBuilder->pNew;