Lines Matching refs:pWInfo

388   WhereInfo *pWInfo;         /* Will become the return value of this function */  in sqliteWhereBegin()  local
422 pWInfo = sqliteMalloc( sizeof(WhereInfo) + pTabList->nSrc*sizeof(WhereLevel)); in sqliteWhereBegin()
424 sqliteFree(pWInfo); in sqliteWhereBegin()
427 pWInfo->pParse = pParse; in sqliteWhereBegin()
428 pWInfo->pTabList = pTabList; in sqliteWhereBegin()
429 pWInfo->peakNTab = pWInfo->savedNTab = pParse->nTab; in sqliteWhereBegin()
430 pWInfo->iBreak = sqliteVdbeMakeLabel(v); in sqliteWhereBegin()
436 sqliteExprIfFalse(pParse, pWhere, pWInfo->iBreak, 1); in sqliteWhereBegin()
499 pWInfo->a[i].iCur = -1; in sqliteWhereBegin()
528 pWInfo->a[i].pIdx = 0; in sqliteWhereBegin()
651 pWInfo->a[i].pIdx = pBestIdx; in sqliteWhereBegin()
652 pWInfo->a[i].score = bestScore; in sqliteWhereBegin()
653 pWInfo->a[i].bRev = 0; in sqliteWhereBegin()
656 pWInfo->a[i].iCur = pParse->nTab++; in sqliteWhereBegin()
657 pWInfo->peakNTab = pParse->nTab; in sqliteWhereBegin()
671 pIdx = pWInfo->a[0].pIdx; in sqliteWhereBegin()
672 if( pIdx && pWInfo->a[0].score==4 ){ in sqliteWhereBegin()
684 int nEqCol = (pWInfo->a[0].score+4)/8; in sqliteWhereBegin()
690 pWInfo->a[0].pIdx = pSortIdx; in sqliteWhereBegin()
691 pWInfo->a[0].iCur = pParse->nTab++; in sqliteWhereBegin()
692 pWInfo->peakNTab = pParse->nTab; in sqliteWhereBegin()
694 pWInfo->a[0].bRev = bRev; in sqliteWhereBegin()
711 if( (pIx = pWInfo->a[i].pIdx)!=0 ){ in sqliteWhereBegin()
713 sqliteVdbeOp3(v, OP_OpenRead, pWInfo->a[i].iCur, pIx->tnum, pIx->zName,0); in sqliteWhereBegin()
724 WhereLevel *pLevel = &pWInfo->a[i]; in sqliteWhereBegin()
1178 pWInfo->iContinue = cont; in sqliteWhereBegin()
1183 return pWInfo; in sqliteWhereBegin()
1190 void sqliteWhereEnd(WhereInfo *pWInfo){ in sqliteWhereEnd() argument
1191 Vdbe *v = pWInfo->pParse->pVdbe; in sqliteWhereEnd()
1194 SrcList *pTabList = pWInfo->pTabList; in sqliteWhereEnd()
1197 pLevel = &pWInfo->a[i]; in sqliteWhereEnd()
1217 sqliteVdbeResolveLabel(v, pWInfo->iBreak); in sqliteWhereEnd()
1222 pLevel = &pWInfo->a[i]; in sqliteWhereEnd()
1229 if( pWInfo->pParse->nTab==pWInfo->peakNTab ){ in sqliteWhereEnd()
1230 pWInfo->pParse->nTab = pWInfo->savedNTab; in sqliteWhereEnd()
1233 sqliteFree(pWInfo); in sqliteWhereEnd()