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

Modified Files:
        rel_dump.mx 
Log Message:
make sure we dump projections without inner relation


U rel_dump.mx
Index: rel_dump.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/server/rel_dump.mx,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- rel_dump.mx 17 Aug 2009 23:11:31 -0000      1.40
+++ rel_dump.mx 14 Sep 2009 18:21:35 -0000      1.41
@@ -127,7 +127,7 @@
                stream_printf(fout, "%s", a->aggr->base.name );
                if (need_distinct(e))
                        stream_printf(fout, " unique ");
-               if (has_no_nil(e))
+               if (need_no_nil(e))
                        stream_printf(fout, " no nil ");
                exps_print(sql, fout, e->l, depth, alias, 1);
        }       break;
@@ -343,8 +343,8 @@
                        r = "group by";
                if (rel->op == op_topn)
                        r = "top N";
+               print_indent(sql, fout, depth);
                if (rel->l) {
-                       print_indent(sql, fout, depth);
                        if (need_distinct(rel))
                                stream_printf(fout, "distinct ");
                        stream_printf(fout, "%s (", r);


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to