Merge lp:~zorba-coders/zorba/markos-scratch into lp:zorba

Proposed by Markos Zaharioudakis
Status: Merged
Approved by: Markos Zaharioudakis
Approved revision: 11164
Merged at revision: 11539
Proposed branch: lp:~zorba-coders/zorba/markos-scratch
Merge into: lp:zorba
Diff against target: 84 lines (+44/-1)
4 files modified
ChangeLog (+2/-0)
src/compiler/rewriter/tools/dataflow_annotations.cpp (+3/-1)
test/rbkt/Queries/zorba/index/auto_idx_01.xq (+20/-0)
test/rbkt/Queries/zorba/index/auto_idx_01.xqlib (+19/-0)
To merge this branch: bzr merge lp:~zorba-coders/zorba/markos-scratch
Reviewer Review Type Date Requested Status
Markos Zaharioudakis Approve
Review via email: mp+171159@code.launchpad.net

Commit message

No node ordering/distinct required for self axis.

Description of the change

No node ordering/distinct required for self axis.

To post a comment you must log in.
Revision history for this message
Markos Zaharioudakis (markos-za) :
review: Approve
Revision history for this message
Markos Zaharioudakis (markos-za) :
review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job markos-scratch-2013-06-24T20-08-54.829Z is finished. The final status was:

All tests succeeded!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ChangeLog'
2--- ChangeLog 2013-06-24 08:15:37 +0000
3+++ ChangeLog 2013-06-24 19:47:27 +0000
4@@ -19,6 +19,7 @@
5 * Optimized switch expression
6 * Optimized implementation of function caching and removed the restriction
7 on the return type.
8+ * No node ordering/distinct required for self axis.
9
10 Bug Fixes/Other Changes:
11 * Fixed bug #1117952 (Improve XML error output format)
12@@ -46,6 +47,7 @@
13 of general flwor)
14 * Fixed bug #1188281 (casting to xs:anySimpleType not allowed)
15 * jn:members function takes item()* as aparameter (instead of item())
16+ * Fixed bug #1188095 (do correct normalization for fn:string-length()))
17 * jn:keys function takes item()* as aparameter (instead of item())
18 * Fixed bug #1189996 (Relocate some public API headers to util)
19 * Object/array navigation allows item()* as the type of the input sequence
20
21=== modified file 'src/compiler/rewriter/tools/dataflow_annotations.cpp'
22--- src/compiler/rewriter/tools/dataflow_annotations.cpp 2013-06-15 02:57:08 +0000
23+++ src/compiler/rewriter/tools/dataflow_annotations.cpp 2013-06-24 19:47:27 +0000
24@@ -578,7 +578,9 @@
25 if (axis == axis_kind_following || axis == axis_kind_following_sibling)
26 num_following_axes++;
27
28- if (axis != axis_kind_child && axis != axis_kind_attribute)
29+ if (axis != axis_kind_child &&
30+ axis != axis_kind_attribute &&
31+ axis != axis_kind_self)
32 {
33 if (only_child_axes && i == num_steps - 1 && num_desc_axes == 1)
34 {
35
36=== added file 'test/rbkt/ExpQueryResults/zorba/index/auto_idx_01.xml.res'
37=== added file 'test/rbkt/Queries/zorba/index/auto_idx_01.xq'
38--- test/rbkt/Queries/zorba/index/auto_idx_01.xq 1970-01-01 00:00:00 +0000
39+++ test/rbkt/Queries/zorba/index/auto_idx_01.xq 2013-06-24 19:47:27 +0000
40@@ -0,0 +1,20 @@
41+
42+import module namespace ddl =
43+"http://www.zorba-xquery.com/modules/store/static/collections/ddl";
44+
45+import module namespace dml =
46+"http://www.zorba-xquery.com/modules/store/static/collections/dml";
47+
48+import module namespace iddl =
49+"http://www.zorba-xquery.com/modules/store/static/indexes/ddl";
50+
51+import module namespace idml =
52+"http://www.zorba-xquery.com/modules/store/static/indexes/dml";
53+
54+import module namespace upd="www.upd_01.com" at "auto_idx_01.xqlib";
55+
56+
57+ddl:create(xs:QName("upd:auctions"));
58+
59+iddl:create(xs:QName("upd:PersonId"));
60+
61
62=== added file 'test/rbkt/Queries/zorba/index/auto_idx_01.xqlib'
63--- test/rbkt/Queries/zorba/index/auto_idx_01.xqlib 1970-01-01 00:00:00 +0000
64+++ test/rbkt/Queries/zorba/index/auto_idx_01.xqlib 2013-06-24 19:47:27 +0000
65@@ -0,0 +1,19 @@
66+
67+module namespace upd = "www.upd_01.com";
68+
69+import module namespace ddl =
70+"http://www.zorba-xquery.com/modules/store/static/collections/ddl";
71+
72+import module namespace dml =
73+"http://www.zorba-xquery.com/modules/store/static/collections/dml";
74+
75+import module namespace iddl =
76+"http://www.zorba-xquery.com/modules/store/static/indexes/ddl";
77+
78+declare namespace an = "http://www.zorba-xquery.com/annotations";
79+
80+declare collection upd:auctions as node()*;
81+
82+declare %an:unique %an:automatic index upd:PersonId
83+on nodes dml:collection(xs:QName("upd:auctions"))/self::person
84+by xs:string(./@id) as xs:string;

Subscribers

People subscribed via source and target branches