Update of /cvsroot/monetdb/pathfinder/compiler/algebra
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv5520/algebra

Modified Files:
        planner.c 
Log Message:
-- Fixing bug [ 1871790 ] XQ: uncompilable comparison

   The planner now chooses a different implementation for thetajoins with
   not equal predicates (as the MIL thetajoin cannot cope with NE).


Index: planner.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/algebra/planner.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- planner.c   11 Jan 2008 10:46:57 -0000      1.46
+++ planner.c   15 Jan 2008 09:29:20 -0000      1.47
@@ -2795,6 +2795,7 @@
                 if (n->schema.count == 1 &&
                     L(n)->sem.thetajoin.count == 2 &&
                     L(n)->sem.thetajoin.pred[0].comp == alg_comp_eq &&
+                    L(n)->sem.thetajoin.pred[1].comp != alg_comp_ne &&
                     (n->sem.proj.items[0].old ==
                      L(n)->sem.thetajoin.pred[0].left ||
                      n->sem.proj.items[0].old ==
@@ -2806,6 +2807,7 @@
                    and the right children of the thetajoin */
                 } else if (n->schema.count == 2 &&
                     L(n)->sem.thetajoin.count == 1 &&
+                    L(n)->sem.thetajoin.pred[0].comp != alg_comp_ne &&
                     (PFprop_ocol (L(L(n)), n->sem.proj.items[0].old) &&
                      PFprop_ocol (R(L(n)), n->sem.proj.items[1].old)) ^
                     (PFprop_ocol (L(L(n)), n->sem.proj.items[1].old) &&


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to