Home
last modified time | relevance | path

Searched refs:pWith (Results 1 – 12 of 12) sorted by relevance

/sqlite-3.40.0/src/
H A Dtreeview.c143 if( pWith->pOuter ){ in sqlite3TreeViewWith()
148 if( pWith->nCte>0 ){ in sqlite3TreeViewWith()
256 if( p->pWith ){ in sqlite3TreeViewSelect()
1008 const With *pWith, in sqlite3TreeViewDelete() argument
1019 if( pWith ) n++; in sqlite3TreeViewDelete()
1025 if( pWith ){ in sqlite3TreeViewDelete()
1064 const With *pWith, in sqlite3TreeViewInsert() argument
1085 if( pWith ) n++; in sqlite3TreeViewInsert()
1092 if( pWith ){ in sqlite3TreeViewInsert()
1156 if( pWith ) n++; in sqlite3TreeViewUpdate()
[all …]
H A Dselect.c162 pNew->pWith = 0; in sqlite3SelectNew()
5422 assert( pParse->pWith!=pWith ); in sqlite3WithPush()
5423 pWith->pOuter = pParse->pWith; in sqlite3WithPush()
5424 pParse->pWith = pWith; in sqlite3WithPush()
5475 pCte = searchWith(pParse->pWith, pFrom, &pWith); in resolveFromTermToCte()
5566 pParse->pWith = pWith; in resolveFromTermToCte()
5574 pRecTerm->pWith = pSel->pWith; in resolveFromTermToCte()
5587 pParse->pWith = pWith; in resolveFromTermToCte()
5631 With *pWith = findRightmost(p)->pWith; in sqlite3SelectPopWith() local
5633 assert( pParse->pWith==pWith || pParse->nErr ); in sqlite3SelectPopWith()
[all …]
H A Dalter.c823 With *pWith = pSelect->pWith; in renameWalkWith() local
824 if( pWith ){ in renameWalkWith()
828 assert( pWith->nCte>0 ); in renameWalkWith()
829 if( (pWith->a[0].pSelect->selFlags & SF_Expanded)==0 ){ in renameWalkWith()
835 pCopy = sqlite3WithDup(pParse->db, pWith); in renameWalkWith()
838 for(i=0; i<pWith->nCte; i++){ in renameWalkWith()
839 Select *p = pWith->a[i].pSelect; in renameWalkWith()
846 sqlite3RenameExprlistUnmap(pParse, pWith->a[i].pCols); in renameWalkWith()
848 if( pCopy && pParse->pWith==pCopy ){ in renameWalkWith()
849 pParse->pWith = pCopy->pOuter; in renameWalkWith()
H A Dattach.c490 if( pSelect->pWith ){ in fixSelectCb()
491 for(i=0; i<pSelect->pWith->nCte; i++){ in fixSelectCb()
492 if( sqlite3WalkSelect(p, pSelect->pWith->a[i].pSelect) ){ in fixSelectCb()
H A Dbuild.c5633 return pWith; in sqlite3WithAdd()
5639 if( zName && pWith ){ in sqlite3WithAdd()
5641 for(i=0; i<pWith->nCte; i++){ in sqlite3WithAdd()
5648 if( pWith ){ in sqlite3WithAdd()
5649 sqlite3_int64 nByte = sizeof(*pWith) + (sizeof(pWith->a[1]) * pWith->nCte); in sqlite3WithAdd()
5650 pNew = sqlite3DbRealloc(db, pWith, nByte); in sqlite3WithAdd()
5658 pNew = pWith; in sqlite3WithAdd()
5671 if( pWith ){ in sqlite3WithDelete()
5673 for(i=0; i<pWith->nCte; i++){ in sqlite3WithDelete()
5674 cteClear(db, &pWith->a[i]); in sqlite3WithDelete()
[all …]
H A Dparse.y539 static Select *attachWithToSelect(Parse *pParse, Select *pSelect, With *pWith){
541 pSelect->pWith = pWith;
544 sqlite3WithDelete(pParse->db, pWith);
H A Dinsert.c783 sqlite3TreeViewInsert(pParse->pWith, pTabList, pColumn, pSelect, pList, in sqlite3Insert()
2804 if( pParse->pWith || pSelect->pWith ){ in xferOptimization()
H A Ddelete.c356 sqlite3TreeViewDelete(pParse->pWith, pTabList, pWhere, in sqlite3DeleteFrom()
H A Dutil.c210 pParse->pWith = 0; in sqlite3ErrorMsg()
H A Dupdate.c385 sqlite3TreeViewUpdate(pParse->pWith, pTabList, pChanges, pWhere, in sqlite3Update()
H A DsqliteInt.h3361 With *pWith; /* WITH clause attached to this select. Or NULL. */ member
3731 With *pWith; /* Current WITH clause, or NULL */ member
H A Dexpr.c1745 pNew->pWith = sqlite3WithDup(db, p->pWith); in sqlite3SelectDup()