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

Modified Files:
      Tag: XQuery_0-24
        algebra_cse.c 
Log Message:
-- Added missing checks to the CSE phase.
   (This fixes the last failing query of bug report #1983619.)


U algebra_cse.c
Index: algebra_cse.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/algebra/algebra_cse.c,v
retrieving revision 1.74.2.1
retrieving revision 1.74.2.2
diff -u -d -r1.74.2.1 -r1.74.2.2
--- algebra_cse.c       28 May 2008 11:37:18 -0000      1.74.2.1
+++ algebra_cse.c       5 Jun 2008 09:26:19 -0000       1.74.2.2
@@ -224,14 +224,21 @@
                 rcount != PFarray_last (b->sem.eqjoin_unq.rproj))
                 return false;
             
-            for (i = 0; i < lcount; i++) {
 #define proj_at(l,i) (*(PFalg_proj_t *) PFarray_at ((l),(i)))
+            for (i = 0; i < lcount; i++) {
                 aproj = proj_at(a->sem.eqjoin_unq.lproj, i),
                 bproj = proj_at(b->sem.eqjoin_unq.lproj, i);
                 if (aproj.old != bproj.old || aproj.new != bproj.new)
                     return false;
             }
 
+            for (i = 0; i < rcount; i++) {
+                aproj = proj_at(a->sem.eqjoin_unq.rproj, i),
+                bproj = proj_at(b->sem.eqjoin_unq.rproj, i);
+                if (aproj.old != bproj.old || aproj.new != bproj.new)
+                    return false;
+            }
+
             return true;
         }   break;
 


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to