Update of /cvsroot/monetdb/sql/src/server
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv5183/src/server
Modified Files:
rel_updates.mx
Log Message:
propagated changes of Sunday Feb 01 2009
from the Feb2009 branch to the development trunk
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2009/02/01 - nielsnes: src/server/rel_updates.mx,1.2.2.1
in case the insert sub query has a project with distinct we have to
put another project around it.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Index: rel_updates.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/server/rel_updates.mx,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- rel_updates.mx 7 Jan 2009 14:19:29 -0000 1.2
+++ rel_updates.mx 1 Feb 2009 22:27:55 -0000 1.3
@@ -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