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

Modified Files:
      Tag: Nov2009
        rel_optimizer.mx 
Log Message:
fixed bug in new rel_case_fixup (properly use left and right parts
of div not only left).

made list_select more defensive.


Index: rel_optimizer.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/server/rel_optimizer.mx,v
retrieving revision 1.71.2.1
retrieving revision 1.71.2.2
diff -u -d -r1.71.2.1 -r1.71.2.2
--- rel_optimizer.mx    11 Nov 2009 13:37:52 -0000      1.71.2.1
+++ rel_optimizer.mx    11 Nov 2009 18:20:24 -0000      1.71.2.2
@@ -1303,7 +1303,7 @@
                        if (a1->type == e_func && !a1f->func->s && 
                             !strcmp(a1f->func->base.name, "sql_div")) {
                                list *args = a1->l;
-                               sql_exp *le = exp_dup(args->h->next->data), *o;
+                               sql_exp *le = exp_dup(args->h->data), *o;
                                sql_exp *re = exp_dup(args->h->next->data);
 
                                /* if (cond) then val else const */
@@ -1323,7 +1323,7 @@
                        if  (a2->type == e_func && !a2f->func->s && 
                             !strcmp(a2f->func->base.name, "sql_div")) { 
                                list *args = a2->l;
-                               sql_exp *le = exp_dup(args->h->next->data), *o;
+                               sql_exp *le = exp_dup(args->h->data), *o;
                                sql_exp *re = exp_dup(args->h->next->data);
 
                                /* if (cond) then const else val */


------------------------------------------------------------------------------
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