Update of /cvsroot/monetdb/sql/src/server
In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv19452/src/server

Modified Files:
      Tag: Feb2010
        rel_optimizer.mx 
Log Message:
fixed warning from valgrind (incorrect read)


Index: rel_optimizer.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/server/rel_optimizer.mx,v
retrieving revision 1.81.2.1
retrieving revision 1.81.2.2
diff -u -d -r1.81.2.1 -r1.81.2.2
--- rel_optimizer.mx    18 Jan 2010 10:36:49 -0000      1.81.2.1
+++ rel_optimizer.mx    30 Jan 2010 08:12:51 -0000      1.81.2.2
@@ -3038,6 +3038,7 @@
 }
 
 /* TODO CSE */
+#if 0
 static list *
 exp_merge(list *exps)
 {
@@ -3047,7 +3048,7 @@
                /*sql_exp *le = e->l;*/
                sql_exp *re = e->r;
 
-               if (e->type == e_cmp && e->flag != cmp_or)
+               if (e->type == e_cmp && e->flag == cmp_or)
                        continue;
 
                /* only look for gt, gte, lte, lt */
@@ -3065,6 +3066,7 @@
        }
        return exps;
 }
+#endif
 
 static sql_rel *
 rel_select_order(int *changes, mvc *sql, sql_rel *rel) 
@@ -3076,7 +3078,8 @@
                        
                exps = list_sort(rel->exps, (fkeyvalue)&exp_keyvalue, 
(fdup)&exp_dup);
                list_destroy(rel->exps);
-               rel->exps = exp_merge(exps);
+               //rel->exps = exp_merge(exps);
+               rel->exps = exps;
        }
        return rel;
 }


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to