• Home
  • Raw
  • Download

Lines Matching refs:pBuilder

146413   WhereLoopBuilder *pBuilder,
146429 if( nEq==pBuilder->nRecValid ){
146430 UnpackedRecord *pRec = pBuilder->pRec;
146460 testcase( pRec->nField!=pBuilder->nRecValid );
146461 pRec->nField = pBuilder->nRecValid;
146518 pBuilder->pRec = pRec;
146544 UNUSED_PARAMETER(pBuilder);
146594 WhereLoopBuilder *pBuilder,
146598 Index *p = pBuilder->pNew->u.btree.pIndex;
146599 int nEq = pBuilder->pNew->u.btree.nEq;
146600 UnpackedRecord *pRec = pBuilder->pRec;
146609 assert( pBuilder->nRecValid<nEq );
146613 if( pBuilder->nRecValid<(nEq-1) ){
146625 pBuilder->pRec = pRec;
146628 pBuilder->nRecValid = nEq;
146658 WhereLoopBuilder *pBuilder,
146662 Index *p = pBuilder->pNew->u.btree.pIndex;
146664 int nRecValid = pBuilder->nRecValid;
146673 rc = whereEqualScanEst(pParse, pBuilder, pList->a[i].pExpr, &nEst);
146675 pBuilder->nRecValid = nRecValid;
146683 assert( pBuilder->nRecValid==nRecValid );
147084 static int whereLoopInsert(WhereLoopBuilder *pBuilder, WhereLoop *pTemplate){
147086 WhereInfo *pWInfo = pBuilder->pWInfo;
147091 if( pBuilder->iPlanLimit==0 ){
147093 if( pBuilder->pOrSet ) pBuilder->pOrSet->n = 0;
147096 pBuilder->iPlanLimit--;
147103 if( pBuilder->pOrSet!=0 ){
147106 u16 n = pBuilder->pOrSet->n;
147109 whereOrInsert(pBuilder->pOrSet, pTemplate->prereq, pTemplate->rRun,
147114 sqlite3WhereLoopPrint(pTemplate, pBuilder->pWC);
147131 sqlite3WhereLoopPrint(pTemplate, pBuilder->pWC);
147147 sqlite3WhereLoopPrint(p, pBuilder->pWC);
147152 sqlite3WhereLoopPrint(pTemplate, pBuilder->pWC);
147176 sqlite3WhereLoopPrint(pToDel, pBuilder->pWC);
147363 WhereLoopBuilder *pBuilder, /* The WhereLoop factory */
147368 WhereInfo *pWInfo = pBuilder->pWInfo; /* WHERE analyse context */
147388 pNew = pBuilder->pNew;
147414 pTerm = whereScanInit(&scan, pBuilder->pWC, pSrc->iCursor, saved_nEq,
147425 int nRecValid = pBuilder->nRecValid;
147448 pBuilder->bldFlags1 |= SQLITE_BLDF1_UNIQUE;
147450 pBuilder->bldFlags1 |= SQLITE_BLDF1_INDEXED;
147582 whereRangeScanEst(pParse, pBuilder, pBtm, pTop, pNew);
147607 rc = whereEqualScanEst(pParse, pBuilder, pExpr->pRight, &nOut);
147609 rc = whereInScanEst(pParse, pBuilder, pExpr->x.pList, &nOut);
147633 pBuilder->bldFlags2 |= SQLITE_BLDF2_2NDPASS;
147669 whereLoopOutputAdjust(pBuilder->pWC, pNew, rSize);
147670 rc = whereLoopInsert(pBuilder, pNew);
147681 whereLoopAddBtreeIndex(pBuilder, pSrc, pProbe, nInMul+nIn);
147685 pBuilder->nRecValid = nRecValid;
147727 whereLoopAddBtreeIndex(pBuilder, pSrc, pProbe, nIter + nInMul);
147748 WhereLoopBuilder *pBuilder,
147757 if( (pOB = pBuilder->pWInfo->pOrderBy)==0 ) return 0;
147844 WhereLoopBuilder *pBuilder, /* WHERE clause information */
147863 pNew = pBuilder->pNew;
147864 pWInfo = pBuilder->pWInfo;
147868 pWC = pBuilder->pWC;
147906 if( !pBuilder->pOrSet /* Not part of an OR optimization */
147950 rc = whereLoopInsert(pBuilder, pNew);
147981 b = indexMightHelpWithOrderBy(pBuilder, pProbe, pSrc->iCursor);
147994 rc = whereLoopInsert(pBuilder, pNew);
148054 rc = whereLoopInsert(pBuilder, pNew);
148060 pBuilder->bldFlags1 = 0;
148061 rc = whereLoopAddBtreeIndex(pBuilder, pSrc, pProbe, 0);
148062 if( pBuilder->bldFlags1==SQLITE_BLDF1_INDEXED ){
148070 sqlite3Stat4ProbeFree(pBuilder->pRec);
148071 pBuilder->nRecValid = 0;
148072 pBuilder->pRec = 0;
148101 WhereLoopBuilder *pBuilder,
148109 WhereClause *pWC = pBuilder->pWC;
148115 WhereLoop *pNew = pBuilder->pNew;
148116 Parse *pParse = pBuilder->pWInfo->pParse;
148117 struct SrcList_item *pSrc = &pBuilder->pWInfo->pTabList->a[pNew->iTab];
148241 rc = whereLoopInsert(pBuilder, pNew);
148301 WhereLoopBuilder *pBuilder, /* WHERE clause information */
148318 pWInfo = pBuilder->pWInfo;
148320 pWC = pBuilder->pWC;
148321 pNew = pBuilder->pNew;
148324 p = allocateIndexInfo(pParse, pWC, mUnusable, pSrc, pBuilder->pOrderBy,
148340 rc = whereLoopAddVirtualOne(pBuilder, mPrereq, ALLBITS, 0, p, mNoOmit, &bIn);
148358 pBuilder, mPrereq, ALLBITS, WO_IN, p, mNoOmit, &bIn);
148385 pBuilder, mPrereq, mNext|mPrereq, 0, p, mNoOmit, &bIn);
148398 pBuilder, mPrereq, mPrereq, 0, p, mNoOmit, &bIn);
148408 pBuilder, mPrereq, mPrereq, WO_IN, p, mNoOmit, &bIn);
148424 WhereLoopBuilder *pBuilder,
148428 WhereInfo *pWInfo = pBuilder->pWInfo;
148439 pWC = pBuilder->pWC;
148441 pNew = pBuilder->pNew;
148456 sSubBuild = *pBuilder;
148536 rc = whereLoopInsert(pBuilder, pNew);
148547 static int whereLoopAddAll(WhereLoopBuilder *pBuilder){
148548 WhereInfo *pWInfo = pBuilder->pWInfo;
148561 pNew = pBuilder->pNew;
148563 pBuilder->iPlanLimit = SQLITE_QUERY_PLANNER_LIMIT;
148567 pBuilder->iPlanLimit += SQLITE_QUERY_PLANNER_LIMIT_INCR;
148583 rc = whereLoopAddVirtual(pBuilder, mPrereq, mUnusable);
148587 rc = whereLoopAddBtree(pBuilder, mPrereq);
148589 if( rc==SQLITE_OK && pBuilder->pWC->hasOr ){
148590 rc = whereLoopAddOr(pBuilder, mPrereq, mUnusable);
149412 static int whereShortCut(WhereLoopBuilder *pBuilder){
149423 pWInfo = pBuilder->pWInfo;
149432 pLoop = pBuilder->pNew;