Update of /cvsroot/monetdb/pathfinder/compiler/algebra/opt
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv22867/algebra/opt
Modified Files:
Tag: Feb2009
opt_monetxq.c
Log Message:
-- 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.1.2.3
retrieving revision 1.1.2.4
diff -u -d -r1.1.2.3 -r1.1.2.4
--- opt_monetxq.c 6 Feb 2009 16:10:43 -0000 1.1.2.3
+++ opt_monetxq.c 17 Feb 2009 16:12:27 -0000 1.1.2.4
@@ -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