/ Check-in [d9ae0f5d]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add a header comment to the searchWith() routine.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | common-table-expr
Files: files | file ages | folders
SHA1: d9ae0f5d9f8230ca7ca10ebed300e2f6635a0614
User & Date: drh 2014-01-15 18:23:00
Context
2014-01-15
18:35
Further comments on WITH-clause processing routines in select.c. check-in: c948384d user: drh tags: common-table-expr
18:23
Add a header comment to the searchWith() routine. check-in: d9ae0f5d user: drh tags: common-table-expr
18:21
Disable automatic indices on recursive CTE references. check-in: 28aa6db8 user: dan tags: common-table-expr
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/select.c.

  3478   3478     pNew->pOrderBy = 0;
  3479   3479     p->pPrior = 0;
  3480   3480     pNew->pLimit = 0;
  3481   3481     pNew->pOffset = 0;
  3482   3482     return WRC_Continue;
  3483   3483   }
  3484   3484   
         3485  +/* If the table identified by p is a transient table of 
         3486  +** a common-table-expression (CTE) then return a pointer to the
         3487  +** CTE that defines table p.  If p is not a CTE, then return NULL.
         3488  +*/
  3485   3489   static struct Cte *searchWith(Parse *pParse, struct SrcList_item *p){
  3486   3490     if( p->zDatabase==0 ){
  3487   3491       char *zName = p->zName;
  3488   3492       With *pWith;
  3489   3493   
  3490   3494       for(pWith=pParse->pWith; pWith; pWith=pWith->pOuter){
  3491   3495         int i;