Lines Matching refs:pPrior
12292 Select *pPrior; /* Prior select in a compound select statement */ member
16982 static void sqlite3MemFree(void *pPrior){ return; } in sqlite3MemFree() argument
16983 static void *sqlite3MemRealloc(void *pPrior, int nByte){ return 0; } in sqlite3MemRealloc() argument
16984 static int sqlite3MemSize(void *pPrior){ return 0; } in sqlite3MemSize() argument
17169 static void sqlite3MemFree(void *pPrior){ in sqlite3MemFree() argument
17171 SQLITE_FREE(pPrior); in sqlite3MemFree()
17173 sqlite3_int64 *p = (sqlite3_int64*)pPrior; in sqlite3MemFree()
17174 assert( pPrior!=0 ); in sqlite3MemFree()
17184 static int sqlite3MemSize(void *pPrior){ in sqlite3MemSize() argument
17186 return pPrior ? (int)SQLITE_MALLOCSIZE(pPrior) : 0; in sqlite3MemSize()
17189 if( pPrior==0 ) return 0; in sqlite3MemSize()
17190 p = (sqlite3_int64*)pPrior; in sqlite3MemSize()
17206 static void *sqlite3MemRealloc(void *pPrior, int nByte){ in sqlite3MemRealloc() argument
17208 void *p = SQLITE_REALLOC(pPrior, nByte); in sqlite3MemRealloc()
17213 SQLITE_MALLOCSIZE(pPrior), nByte); in sqlite3MemRealloc()
17217 sqlite3_int64 *p = (sqlite3_int64*)pPrior; in sqlite3MemRealloc()
17218 assert( pPrior!=0 && nByte>0 ); in sqlite3MemRealloc()
17229 sqlite3MemSize(pPrior), nByte); in sqlite3MemRealloc()
17609 static void sqlite3MemFree(void *pPrior){ in sqlite3MemFree() argument
17615 pHdr = sqlite3MemsysGetHeader(pPrior); in sqlite3MemFree()
17651 static void *sqlite3MemRealloc(void *pPrior, int nByte){ in sqlite3MemRealloc() argument
17656 pOldHdr = sqlite3MemsysGetHeader(pPrior); in sqlite3MemRealloc()
17659 memcpy(pNew, pPrior, (int)(nByte<pOldHdr->iSize ? nByte : pOldHdr->iSize)); in sqlite3MemRealloc()
17663 sqlite3MemFree(pPrior); in sqlite3MemRealloc()
18349 static void memsys3Free(void *pPrior){ in memsys3Free() argument
18350 assert( pPrior ); in memsys3Free()
18352 memsys3FreeUnsafe(pPrior); in memsys3Free()
18359 static void *memsys3Realloc(void *pPrior, int nBytes){ in memsys3Realloc() argument
18362 if( pPrior==0 ){ in memsys3Realloc()
18366 sqlite3_free(pPrior); in memsys3Realloc()
18369 nOld = memsys3Size(pPrior); in memsys3Realloc()
18371 return pPrior; in memsys3Realloc()
18377 memcpy(p, pPrior, nOld); in memsys3Realloc()
18379 memcpy(p, pPrior, nBytes); in memsys3Realloc()
18381 memsys3FreeUnsafe(pPrior); in memsys3Realloc()
18897 static void memsys5Free(void *pPrior){ in memsys5Free() argument
18898 assert( pPrior!=0 ); in memsys5Free()
18900 memsys5FreeUnsafe(pPrior); in memsys5Free()
18916 static void *memsys5Realloc(void *pPrior, int nBytes){ in memsys5Realloc() argument
18919 assert( pPrior!=0 ); in memsys5Realloc()
18925 nOld = memsys5Size(pPrior); in memsys5Realloc()
18927 return pPrior; in memsys5Realloc()
18932 memcpy(p, pPrior, nOld); in memsys5Realloc()
18933 memsys5FreeUnsafe(pPrior); in memsys5Realloc()
33606 static void winMemFree(void *pPrior);
33607 static void *winMemRealloc(void *pPrior, int nBytes);
34634 static void winMemFree(void *pPrior){
34642 assert( osHeapValidate(hHeap, SQLITE_WIN32_HEAP_FLAGS, pPrior) );
34644 if( !pPrior ) return; /* Passing NULL to HeapFree is undefined. */
34645 if( !osHeapFree(hHeap, SQLITE_WIN32_HEAP_FLAGS, pPrior) ){
34647 pPrior, osGetLastError(), (void*)hHeap);
34654 static void *winMemRealloc(void *pPrior, int nBytes){
34663 assert( osHeapValidate(hHeap, SQLITE_WIN32_HEAP_FLAGS, pPrior) );
34666 if( !pPrior ){
34669 p = osHeapReAlloc(hHeap, SQLITE_WIN32_HEAP_FLAGS, pPrior, (SIZE_T)nBytes);
34673 pPrior ? "HeapReAlloc" : "HeapAlloc", nBytes, osGetLastError(),
58870 unsigned char *pPrior;
58914 pPrior = pCell;
58923 pPrior = &pCell[nHeader+n];
58947 assert( pPrior == &pCell[info.iOverflow] );
58995 assert( pPrior<pPage->aData || pPrior>=&pPage->aData[pBt->pageSize]
58998 put4byte(pPrior, pgnoOvfl);
59001 pPrior = pOvfl->aData;
59002 put4byte(pPrior, 0);
81290 p = p->pPrior;
82251 while( pSelect->pPrior ){
82252 pSelect->pPrior->pNext = pSelect;
82253 pSelect = pSelect->pPrior;
82469 isCompound = p->pPrior!=0;
82496 assert( pSub->pPrior && pSub->pOrderBy==0 );
82632 p = p->pPrior;
83167 heightOfSelect(p->pPrior, pnHeight);
83885 Select *pNew, *pPrior;
83896 pNew->pPrior = pPrior = sqlite3SelectDup(db, p->pPrior, flags);
83897 if( pPrior ) pPrior->pNext = pNew;
84344 if( p->pPrior ) return 0; /* Not a compound SELECT */
90474 pSelect = pSelect->pPrior;
96313 Index *pPrior = 0; /* Prior index */
96325 &iPartIdxLabel, pPrior, r1);
96329 pPrior = pIdx;
96371 Index *pPrior, /* Previously generated index key */
96393 if( pPrior && (regBase!=regPrior || pPrior->pPartIdxWhere) ) pPrior = 0;
96395 if( pPrior && pPrior->aiColumn[j]==pIdx->aiColumn[j] ) continue;
100126 if( pSelect && (pSelect->selFlags & SF_Values)!=0 && pSelect->pPrior==0 ){
101461 if( pSelect->pPrior ){
105087 Index *pPrior = 0;
105133 pPrior, r1);
105134 pPrior = pIdx;
106533 Select *pPrior = p->pPrior;
106544 p = pPrior;
108198 while( pSelect->pPrior ) pSelect = pSelect->pPrior;
108325 if( p->pPrior ){
108326 pRet = multiSelectCollSeq(pParse, p->pPrior, iCol);
108420 Select *pSetup = p->pPrior; /* The setup query */
108521 p->pPrior = 0;
108523 assert( p->pPrior==0 );
108524 p->pPrior = pSetup;
108575 Select *pPrior;
108582 assert( p->op==TK_ALL || (p->op==TK_SELECT && p->pPrior==0) );
108589 if( p->pPrior==0 ) break;
108590 assert( p->pPrior->pNext==p );
108591 p = p->pPrior;
108595 pPrior = p->pPrior;
108596 p->pPrior = 0;
108598 p->pPrior = pPrior;
108643 Select *pPrior; /* Another SELECT immediately to our left */
108656 assert( p && p->pPrior ); /* Calling function guarantees this much */
108659 pPrior = p->pPrior;
108661 if( pPrior->pOrderBy ){
108667 if( pPrior->pLimit ){
108696 assert( p->pEList && pPrior->pEList );
108697 if( p->pEList->nExpr!=pPrior->pEList->nExpr ){
108721 assert( !pPrior->pLimit );
108722 pPrior->iLimit = p->iLimit;
108723 pPrior->iOffset = p->iOffset;
108724 pPrior->pLimit = p->pLimit;
108725 pPrior->pOffset = p->pOffset;
108727 rc = sqlite3Select(pParse, pPrior, &dest);
108733 p->pPrior = 0;
108734 p->iLimit = pPrior->iLimit;
108735 p->iOffset = pPrior->iOffset;
108743 pDelete = p->pPrior;
108744 p->pPrior = pPrior;
108745 p->nSelectRow += pPrior->nSelectRow;
108746 if( pPrior->pLimit
108747 && sqlite3ExprIsInteger(pPrior->pLimit, &nLimit)
108791 assert( !pPrior->pOrderBy );
108794 rc = sqlite3Select(pParse, pPrior, &uniondest);
108807 p->pPrior = 0;
108819 pDelete = p->pPrior;
108820 p->pPrior = pPrior;
108822 if( p->op==TK_UNION ) p->nSelectRow += pPrior->nSelectRow;
108838 while( pFirst->pPrior ) pFirst = pFirst->pPrior;
108881 rc = sqlite3Select(pParse, pPrior, &intersectdest);
108891 p->pPrior = 0;
108900 pDelete = p->pPrior;
108901 p->pPrior = pPrior;
108902 if( p->nSelectRow>pPrior->nSelectRow ) p->nSelectRow = pPrior->nSelectRow;
108913 while( pFirst->pPrior ) pFirst = pFirst->pPrior;
108967 for(pLoop=p; pLoop; pLoop=pLoop->pPrior){
109241 Select *pPrior; /* Another SELECT immediately to our left */
109291 pPrior = p->pPrior;
109292 assert( pPrior->pOrderBy==0 );
109344 pPrior->pOrderBy = sqlite3ExprListDup(pParse->db, pOrderBy, 0);
109370 p->pPrior = 0;
109371 pPrior->pNext = 0;
109373 if( pPrior->pPrior==0 ){
109374 sqlite3ResolveOrderGroupBy(pParse, pPrior, pPrior->pOrderBy, "ORDER");
109406 pPrior->iLimit = regLimitA;
109408 sqlite3Select(pParse, pPrior, &destA);
109458 p->nSelectRow += pPrior->nSelectRow;
109466 if( p->nSelectRow > pPrior->nSelectRow ) p->nSelectRow = pPrior->nSelectRow;
109527 Select *pFirst = pPrior;
109528 while( pFirst->pPrior ) pFirst = pFirst->pPrior;
109534 if( p->pPrior ){
109535 sqlite3SelectDelete(db, p->pPrior);
109537 p->pPrior = pPrior;
109538 pPrior->pNext = p;
109621 substSelect(db, p->pPrior, iTable, pEList);
109795 assert( p->pPrior==0 ); /* Unable to flatten compound queries */
109847 if( (p->selFlags & SF_Recursive) && pSub->pPrior ){
109892 if( pSub->pPrior ){
109899 for(pSub1=pSub; pSub1; pSub1=pSub1->pPrior){
109904 || (pSub1->pPrior && pSub1->op!=TK_ALL)
109965 for(pSub=pSub->pPrior; pSub; pSub=pSub->pPrior){
109970 Select *pPrior = p->pPrior;
109973 p->pPrior = 0;
109984 p->pPrior = pPrior;
109986 pNew->pPrior = pPrior;
109987 if( pPrior ) pPrior->pNext = pNew;
109989 p->pPrior = pNew;
110045 for(pParent=p; pParent; pParent=pParent->pPrior, pSub=pSub->pPrior){
110137 assert( pSub->pPrior==0 );
110326 if( p->pPrior==0 ) return WRC_Continue;
110328 for(pX=p; pX && (pX->op==TK_ALL || pX->op==TK_SELECT); pX=pX->pPrior){}
110353 p->pPrior = 0;
110359 assert( pNew->pPrior!=0 );
110360 pNew->pPrior->pNext = pNew;
110505 sqlite3WalkSelect(pWalker, bMayRecursive ? pSel->pPrior : pSel);
110507 for(pLeft=pSel; pLeft->pPrior; pLeft=pLeft->pPrior);
110642 while( pSel->pPrior ){ pSel = pSel->pPrior; }
110932 while( pSel->pPrior ) pSel = pSel->pPrior;
111262 for(i=0; !p->pPrior && i<pTabList->nSrc; i++){
111371 if( p->pPrior ){
111999 if( p->pPrior ) n++;
112060 if( p->pPrior ){
112068 sqlite3TreeViewSelect(pView, p->pPrior, 0);
114575 VtabCtx *pPrior; /* Parent context (if any) */
115051 for(pCtx=db->pVtabCtx; pCtx; pCtx=pCtx->pPrior){
115081 sCtx.pPrior = db->pVtabCtx;
115085 db->pVtabCtx = sCtx.pPrior;
116525 pS = pS->pPrior;
123299 if( p->pPrior ){
123302 for(pLoop=p; pLoop; pNext=pLoop, pLoop=pLoop->pPrior, cnt++){
125648 if( pRhs && pRhs->pPrior ){
125658 pRhs->pPrior = yymsp[-2].minor.yy3;
125712 pRight->pPrior = pLeft;