Lines Matching refs:WhereLoop

44 static int whereLoopResize(sqlite3*, WhereLoop*, int);
840 WhereLoop *pLoop; /* The Loop object */ in constructAutomaticIndex()
1067 WhereLoop *pLoop = pLevel->pWLoop; /* The loop being coded */ in sqlite3ConstructBloomFilter()
1693 WhereLoop *pLoop, /* Update the .nOut value of this loop */ in whereRangeSkipScanEst()
1806 WhereLoop *pLoop /* Modify the .nOut and maybe .rRun fields */ in whereRangeScanEst()
2141 void sqlite3WhereLoopPrint(WhereLoop *p, WhereClause *pWC){ in sqlite3WhereLoopPrint()
2193 static void whereLoopInit(WhereLoop *p){ in whereLoopInit()
2203 static void whereLoopClearUnion(sqlite3 *db, WhereLoop *p){ in whereLoopClearUnion()
2221 static void whereLoopClear(sqlite3 *db, WhereLoop *p){ in whereLoopClear()
2235 static int whereLoopResize(sqlite3 *db, WhereLoop *p, int n){ in whereLoopResize()
2251 static int whereLoopXfer(sqlite3 *db, WhereLoop *pTo, WhereLoop *pFrom){ in whereLoopXfer()
2272 static void whereLoopDelete(sqlite3 *db, WhereLoop *p){ in whereLoopDelete()
2286 WhereLoop *p = pWInfo->pLoops; in whereInfoFree()
2318 const WhereLoop *pX, /* First WhereLoop to compare */ in whereLoopCheaperProperSubset()
2319 const WhereLoop *pY /* Compare against this WhereLoop */ in whereLoopCheaperProperSubset()
2355 static void whereLoopAdjustCost(const WhereLoop *p, WhereLoop *pTemplate){ in whereLoopAdjustCost()
2396 static WhereLoop **whereLoopFindLesser( in whereLoopFindLesser()
2397 WhereLoop **ppPrev, in whereLoopFindLesser()
2398 const WhereLoop *pTemplate in whereLoopFindLesser()
2400 WhereLoop *p; in whereLoopFindLesser()
2484 static int whereLoopInsert(WhereLoopBuilder *pBuilder, WhereLoop *pTemplate){ in whereLoopInsert()
2485 WhereLoop **ppPrev, *p; in whereLoopInsert()
2557 *ppPrev = p = sqlite3DbMallocRawNN(db, sizeof(WhereLoop)); in whereLoopInsert()
2565 WhereLoop **ppTail = &p->pNextLoop; in whereLoopInsert()
2566 WhereLoop *pToDel; in whereLoopInsert()
2623 WhereLoop *pLoop, /* The loop to adjust downward */ in whereLoopOutputAdjust()
2793 WhereLoop *pNew; /* Template WhereLoop under construction */ in whereLoopAddBtreeIndex()
3385 WhereLoop *pNew; /* Template WhereLoop object */ in whereLoopAddBtree()
3688 WhereLoop *pNew = pBuilder->pNew; in whereLoopAddVirtualOne()
4008 WhereLoop *pNew; in whereLoopAddVirtual()
4133 WhereLoop *pNew; in whereLoopAddOr()
4267 WhereLoop *pNew; in whereLoopAddAll()
4360 WhereLoop *pLast, /* Add this WhereLoop to the end of pPath->aLoop[] */ in wherePathSatisfiesOrderBy()
4377 WhereLoop *pLoop = 0; /* Current WhereLoop being processed. */ in wherePathSatisfiesOrderBy()
4711 static const char *wherePathName(WherePath *pPath, int nLoop, WhereLoop *pLast){ in wherePathName()
4794 WhereLoop *pWLoop; /* One of the WhereLoop objects */ in wherePathSolver()
4795 WhereLoop **pX; /* Used to divy up the pSpace memory */ in wherePathSolver()
4821 nSpace = (sizeof(WherePath)+sizeof(WhereLoop*)*nLoop)*mxChoice*2; in wherePathSolver()
4828 pX = (WhereLoop**)(aFrom+mxChoice); in wherePathSolver()
5037 memcpy(pTo->aLoop, pFrom->aLoop, sizeof(WhereLoop*)*iLoop); in wherePathSolver()
5183 WhereLoop *pLoop; in whereShortCut()
5303 WhereLoop *p; in showAllWhereLoops()
5370 WhereLoop *pLoop; in whereOmitNoopJoin()
5436 WhereLoop *pLoop = pWInfo->a[i].pWLoop; in whereCheckIfBloomFilterIsUseful()
5640 WhereLoop *pLoop; /* Pointer to a single WhereLoop object */ in sqlite3WhereBegin()
5687 pWInfo = sqlite3DbMallocRawNN(db, nByteWInfo + sizeof(WhereLoop)); in sqlite3WhereBegin()
5709 memset(&pWInfo->a[0], 0, sizeof(WhereLoop)+nTabList*sizeof(WhereLevel)); in sqlite3WhereBegin()
5718 sWLB.pNew = (WhereLoop*)(((char*)pWInfo)+nByteWInfo); in sqlite3WhereBegin()
5857 WhereLoop *p = pWInfo->pLoops; in sqlite3WhereBegin()
6260 WhereLoop *pLoop; in sqlite3WhereEnd()