Update of /cvsroot/monetdb/sql/src/server
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv523/server

Modified Files:
      Tag: Feb2009
        rel_updates.mx 
Log Message:
in case the insert sub query has a project with distinct we have to
put another project around it.


U rel_updates.mx
Index: rel_updates.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/server/rel_updates.mx,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -u -d -r1.2 -r1.2.2.1
--- rel_updates.mx      7 Jan 2009 14:19:29 -0000       1.2
+++ rel_updates.mx      1 Feb 2009 09:57:12 -0000       1.2.2.1
@@ -192,7 +192,7 @@
        if (!r) 
                return NULL;
 
-       if (r->op != op_project)
+       if (r->op != op_project || need_distinct(r))
                r = rel_project(r, rel_projections(sql, r, NULL, 0, 0));
        if ((r->exps && list_length(r->exps) != list_length(collist)) ||
           (!r->exps && collist)) 


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to