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

Modified Files:
        opt_monetxq.c 
Log Message:
propagated changes of Tuesday Feb 17 2009 - Wednesday Feb 18 2009
from the Feb2009 branch to the development trunk

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2009/02/17 - tsheyar: compiler/algebra/opt/opt_monetxq.c,1.1.2.4
-- Restrict the path reversal pattern to paths starting with '//*'.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


U opt_monetxq.c
Index: opt_monetxq.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/algebra/opt/opt_monetxq.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- opt_monetxq.c       9 Feb 2009 08:30:06 -0000       1.2
+++ opt_monetxq.c       17 Feb 2009 23:45:52 -0000      1.3
@@ -109,9 +109,13 @@
                 R(p)->kind == la_project &&
                 R(p)->sem.proj.items[0].new == p->sem.step.item &&
                 R(p)->sem.proj.items[0].old == RL(p)->sem.step.item_res &&
+                /* check for a '//element(*)' step */
                 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) &&
                 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