Update of /cvsroot/monetdb/sql/src/server
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv10691/src/server

Modified Files:
        rel_select.mx 
Log Message:
Fixed problem in algebra version. we need to keep the outer 
projections, ie we shouldn't introduce references and then
remove the projection we refer too.


Index: rel_select.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/server/rel_select.mx,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -d -r1.65 -r1.66
--- rel_select.mx       25 Feb 2008 19:07:43 -0000      1.65
+++ rel_select.mx       26 Feb 2008 18:53:42 -0000      1.66
@@ -3585,8 +3585,12 @@
 
        /* if within the selection, keep the current projections */
        if (outer && is_project(outer->op) && !is_processed(outer)) {
+               /* keep projections the hard way, ie don't rename them */
                assert(rel->l == outer);
-               pre_prj = rel_projections(sql, outer, NULL, 1);
+
+               pre_prj = outer->exps;
+               outer->exps = NULL;
+
                rel->l = rel_dup(outer->l);
                rel_destroy(outer);
                outer = rel->l;


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to