Lines Matching refs:pWith

18427   With *pWith;           /* WITH clause attached to this select. Or NULL. */  member
18735 With *pWith; /* Current WITH clause, or NULL */ member
29487 SQLITE_PRIVATE void sqlite3TreeViewWith(TreeView *pView, const With *pWith, u8 moreToFollow){
29489 if( pWith==0 ) return;
29490 if( pWith->nCte==0 ) return;
29491 if( pWith->pOuter ){
29492 sqlite3TreeViewLine(pView, "WITH (0x%p, pOuter=0x%p)",pWith,pWith->pOuter);
29494 sqlite3TreeViewLine(pView, "WITH (0x%p)", pWith);
29496 if( pWith->nCte>0 ){
29498 for(i=0; i<pWith->nCte; i++){
29501 const struct Cte *pCte = &pWith->a[i];
29515 sqlite3TreeViewItem(pView, zLine, i<pWith->nCte-1);
29575 if( p->pWith ){
29576 sqlite3TreeViewWith(pView, p->pWith, 1);
31327 pParse->pWith = 0;
101080 pNew->pWith = withDup(db, p->pWith);
106249 With *pWith = pSelect->pWith;
106250 if( pWith ){
106252 for(i=0; i<pWith->nCte; i++){
106253 Select *p = pWith->a[i].pSelect;
106259 sqlite3RenameExprlistUnmap(pWalker->pParse, pWith->a[i].pCols);
109683 if( pSelect->pWith ){
109685 for(i=0; i<pSelect->pWith->nCte; i++){
109686 if( sqlite3FixSelect(pFix, pSelect->pWith->a[i].pSelect) ){
115076 With *pWith, /* Existing WITH clause, or NULL */
115088 if( zName && pWith ){
115090 for(i=0; i<pWith->nCte; i++){
115091 if( sqlite3StrICmp(zName, pWith->a[i].zName)==0 ){
115097 if( pWith ){
115098 sqlite3_int64 nByte = sizeof(*pWith) + (sizeof(pWith->a[1]) * pWith->nCte);
115099 pNew = sqlite3DbRealloc(db, pWith, nByte);
115101 pNew = sqlite3DbMallocZero(db, sizeof(*pWith));
115109 pNew = pWith;
115124 SQLITE_PRIVATE void sqlite3WithDelete(sqlite3 *db, With *pWith){
115125 if( pWith ){
115127 for(i=0; i<pWith->nCte; i++){
115128 struct Cte *pCte = &pWith->a[i];
115133 sqlite3DbFree(db, pWith);
122697 if( pParse->pWith || pSelect->pWith ){
128943 if( OK_IF_ALWAYS_TRUE(p->pWith) ) sqlite3WithDelete(db, p->pWith);
129006 pNew->pWith = 0;
133493 p->pWith = 0;
133531 With *pWith, /* Current innermost WITH clause */
133538 for(p=pWith; p; p=p->pOuter){
133561 SQLITE_PRIVATE void sqlite3WithPush(Parse *pParse, With *pWith, u8 bFree){
133562 assert( bFree==0 || (pParse->pWith==0 && pParse->pWithToFree==0) );
133563 if( pWith ){
133564 assert( pParse->pWith!=pWith );
133565 pWith->pOuter = pParse->pWith;
133566 pParse->pWith = pWith;
133567 if( bFree ) pParse->pWithToFree = pWith;
133593 With *pWith; /* WITH clause that pCte belongs to */
133600 pCte = searchWith(pParse->pWith, pFrom, &pWith);
133662 pSavedWith = pParse->pWith;
133663 pParse->pWith = pWith;
133666 assert( pPrior->pWith==0 );
133667 pPrior->pWith = pSel->pWith;
133669 pPrior->pWith = 0;
133673 pParse->pWith = pWith;
133682 pParse->pWith = pSavedWith;
133698 pParse->pWith = pSavedWith;
133716 if( OK_IF_ALWAYS_TRUE(pParse->pWith) && p->pPrior==0 ){
133717 With *pWith = findRightmost(p)->pWith;
133718 if( pWith!=0 ){
133719 assert( pParse->pWith==pWith || pParse->nErr );
133720 pParse->pWith = pWith->pOuter;
133806 sqlite3WithPush(pParse, p->pWith, 0);
156992 p->pWith = yymsp[-1].minor.yy131;
157004 p->pWith = yymsp[-1].minor.yy131;