Update of /cvsroot/monetdb/pathfinder/compiler/algebra/opt
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv6069/algebra/opt

Modified Files:
        opt_monetxq.c 
Log Message:
-- Make MonetDB-specific rewrite pattern less restrictive:
   '//node()[foo]' is now also reversed into '//foo/parent::node()'.


U opt_monetxq.c
Index: opt_monetxq.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/algebra/opt/opt_monetxq.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- opt_monetxq.c       17 Feb 2009 23:45:52 -0000      1.3
+++ opt_monetxq.c       9 Mar 2009 15:01:54 -0000       1.4
@@ -113,9 +113,10 @@
                 RL(p)->kind == la_step_join &&
                 (RL(p)->sem.step.spec.axis == alg_desc ||
                  RL(p)->sem.step.spec.axis == alg_desc_s) &&
-                RL(p)->sem.step.spec.kind == node_kind_elem &&
-                PFqname_ns_wildcard (RL(p)->sem.step.spec.qname) &&
-                PFqname_loc_wildcard (RL(p)->sem.step.spec.qname) &&
+                ((RL(p)->sem.step.spec.kind == node_kind_elem &&
+                  PFqname_ns_wildcard (RL(p)->sem.step.spec.qname) &&
+                  PFqname_loc_wildcard (RL(p)->sem.step.spec.qname)) ||
+                 RL(p)->sem.step.spec.kind == node_kind_node) &&
                 RLR(p)->kind == la_roots &&
                 RLRL(p)->kind == la_doc_tbl &&
                 RL(p)->sem.step.item == RLRL(p)->sem.doc_tbl.res) {


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to