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

Modified Files:
      Tag: May2009
        rel_optimizer.mx 
Log Message:
fix bug in deadcode elimination


U rel_optimizer.mx
Index: rel_optimizer.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/server/rel_optimizer.mx,v
retrieving revision 1.60
retrieving revision 1.60.2.1
diff -u -d -r1.60 -r1.60.2.1
--- rel_optimizer.mx    14 Apr 2009 14:01:33 -0000      1.60
+++ rel_optimizer.mx    6 Jun 2009 15:24:00 -0000       1.60.2.1
@@ -2206,8 +2206,11 @@
                break;
 
        case op_topn: 
-               if (proj)
+               if (proj) {
                        rel = rel ->l;
+                       rel_mark_used(sql, rel, proj);
+                       break;
+               }
        case op_project:
        case op_groupby: 
                if (proj && rel->l) {


------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to