Update of /cvsroot/monetdb/sql/src/server
In directory sc8-pr-cvs16:/tmp/cvs-serv25590/server

Modified Files:
        sql_semantic.mx 
Log Message:
added variable stack frame around with clause.
This solves WITH runs only once bug.


Index: sql_semantic.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/server/sql_semantic.mx,v
retrieving revision 1.166
retrieving revision 1.167
diff -u -d -r1.166 -r1.167
--- sql_semantic.mx     10 May 2007 16:31:30 -0000      1.166
+++ sql_semantic.mx     16 May 2007 20:49:16 -0000      1.167
@@ -1119,6 +1119,7 @@
                symbol *select = d->next->data.sym;
                stmt *st;
 
+               stack_push_frame(sql, "WITH");
                /* first handle all with's (ie inlined views) */
                for (d = d->data.lval->h; d; d = d->next) {
                        symbol *sym = d->data.sym;
@@ -1143,6 +1144,7 @@
                        stack_push_view(sql, name, st);
                }
                st = semantic(sql, scp, select);
+               stack_pop_frame(sql);
                res = st;
                break;
        }


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to