Merge lp:~zorba-coders/zorba/bug923686 into lp:zorba
- bug923686
- Merge into trunk
Status: | Merged |
---|---|
Approved by: | Markos Zaharioudakis |
Approved revision: | 11004 |
Merged at revision: | 11063 |
Proposed branch: | lp:~zorba-coders/zorba/bug923686 |
Merge into: | lp:zorba |
Diff against target: |
3857 lines (+856/-407) 97 files modified
ChangeLog (+3/-0) include/zorba/dynamic_context.h (+38/-3) include/zorba/pregenerated/diagnostic_list.h (+8/-0) modules/com/zorba-xquery/www/modules/pregenerated/errors.xq (+16/-0) src/api/dynamiccontextimpl.cpp (+130/-0) src/api/dynamiccontextimpl.h (+12/-0) src/api/staticcontextimpl.cpp (+8/-4) src/api/xqueryimpl.cpp (+7/-3) src/compiler/translator/translator.cpp (+31/-21) src/context/dynamic_context.h (+3/-0) src/context/static_context.cpp (+7/-7) src/diagnostics/diagnostic_en.xml (+16/-0) src/diagnostics/pregenerated/diagnostic_list.cpp (+12/-0) src/diagnostics/pregenerated/dict_en.cpp (+4/-0) test/api/CMakeLists.txt (+1/-0) test/api/test_dynamic_context.cpp (+186/-0) test/api/userdefined_uri_resolution.cpp (+2/-0) test/rbkt/ExpCompilerResults/IterPlan/zorba/collections/count_dynamic_zorba_collection.iter (+3/-3) test/rbkt/ExpCompilerResults/IterPlan/zorba/collections/count_static_zorba_collection.iter (+9/-9) test/rbkt/ExpCompilerResults/IterPlan/zorba/collections/count_w3c_collection.iter (+3/-3) test/rbkt/ExpCompilerResults/IterPlan/zorba/dblp/q0.iter (+11/-11) test/rbkt/ExpCompilerResults/IterPlan/zorba/hashjoins/gary1.iter (+10/-10) test/rbkt/ExpCompilerResults/IterPlan/zorba/hashjoins/idx5.iter (+9/-9) test/rbkt/ExpCompilerResults/IterPlan/zorba/hashjoins/no_idx1.iter (+5/-5) test/rbkt/ExpCompilerResults/IterPlan/zorba/misc/hoist4.iter (+3/-3) test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/dataguide-c.iter (+16/-16) test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/dataguide-nc.iter (+16/-16) test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/dataguide2-c.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/dataguide2-nc.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/dblp-q0.iter (+11/-11) test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/hashjoin-gary1.iter (+10/-10) test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/path17.iter (+8/-8) test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q1.iter (+7/-7) test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q10.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q11.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q12.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q13.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q14.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q15.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q16.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q17.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q18.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q19.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q2.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q20.iter (+15/-15) test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q3.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q4.iter (+12/-12) test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q5.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q6.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q7.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q8.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q9.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/udfs1.iter (+4/-4) test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/hoist01.iter (+5/-5) test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/pos_pred11.iter (+7/-7) test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/pos_pred12.iter (+8/-8) test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/pos_pred13.iter (+5/-5) test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/pos_pred2.iter (+3/-3) test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/pos_pred3.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/pos_pred7.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/pos_pred8.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/pos_pred9.iter (+1/-1) test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/positioned-access.iter (+4/-4) test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/var_inline_01.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/var_inline_03.iter (+4/-4) test/rbkt/ExpCompilerResults/IterPlan/zorba/paths/path13.iter (+3/-3) test/rbkt/ExpCompilerResults/IterPlan/zorba/paths/path17.iter (+8/-8) test/rbkt/ExpCompilerResults/IterPlan/zorba/paths/path_pred4.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/udf/udf1.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/windowing/q10.iter (+10/-10) test/rbkt/ExpCompilerResults/IterPlan/zorba/windowing/q4.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/windowing/q9.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q1.iter (+7/-7) test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q10.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q11.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q12.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q13.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q14.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q15.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q16.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q17.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q18.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q19.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q2.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q20.iter (+15/-15) test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q3.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q4.iter (+12/-12) test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q5.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q6.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q7.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q8.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q9.iter (+2/-2) test/rbkt/ExpCompilerResults/IterPlan/zorba/xray/ppm_10.iter (+32/-32) test/rbkt/ExpQueryResults/zorba/introspection/introsp-vars-1.xml.res (+1/-2) test/rbkt/ExpQueryResults/zorba/introspection/introsp-vars-3.xml.res (+1/-2) test/rbkt/Queries/zorba/introspection/introsp-vars-1.xq (+3/-1) test/unit/cxx_api_changes.cpp (+3/-0) |
To merge this branch: | bzr merge lp:~zorba-coders/zorba/bug923686 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Markos Zaharioudakis | Approve | ||
Review via email: mp+124531@code.launchpad.net |
Commit message
Fixes so context position and context size can be set.
Description of the change
Fixes so context position and context size can be set.
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue starting for merge proposal.
Log at: http://
Zorba Build Bot (zorba-buildbot) wrote : | # |
The attempt to merge lp:~zorba-coders/zorba/bug923686 into lp:zorba failed. Below is the output from the failed tests.
CMake Error at /home/ceej/
Validation queue job bug923686-2012-09-
final status was:
Undetermined, probably an error - please email <email address hidden> with the
number of this job!
Error in read script: /home/ceej/
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue starting for merge proposal.
Log at: http://
Zorba Build Bot (zorba-buildbot) wrote : | # |
The attempt to merge lp:~zorba-coders/zorba/bug923686 into lp:zorba failed. Below is the output from the failed tests.
CMake Error at /home/ceej/
Validation queue job bug923686-2012-09-
final status was:
Undetermined, probably an error - please email <email address hidden> with the
number of this job!
Error in read script: /home/ceej/
Chris Hillery (ceejatec) wrote : | # |
Stupid Launchpad problem with the email module. Trying again.
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue starting for merge proposal.
Log at: http://
Zorba Build Bot (zorba-buildbot) wrote : | # |
The attempt to merge lp:~zorba-coders/zorba/bug923686 into lp:zorba failed. Below is the output from the failed tests.
CMake Error at /home/ceej/
Validation queue job bug923686-2012-09-
final status was:
75 tests did not succeed - changes not commited.
Error in read script: /home/ceej/
Markos Zaharioudakis (markos-za) wrote : | # |
Rodolfo, you will need to fix all the "iter" tests that fail. The tests fail because the var ids assigned to variables have changed.
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue starting for merge proposal.
Log at: http://
Zorba Build Bot (zorba-buildbot) wrote : | # |
The attempt to merge lp:~zorba-coders/zorba/bug923686 into lp:zorba failed. Below is the output from the failed tests.
CMake Error at /home/ceej/
Validation queue job bug923686-2012-09-
final status was:
2 tests did not succeed - changes not commited.
Error in read script: /home/ceej/
Markos Zaharioudakis (markos-za) : | # |
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue starting for merge proposal.
Log at: http://
Zorba Build Bot (zorba-buildbot) wrote : | # |
The attempt to merge lp:~zorba-coders/zorba/bug923686 into lp:zorba failed. Below is the output from the failed tests.
CMake Error at /home/ceej/
Validation queue job bug923686-2012-09-
final status was:
5 tests did not succeed - changes not commited.
Error in read script: /home/ceej/
- 11003. By Markos Zaharioudakis
-
merge from trunk
- 11004. By Markos Zaharioudakis
-
fixed error codes and iter tests
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue starting for merge proposal.
Log at: http://
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue job bug923686-2012-09-
All tests succeeded!
Preview Diff
1 | === modified file 'ChangeLog' |
2 | --- ChangeLog 2012-09-26 11:14:30 +0000 |
3 | +++ ChangeLog 2012-09-26 13:28:22 +0000 |
4 | @@ -39,6 +39,9 @@ |
5 | * Fixed bug #1034990 (text serialization with jsoniq fails) |
6 | * Fixed bugs #899364 and 899363 (throw XQST0103 in case of non-distinct window |
7 | variables) |
8 | + * Fixed bug #923686 (implicitly declare global context size and context position |
9 | + variables in main module and provide api function to assign values to these |
10 | + variables) |
11 | * Fixed bug #899366 (enforce the type declaration of a window variable) |
12 | * Now using native UUID libraries. |
13 | * Fixed bug #1034942 (improper variable inlining inside general flwor expr) |
14 | |
15 | === modified file 'include/zorba/dynamic_context.h' |
16 | --- include/zorba/dynamic_context.h 2012-09-17 00:36:37 +0000 |
17 | +++ include/zorba/dynamic_context.h 2012-09-26 13:28:22 +0000 |
18 | @@ -138,7 +138,25 @@ |
19 | * @throw ZorbaException if an error occured (e.g. the given Item is not valid). |
20 | */ |
21 | virtual bool |
22 | - setContextItem ( const Item& aItem ) = 0; |
23 | + setContextItem(const Item& aItem) = 0; |
24 | + |
25 | + /** \brief Defines the context item size. |
26 | + * |
27 | + * @param aItem the Item that is used as value for the context item size. |
28 | + * @return true if the context item size was set, false otherwise. |
29 | + * @throw ZorbaException if an error occured (e.g. the given Item is not valid). |
30 | + */ |
31 | + virtual bool |
32 | + setContextSize(const Item& aItem) = 0; |
33 | + |
34 | + /** \brief Defines the context item position. |
35 | + * |
36 | + * @param aItem the Item that is used as value for the context item position. |
37 | + * @return true if the context item position was set, false otherwise. |
38 | + * @throw ZorbaException if an error occured (e.g. the given Item is not valid). |
39 | + */ |
40 | + virtual bool |
41 | + setContextPosition(const Item& aItem) = 0; |
42 | |
43 | /** \brief Returns the current value of the context item. |
44 | * |
45 | @@ -147,7 +165,25 @@ |
46 | * @throw ZorbaException if an error occured. |
47 | */ |
48 | virtual bool |
49 | - getContextItem( Item& aItem ) const = 0; |
50 | + getContextItem(Item& aItem) const = 0; |
51 | + |
52 | + /** \brief Returns the current value of the context item size. |
53 | + * |
54 | + * @param aItem an Item representing the current value of the context item size. |
55 | + * @return true if the variable has been retrieved successfully, false otherwise. |
56 | + * @throw ZorbaException if an error occured. |
57 | + */ |
58 | + virtual bool |
59 | + getContextSize(Item& aItem) const = 0; |
60 | + |
61 | + /** \brief Returns the current value of the context item position. |
62 | + * |
63 | + * @param aItem an Item representing the current value of the context item position. |
64 | + * @return true if the variable has been retrieved successfully, false otherwise. |
65 | + * @throw ZorbaException if an error occured. |
66 | + */ |
67 | + virtual bool |
68 | + getContextPosition(Item& aItem) const = 0; |
69 | |
70 | /** \brief Defines the value of the current date time that can be accessed by the |
71 | * fn:current-dateTime() function at the time the query is executed. |
72 | @@ -280,7 +316,6 @@ |
73 | /** \brief Destructor |
74 | */ |
75 | virtual ~DynamicContext( ) {} |
76 | - |
77 | }; |
78 | |
79 | } /* namespace zorba */ |
80 | |
81 | === modified file 'include/zorba/pregenerated/diagnostic_list.h' |
82 | --- include/zorba/pregenerated/diagnostic_list.h 2012-09-20 18:20:33 +0000 |
83 | +++ include/zorba/pregenerated/diagnostic_list.h 2012-09-26 13:28:22 +0000 |
84 | @@ -498,6 +498,14 @@ |
85 | |
86 | extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0021_ITEM_TO_LOAD_IS_NOT_NODE; |
87 | |
88 | +extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0023_NON_ATOMIC_CONTEXT_SIZE_VALUE; |
89 | + |
90 | +extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0024_NON_INTEGER_CONTEXT_SIZE_VALUE; |
91 | + |
92 | +extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0025_NON_ATOMIC_CONTEXT_POSITION_VALUE; |
93 | + |
94 | +extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0026_NON_INTEGER_CONTEXT_POSITION_VALUE; |
95 | + |
96 | extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0027_CANNOT_UPDATE_DCTX_WITH_ITERATORS; |
97 | |
98 | extern ZORBA_DLL_PUBLIC ZorbaErrorCode ZAPI0028_INVALID_NODE_URI; |
99 | |
100 | === modified file 'modules/com/zorba-xquery/www/modules/pregenerated/errors.xq' |
101 | --- modules/com/zorba-xquery/www/modules/pregenerated/errors.xq 2012-09-18 16:29:31 +0000 |
102 | +++ modules/com/zorba-xquery/www/modules/pregenerated/errors.xq 2012-09-26 13:28:22 +0000 |
103 | @@ -282,6 +282,22 @@ |
104 | |
105 | (:~ |
106 | :) |
107 | +declare variable $zerr:ZAPI0023 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0023"); |
108 | + |
109 | +(:~ |
110 | +:) |
111 | +declare variable $zerr:ZAPI0024 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0024"); |
112 | + |
113 | +(:~ |
114 | +:) |
115 | +declare variable $zerr:ZAPI0025 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0025"); |
116 | + |
117 | +(:~ |
118 | +:) |
119 | +declare variable $zerr:ZAPI0026 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0026"); |
120 | + |
121 | +(:~ |
122 | +:) |
123 | declare variable $zerr:ZAPI0027 as xs:QName := fn:QName($zerr:NS, "zerr:ZAPI0027"); |
124 | |
125 | (:~ |
126 | |
127 | === modified file 'src/api/dynamiccontextimpl.cpp' |
128 | --- src/api/dynamiccontextimpl.cpp 2012-09-17 00:36:37 +0000 |
129 | +++ src/api/dynamiccontextimpl.cpp 2012-09-26 13:28:22 +0000 |
130 | @@ -401,6 +401,96 @@ |
131 | /****************************************************************************//** |
132 | |
133 | ********************************************************************************/ |
134 | +bool DynamicContextImpl::setContextSize(const Item& inValue) |
135 | +{ |
136 | + try |
137 | + { |
138 | + store::Item* value = Unmarshaller::getInternalItem(inValue); |
139 | + |
140 | + if (!value->isAtomic()) |
141 | + { |
142 | + throw ZORBA_EXCEPTION(zerr::ZAPI0023_NON_ATOMIC_CONTEXT_SIZE_VALUE); |
143 | + } |
144 | + |
145 | + store::SchemaTypeCode typeCode = value->getTypeCode(); |
146 | + |
147 | + if (typeCode < store::XS_INTEGER || typeCode > store::XS_POSITIVE_INTEGER) |
148 | + { |
149 | + xqtref_t type = GENV_TYPESYSTEM.create_value_type(value); |
150 | + |
151 | + throw ZORBA_EXCEPTION(zerr::ZAPI0024_NON_INTEGER_CONTEXT_SIZE_VALUE, |
152 | + ERROR_PARAMS(type->toSchemaString())); |
153 | + } |
154 | + } |
155 | + catch (ZorbaException const& e) |
156 | + { |
157 | + ZorbaImpl::notifyError(theQuery->theDiagnosticHandler, e); |
158 | + return false; |
159 | + } |
160 | + catch (std::exception const& e) |
161 | + { |
162 | + ZorbaImpl::notifyError(theQuery->theDiagnosticHandler, e.what()); |
163 | + return false; |
164 | + } |
165 | + catch (...) |
166 | + { |
167 | + ZorbaImpl::notifyError(theQuery->theDiagnosticHandler); |
168 | + return false; |
169 | + } |
170 | + |
171 | + String varName = Unmarshaller::newString(static_context::DOT_SIZE_VAR_NAME); |
172 | + return setVariable(varName, inValue); |
173 | +} |
174 | + |
175 | + |
176 | +/****************************************************************************//** |
177 | + |
178 | +********************************************************************************/ |
179 | +bool DynamicContextImpl::setContextPosition(const Item& inValue) |
180 | +{ |
181 | + try |
182 | + { |
183 | + store::Item* value = Unmarshaller::getInternalItem(inValue); |
184 | + |
185 | + if (!value->isAtomic()) |
186 | + { |
187 | + throw ZORBA_EXCEPTION(zerr::ZAPI0025_NON_ATOMIC_CONTEXT_POSITION_VALUE); |
188 | + } |
189 | + |
190 | + store::SchemaTypeCode typeCode = value->getTypeCode(); |
191 | + |
192 | + if (typeCode < store::XS_INTEGER || typeCode > store::XS_POSITIVE_INTEGER) |
193 | + { |
194 | + xqtref_t type = GENV_TYPESYSTEM.create_value_type(value); |
195 | + |
196 | + throw ZORBA_EXCEPTION(zerr::ZAPI0026_NON_INTEGER_CONTEXT_POSITION_VALUE, |
197 | + ERROR_PARAMS(type->toSchemaString())); |
198 | + } |
199 | + } |
200 | + catch (ZorbaException const& e) |
201 | + { |
202 | + ZorbaImpl::notifyError(theQuery->theDiagnosticHandler, e); |
203 | + return false; |
204 | + } |
205 | + catch (std::exception const& e) |
206 | + { |
207 | + ZorbaImpl::notifyError(theQuery->theDiagnosticHandler, e.what()); |
208 | + return false; |
209 | + } |
210 | + catch (...) |
211 | + { |
212 | + ZorbaImpl::notifyError(theQuery->theDiagnosticHandler); |
213 | + return false; |
214 | + } |
215 | + |
216 | + String varName = Unmarshaller::newString(static_context::DOT_POS_VAR_NAME); |
217 | + return setVariable(varName, inValue); |
218 | +} |
219 | + |
220 | + |
221 | +/****************************************************************************//** |
222 | + |
223 | +********************************************************************************/ |
224 | bool DynamicContextImpl::getContextItem(Item& outValue) const |
225 | { |
226 | String varName; |
227 | @@ -420,6 +510,44 @@ |
228 | /****************************************************************************//** |
229 | |
230 | ********************************************************************************/ |
231 | +bool DynamicContextImpl::getContextSize(Item& outValue) const |
232 | +{ |
233 | + String varName; |
234 | + |
235 | + ZORBA_DCTX_TRY |
236 | + { |
237 | + varName = Unmarshaller::newString(static_context::DOT_SIZE_VAR_NAME); |
238 | + } |
239 | + ZORBA_DCTX_CATCH |
240 | + |
241 | + Iterator_t dummy; |
242 | + |
243 | + return getVariable("", varName, outValue, dummy); |
244 | +} |
245 | + |
246 | + |
247 | +/****************************************************************************//** |
248 | + |
249 | +********************************************************************************/ |
250 | +bool DynamicContextImpl::getContextPosition(Item& outValue) const |
251 | +{ |
252 | + String varName; |
253 | + |
254 | + ZORBA_DCTX_TRY |
255 | + { |
256 | + varName = Unmarshaller::newString(static_context::DOT_POS_VAR_NAME); |
257 | + } |
258 | + ZORBA_DCTX_CATCH |
259 | + |
260 | + Iterator_t dummy; |
261 | + |
262 | + return getVariable("", varName, outValue, dummy); |
263 | +} |
264 | + |
265 | + |
266 | +/****************************************************************************//** |
267 | + |
268 | +********************************************************************************/ |
269 | bool DynamicContextImpl::setCurrentDateTime(const Item& aDateTimeItem) |
270 | { |
271 | ZORBA_DCTX_TRY |
272 | @@ -646,5 +774,7 @@ |
273 | return false; |
274 | } |
275 | |
276 | + |
277 | + |
278 | } // namespace zorba |
279 | /* vim:set et sw=2 ts=2: */ |
280 | |
281 | === modified file 'src/api/dynamiccontextimpl.h' |
282 | --- src/api/dynamiccontextimpl.h 2012-09-17 00:36:37 +0000 |
283 | +++ src/api/dynamiccontextimpl.h 2012-09-26 13:28:22 +0000 |
284 | @@ -109,10 +109,22 @@ |
285 | virtual bool |
286 | setContextItem(const Item& inValue); |
287 | |
288 | + virtual bool |
289 | + setContextSize(const Item& inValue); |
290 | + |
291 | + virtual bool |
292 | + setContextPosition(const Item& inValue); |
293 | + |
294 | virtual bool |
295 | getContextItem(Item& outValue) const; |
296 | |
297 | virtual bool |
298 | + getContextSize(Item& outValue) const; |
299 | + |
300 | + virtual bool |
301 | + getContextPosition(Item& outValue) const; |
302 | + |
303 | + virtual bool |
304 | setCurrentDateTime(const Item& aDateTimeItem); |
305 | |
306 | virtual Item |
307 | |
308 | === modified file 'src/api/staticcontextimpl.cpp' |
309 | --- src/api/staticcontextimpl.cpp 2012-09-18 21:23:14 +0000 |
310 | +++ src/api/staticcontextimpl.cpp 2012-09-26 13:28:22 +0000 |
311 | @@ -74,7 +74,7 @@ |
312 | StaticContextImpl::StaticContextImpl(DiagnosticHandler* aDiagnosticHandler) |
313 | : |
314 | theCompilerCB(NULL), |
315 | - theMaxVarId(2), |
316 | + theMaxVarId(dynamic_context::MAX_IDVARS_RESERVED), |
317 | theDiagnosticHandler(aDiagnosticHandler), |
318 | theUserDiagnosticHandler(true), |
319 | theCollectionMgr(0) |
320 | @@ -100,7 +100,7 @@ |
321 | : |
322 | theCtx(aCtx), |
323 | theCompilerCB(NULL), |
324 | - theMaxVarId(2), |
325 | + theMaxVarId(dynamic_context::MAX_IDVARS_RESERVED), |
326 | theDiagnosticHandler(aDiagnosticHandler), |
327 | theUserDiagnosticHandler(true), |
328 | theCollectionMgr(0) |
329 | @@ -123,7 +123,7 @@ |
330 | : |
331 | StaticContext(), |
332 | theCompilerCB(NULL), |
333 | - theMaxVarId(2), |
334 | + theMaxVarId(dynamic_context::MAX_IDVARS_RESERVED), |
335 | theDiagnosticHandler(aStaticContext.theDiagnosticHandler), |
336 | theUserDiagnosticHandler(aStaticContext.theUserDiagnosticHandler), |
337 | theCollectionMgr(0) |
338 | @@ -1552,7 +1552,11 @@ |
339 | |
340 | for (; ite != end; ++ite) |
341 | { |
342 | - if ((*ite)->getName()->getStringValue() == static_context::DOT_VAR_NAME) |
343 | + zstring varName = (*ite)->getName()->getStringValue(); |
344 | + |
345 | + if (varName == static_context::DOT_VAR_NAME || |
346 | + varName == static_context::DOT_POS_VAR_NAME || |
347 | + varName == static_context::DOT_SIZE_VAR_NAME) |
348 | continue; |
349 | |
350 | extVars.push_back((*ite)->getName()); |
351 | |
352 | === modified file 'src/api/xqueryimpl.cpp' |
353 | --- src/api/xqueryimpl.cpp 2012-09-18 21:23:14 +0000 |
354 | +++ src/api/xqueryimpl.cpp 2012-09-26 13:28:22 +0000 |
355 | @@ -433,7 +433,7 @@ |
356 | |
357 | // 0 is reserved as an invalid var id, and 1 is taken by the context item |
358 | // in the main module. |
359 | - ulong nextVarId = 2; |
360 | + ulong nextVarId = dynamic_context::MAX_IDVARS_RESERVED; |
361 | |
362 | doCompile(lQueryStream, aHints, true, nextVarId); |
363 | } |
364 | @@ -457,7 +457,7 @@ |
365 | |
366 | // 0 is reserved as an invalid var id, and 1 is taken by the context item |
367 | // in the main module. |
368 | - ulong nextVarId = 2; |
369 | + ulong nextVarId = dynamic_context::MAX_IDVARS_RESERVED; |
370 | |
371 | doCompile(aQuery, aHints, true, nextVarId); |
372 | } |
373 | @@ -796,7 +796,11 @@ |
374 | |
375 | for(; varIte != varEnd; ++varIte) |
376 | { |
377 | - if ((*varIte)->getName()->getStringValue() == static_context::DOT_VAR_NAME) |
378 | + zstring varName = (*varIte)->getName()->getStringValue(); |
379 | + |
380 | + if (varName == static_context::DOT_VAR_NAME || |
381 | + varName == static_context::DOT_POS_VAR_NAME || |
382 | + varName == static_context::DOT_SIZE_VAR_NAME) |
383 | continue; |
384 | |
385 | extVars.push_back((*varIte)->getName()); |
386 | |
387 | === modified file 'src/compiler/translator/translator.cpp' |
388 | --- src/compiler/translator/translator.cpp 2012-09-26 11:14:30 +0000 |
389 | +++ src/compiler/translator/translator.cpp 2012-09-26 13:28:22 +0000 |
390 | @@ -79,6 +79,7 @@ |
391 | #include "context/static_context.h" |
392 | #include "context/static_context_consts.h" |
393 | #include "context/namespace_context.h" |
394 | +#include "context/dynamic_context.h" |
395 | |
396 | #include "types/node_test.h" |
397 | #include "types/casting.h" |
398 | @@ -741,7 +742,6 @@ |
399 | return theRootTranslator->theDotPosVarName; |
400 | } |
401 | |
402 | - |
403 | const QName* getLastIdxVarName() const |
404 | { |
405 | return theRootTranslator->theLastIdxVarName; |
406 | @@ -2026,28 +2026,25 @@ |
407 | |
408 | if (initExpr != NULL && varType != NULL && !b.is_extern()) |
409 | { |
410 | - initExpr = theExprManager->create_treat_expr(theRootSctx, |
411 | - loc, |
412 | - initExpr, |
413 | - varType, |
414 | - TreatIterator::TYPE_MATCH); |
415 | + initExpr = theExprManager-> |
416 | + create_treat_expr(theRootSctx, loc, initExpr, varType, TreatIterator::TYPE_MATCH); |
417 | } |
418 | |
419 | - expr* declExpr = |
420 | - theExprManager->create_var_decl_expr(theRootSctx, loc, varExpr, initExpr); |
421 | + expr* declExpr = theExprManager-> |
422 | + create_var_decl_expr(theRootSctx, loc, varExpr, initExpr); |
423 | |
424 | stmts.push_back(declExpr); |
425 | |
426 | // check type for vars that are external |
427 | if (varType != NULL && b.is_extern()) |
428 | { |
429 | - expr* getExpr = theExprManager->create_fo_expr(theRootSctx, loc, varGet, varExpr); |
430 | - |
431 | - stmts.push_back(theExprManager->create_treat_expr(theRootSctx, |
432 | - loc, |
433 | - getExpr, |
434 | - varType, |
435 | - TreatIterator::TYPE_MATCH)); |
436 | + expr* getExpr = theExprManager-> |
437 | + create_fo_expr(theRootSctx, loc, varGet, varExpr); |
438 | + |
439 | + expr* treatExpr = theExprManager-> |
440 | + create_treat_expr(theRootSctx, loc, getExpr, varType, TreatIterator::TYPE_MATCH); |
441 | + |
442 | + stmts.push_back(treatExpr); |
443 | } |
444 | } |
445 | |
446 | @@ -2390,13 +2387,26 @@ |
447 | // However, do not create a ver_decl expr for it, because this will create a |
448 | // treat_as expr as well, so the ctx item will always appear as being used, |
449 | // and as a result it will always have to be set. |
450 | - var_expr* var = bind_var(loc, |
451 | - DOT_VARNAME, |
452 | - var_expr::prolog_var, |
453 | - theSctx->get_context_item_type()); |
454 | + var_expr* var1 = bind_var(loc, |
455 | + DOT_VARNAME, |
456 | + var_expr::prolog_var, |
457 | + theSctx->get_context_item_type()); |
458 | + var_expr* var2 = bind_var(loc, |
459 | + DOT_POS_VARNAME, |
460 | + var_expr::prolog_var, |
461 | + theRTM.INTEGER_TYPE_ONE); |
462 | + var_expr* var3 = bind_var(loc, |
463 | + LAST_IDX_VARNAME, |
464 | + var_expr::prolog_var, |
465 | + theRTM.INTEGER_TYPE_ONE); |
466 | |
467 | - var->set_external(true); |
468 | - var->set_unique_id(1); |
469 | + var1->set_external(true); |
470 | + var2->set_external(true); |
471 | + var3->set_external(true); |
472 | + |
473 | + var1->set_unique_id(dynamic_context::IDVAR_CONTEXT_ITEM); |
474 | + var2->set_unique_id(dynamic_context::IDVAR_CONTEXT_ITEM_POSITION); |
475 | + var3->set_unique_id(dynamic_context::IDVAR_CONTEXT_ITEM_SIZE); |
476 | |
477 | //GlobalBinding b(var, NULL, true); |
478 | //declare_var(b, theModulesInfo->theInitExprs); |
479 | |
480 | === modified file 'src/context/dynamic_context.h' |
481 | --- src/context/dynamic_context.h 2012-09-17 00:36:37 +0000 |
482 | +++ src/context/dynamic_context.h 2012-09-26 13:28:22 +0000 |
483 | @@ -54,6 +54,9 @@ |
484 | friend class DebugIterator; |
485 | |
486 | public: |
487 | + |
488 | + static enum ID_VARS { IDVAR_CONTEXT_ITEM=1, IDVAR_CONTEXT_ITEM_POSITION, IDVAR_CONTEXT_ITEM_SIZE, MAX_IDVARS_RESERVED } IDVARS_RESERVED; |
489 | + |
490 | struct VarValue |
491 | { |
492 | typedef enum |
493 | |
494 | === modified file 'src/context/static_context.cpp' |
495 | --- src/context/static_context.cpp 2012-09-25 15:03:46 +0000 |
496 | +++ src/context/static_context.cpp 2012-09-26 13:28:22 +0000 |
497 | @@ -314,13 +314,13 @@ |
498 | ********************************************************************************/ |
499 | |
500 | const zstring |
501 | -static_context::DOT_VAR_NAME = "$$dot"; |
502 | - |
503 | -const zstring |
504 | -static_context::DOT_POS_VAR_NAME = "$$pos"; |
505 | - |
506 | -const zstring |
507 | -static_context::DOT_SIZE_VAR_NAME = "$$last-idx"; |
508 | +static_context::DOT_VAR_NAME = "$$context-item"; |
509 | + |
510 | +const zstring |
511 | +static_context::DOT_POS_VAR_NAME = "$$context-position"; |
512 | + |
513 | +const zstring |
514 | +static_context::DOT_SIZE_VAR_NAME = "$$context-size"; |
515 | |
516 | const char* |
517 | static_context::W3C_NS_PREFIX = "http://www.w3.org/"; |
518 | |
519 | === modified file 'src/diagnostics/diagnostic_en.xml' |
520 | --- src/diagnostics/diagnostic_en.xml 2012-09-26 11:14:30 +0000 |
521 | +++ src/diagnostics/diagnostic_en.xml 2012-09-26 13:28:22 +0000 |
522 | @@ -1923,6 +1923,22 @@ |
523 | <value>"$1": item to load is not a node</value> |
524 | </diagnostic> |
525 | |
526 | + <diagnostic code="ZAPI0023" name="NON_ATOMIC_CONTEXT_SIZE_VALUE"> |
527 | + <value>non-atomic value can not be assigned to the context size</value> |
528 | + </diagnostic> |
529 | + |
530 | + <diagnostic code="ZAPI0024" name="NON_INTEGER_CONTEXT_SIZE_VALUE"> |
531 | + <value>"$1": wrong type for context size value (must be integer)</value> |
532 | + </diagnostic> |
533 | + |
534 | + <diagnostic code="ZAPI0025" name="NON_ATOMIC_CONTEXT_POSITION_VALUE"> |
535 | + <value>non-atomic value can not be assigned to the context position</value> |
536 | + </diagnostic> |
537 | + |
538 | + <diagnostic code="ZAPI0026" name="NON_INTEGER_CONTEXT_POSITION_VALUE"> |
539 | + <value>"$1": wrong type for context position value (must be integer)</value> |
540 | + </diagnostic> |
541 | + |
542 | <diagnostic code="ZAPI0027" name="CANNOT_UPDATE_DCTX_WITH_ITERATORS"> |
543 | <value>cannot update dynamic context with iterators</value> |
544 | </diagnostic> |
545 | |
546 | === modified file 'src/diagnostics/pregenerated/diagnostic_list.cpp' |
547 | --- src/diagnostics/pregenerated/diagnostic_list.cpp 2012-09-20 18:20:33 +0000 |
548 | +++ src/diagnostics/pregenerated/diagnostic_list.cpp 2012-09-26 13:28:22 +0000 |
549 | @@ -726,6 +726,18 @@ |
550 | ZorbaErrorCode ZAPI0021_ITEM_TO_LOAD_IS_NOT_NODE( "ZAPI0021" ); |
551 | |
552 | |
553 | +ZorbaErrorCode ZAPI0023_NON_ATOMIC_CONTEXT_SIZE_VALUE( "ZAPI0023" ); |
554 | + |
555 | + |
556 | +ZorbaErrorCode ZAPI0024_NON_INTEGER_CONTEXT_SIZE_VALUE( "ZAPI0024" ); |
557 | + |
558 | + |
559 | +ZorbaErrorCode ZAPI0025_NON_ATOMIC_CONTEXT_POSITION_VALUE( "ZAPI0025" ); |
560 | + |
561 | + |
562 | +ZorbaErrorCode ZAPI0026_NON_INTEGER_CONTEXT_POSITION_VALUE( "ZAPI0026" ); |
563 | + |
564 | + |
565 | ZorbaErrorCode ZAPI0027_CANNOT_UPDATE_DCTX_WITH_ITERATORS( "ZAPI0027" ); |
566 | |
567 | |
568 | |
569 | === modified file 'src/diagnostics/pregenerated/dict_en.cpp' |
570 | --- src/diagnostics/pregenerated/dict_en.cpp 2012-09-26 11:14:30 +0000 |
571 | +++ src/diagnostics/pregenerated/dict_en.cpp 2012-09-26 13:28:22 +0000 |
572 | @@ -308,6 +308,10 @@ |
573 | { "ZAPI0019", "\"$1\": external module already registered" }, |
574 | { "ZAPI0020", "\"$1\": document already exists in store" }, |
575 | { "ZAPI0021", "\"$1\": item to load is not a node" }, |
576 | + { "ZAPI0023", "non-atomic value can not be assigned to the context size" }, |
577 | + { "ZAPI0024", "\"$1\": wrong type for context size value (must be integer)" }, |
578 | + { "ZAPI0025", "non-atomic value can not be assigned to the context position" }, |
579 | + { "ZAPI0026", "\"$1\": wrong type for context position value (must be integer)" }, |
580 | { "ZAPI0027", "cannot update dynamic context with iterators" }, |
581 | { "ZAPI0028", "\"$1\": invalid node URI" }, |
582 | { "ZAPI0029", "\"$1\": reference already present in the store" }, |
583 | |
584 | === modified file 'test/api/CMakeLists.txt' |
585 | --- test/api/CMakeLists.txt 2012-09-17 00:36:37 +0000 |
586 | +++ test/api/CMakeLists.txt 2012-09-26 13:28:22 +0000 |
587 | @@ -17,6 +17,7 @@ |
588 | itemfactory.cpp |
589 | xmldatamanager.cpp |
590 | test_static_context.cpp |
591 | + test_dynamic_context.cpp |
592 | serializer.cpp |
593 | annotations.cpp |
594 | external_function_errors.cpp |
595 | |
596 | === added file 'test/api/test_dynamic_context.cpp' |
597 | --- test/api/test_dynamic_context.cpp 1970-01-01 00:00:00 +0000 |
598 | +++ test/api/test_dynamic_context.cpp 2012-09-26 13:28:22 +0000 |
599 | @@ -0,0 +1,186 @@ |
600 | +/* |
601 | + * Copyright 2006-2008 The FLWOR Foundation. |
602 | + * |
603 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
604 | + * you may not use this file except in compliance with the License. |
605 | + * You may obtain a copy of the License at |
606 | + * |
607 | + * http://www.apache.org/licenses/LICENSE-2.0 |
608 | + * |
609 | + * Unless required by applicable law or agreed to in writing, software |
610 | + * distributed under the License is distributed on an "AS IS" BASIS, |
611 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
612 | + * See the License for the specific language governing permissions and |
613 | + * limitations under the License. |
614 | + */ |
615 | + |
616 | +#include <iostream> |
617 | +#include <fstream> |
618 | +#include <sstream> |
619 | + |
620 | +#include <zorba/zorba.h> |
621 | +#include <zorba/store_manager.h> |
622 | +#include <zorba/uri_resolvers.h> |
623 | +#include <zorba/xquery_exception.h> |
624 | +#include <zorba/diagnostic_list.h> |
625 | + |
626 | + |
627 | +using namespace zorba; |
628 | + |
629 | +bool |
630 | +context_test_1(Zorba* aZorba) |
631 | +{ |
632 | + XQuery_t lQuery = aZorba->compileQuery("."); |
633 | + |
634 | + ItemFactory* lFactory = aZorba->getItemFactory(); |
635 | + Item lItem = lFactory->createInteger(4); |
636 | + |
637 | + DynamicContext* lDCtx = lQuery->getDynamicContext(); |
638 | + bool result; |
639 | + |
640 | + try |
641 | + { |
642 | + result = lDCtx->setContextPosition(lItem); |
643 | + Item rItem; |
644 | + result = lDCtx->getContextPosition(rItem); |
645 | + if (rItem.getStringValue()!="4") |
646 | + result = false; |
647 | + } |
648 | + catch (ZorbaException &e) |
649 | + { |
650 | + std::cerr << e << std::endl; |
651 | + return false; |
652 | + } |
653 | + |
654 | + return result; |
655 | +} |
656 | + |
657 | + |
658 | +bool |
659 | +context_test_2(Zorba* aZorba) |
660 | +{ |
661 | + XQuery_t lQuery = aZorba->compileQuery("."); |
662 | + |
663 | + ItemFactory* lFactory = aZorba->getItemFactory(); |
664 | + Item lItem = lFactory->createInteger(4); |
665 | + |
666 | + DynamicContext* lDCtx = lQuery->getDynamicContext(); |
667 | + bool result; |
668 | + |
669 | + try |
670 | + { |
671 | + result = lDCtx->setContextSize(lItem); |
672 | + Item rItem; |
673 | + result = lDCtx->getContextSize(rItem); |
674 | + if (rItem.getStringValue()!="4") |
675 | + result = false; |
676 | + } |
677 | + catch (ZorbaException &e) |
678 | + { |
679 | + std::cerr << e << std::endl; |
680 | + return false; |
681 | + } |
682 | + |
683 | + return result; |
684 | +} |
685 | + |
686 | + |
687 | +bool |
688 | +context_test_3(Zorba* aZorba) |
689 | +{ |
690 | + XQuery_t lQuery = aZorba->compileQuery("declare variable $x := 2; $x + position()"); |
691 | + |
692 | + ItemFactory* lFactory = aZorba->getItemFactory(); |
693 | + |
694 | + Item lItem = lFactory->createInteger(4); |
695 | + |
696 | + DynamicContext* lDCtx = lQuery->getDynamicContext(); |
697 | + |
698 | + try |
699 | + { |
700 | + (void)lDCtx->setContextPosition(lItem); |
701 | + |
702 | + std::ostringstream stream; |
703 | + stream << lQuery; |
704 | + |
705 | + std::string result = stream.str(); |
706 | + |
707 | + if (result != "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n6") |
708 | + { |
709 | + std::cout << result << std::endl; |
710 | + return false; |
711 | + } |
712 | + } |
713 | + catch (ZorbaException &e) |
714 | + { |
715 | + std::cerr << e << std::endl; |
716 | + return false; |
717 | + } |
718 | + |
719 | + return true; |
720 | +} |
721 | + |
722 | + |
723 | +bool |
724 | +context_test_4(Zorba* aZorba) |
725 | +{ |
726 | + XQuery_t lQuery = aZorba->compileQuery("."); |
727 | + |
728 | + ItemFactory* lFactory = aZorba->getItemFactory(); |
729 | + Item lItem = lFactory->createString("4"); |
730 | + |
731 | + DynamicContext* lDCtx = lQuery->getDynamicContext(); |
732 | + bool result; |
733 | + |
734 | + try |
735 | + { |
736 | + result = lDCtx->setContextSize(lItem); |
737 | + } |
738 | + catch (ZorbaException& e) |
739 | + { |
740 | + std::cerr << e << std::endl; |
741 | + |
742 | + if (e.diagnostic() == zerr::ZAPI0024_NON_INTEGER_CONTEXT_SIZE_VALUE) |
743 | + { |
744 | + return true; |
745 | + } |
746 | + |
747 | + return false; |
748 | + } |
749 | + |
750 | + return result; |
751 | +} |
752 | + |
753 | + |
754 | +int |
755 | +test_dynamic_context(int argc, char* argv[]) |
756 | +{ |
757 | + void* lStore = zorba::StoreManager::getStore(); |
758 | + |
759 | + Zorba* lZorba = Zorba::getInstance(lStore); |
760 | + bool res = false; |
761 | + |
762 | + std::cout << "executing Context Position test 1" << std::endl; |
763 | + res = context_test_1(lZorba); |
764 | + if (!res) return 1; |
765 | + std::cout << "Passed" << std::endl; |
766 | + |
767 | + std::cout << "executing Context Size test 2" << std::endl; |
768 | + res = context_test_2(lZorba); |
769 | + if (!res) return 1; |
770 | + std::cout << "Passed" << std::endl; |
771 | + |
772 | + std::cout << "executing Context Size test 3" << std::endl; |
773 | + res = context_test_3(lZorba); |
774 | + if (!res) return 1; |
775 | + std::cout << "Passed" << std::endl; |
776 | + |
777 | + std::cout << "executing Context Size test 4" << std::endl; |
778 | + res = context_test_4(lZorba); |
779 | + if (!res) return 1; |
780 | + std::cout << "Passed" << std::endl; |
781 | + |
782 | + lZorba->shutdown(); |
783 | + zorba::StoreManager::shutdownStore(lStore); |
784 | + return 0; |
785 | +} |
786 | |
787 | === modified file 'test/api/userdefined_uri_resolution.cpp' |
788 | --- test/api/userdefined_uri_resolution.cpp 2012-09-17 00:36:37 +0000 |
789 | +++ test/api/userdefined_uri_resolution.cpp 2012-09-26 13:28:22 +0000 |
790 | @@ -262,6 +262,7 @@ |
791 | return false; |
792 | } |
793 | |
794 | + |
795 | bool test_deny_internal_module_access(Zorba* aZorba) |
796 | { |
797 | StaticContext_t lContext = aZorba->createStaticContext(); |
798 | @@ -285,6 +286,7 @@ |
799 | return false; |
800 | } |
801 | |
802 | + |
803 | bool test_deny_external_module_access(Zorba* aZorba) |
804 | { |
805 | StaticContext_t lContext = aZorba->createStaticContext(); |
806 | |
807 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/collections/count_dynamic_zorba_collection.iter' |
808 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/collections/count_dynamic_zorba_collection.iter 2012-09-17 00:36:37 +0000 |
809 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/collections/count_dynamic_zorba_collection.iter 2012-09-26 13:28:22 +0000 |
810 | @@ -1,6 +1,6 @@ |
811 | Iterator tree for main query: |
812 | <SequentialIterator> |
813 | - <CtxVarDeclareIterator varid="2" varname="coll"> |
814 | + <CtxVarDeclareIterator varid="4" varname="coll"> |
815 | <SingletonIterator value="xs:QName(,,collection)"/> |
816 | </CtxVarDeclareIterator> |
817 | <SequentialIterator> |
818 | @@ -8,7 +8,7 @@ |
819 | <ZorbaCreateCollectionIterator> |
820 | <PromoteIterator type="xs:QName"> |
821 | <FnDataIterator> |
822 | - <CtxVarIterator varid="2" varname="coll" varkind="global"/> |
823 | + <CtxVarIterator varid="4" varname="coll" varkind="global"/> |
824 | </FnDataIterator> |
825 | </PromoteIterator> |
826 | </ZorbaCreateCollectionIterator> |
827 | @@ -16,7 +16,7 @@ |
828 | <CountCollectionIterator> |
829 | <PromoteIterator type="xs:QName"> |
830 | <FnDataIterator> |
831 | - <CtxVarIterator varid="2" varname="coll" varkind="global"/> |
832 | + <CtxVarIterator varid="4" varname="coll" varkind="global"/> |
833 | </FnDataIterator> |
834 | </PromoteIterator> |
835 | </CountCollectionIterator> |
836 | |
837 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/collections/count_static_zorba_collection.iter' |
838 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/collections/count_static_zorba_collection.iter 2012-09-17 00:36:37 +0000 |
839 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/collections/count_static_zorba_collection.iter 2012-09-26 13:28:22 +0000 |
840 | @@ -1,24 +1,24 @@ |
841 | Iterator tree for main query: |
842 | <SequentialIterator> |
843 | - <CtxVarDeclareIterator varid="2" varname="ns:collection_1"> |
844 | + <CtxVarDeclareIterator varid="4" varname="ns:collection_1"> |
845 | <SingletonIterator value="xs:QName(http://example.org/datamodule/,ns,collection_1)"/> |
846 | </CtxVarDeclareIterator> |
847 | - <CtxVarDeclareIterator varid="3" varname="ns:collection_2"> |
848 | + <CtxVarDeclareIterator varid="5" varname="ns:collection_2"> |
849 | <SingletonIterator value="xs:QName(http://example.org/datamodule/,ns,collection_2)"/> |
850 | </CtxVarDeclareIterator> |
851 | - <CtxVarDeclareIterator varid="4" varname="ns:http"> |
852 | + <CtxVarDeclareIterator varid="6" varname="ns:http"> |
853 | <SingletonIterator value="xs:QName(http://example.org/datamodule/,ns,http)"/> |
854 | </CtxVarDeclareIterator> |
855 | - <CtxVarDeclareIterator varid="5" varname="ns:test1"> |
856 | + <CtxVarDeclareIterator varid="7" varname="ns:test1"> |
857 | <SingletonIterator value="xs:QName(http://example.org/datamodule/,ns,test1)"/> |
858 | </CtxVarDeclareIterator> |
859 | - <CtxVarDeclareIterator varid="6" varname="ns:test2"> |
860 | + <CtxVarDeclareIterator varid="8" varname="ns:test2"> |
861 | <SingletonIterator value="xs:QName(http://example.org/datamodule/,ns,test2)"/> |
862 | </CtxVarDeclareIterator> |
863 | - <CtxVarDeclareIterator varid="7" varname="ns:test3"> |
864 | + <CtxVarDeclareIterator varid="9" varname="ns:test3"> |
865 | <SingletonIterator value="xs:QName(http://example.org/datamodule/,ns,test3)"/> |
866 | </CtxVarDeclareIterator> |
867 | - <CtxVarDeclareIterator varid="8" varname="coll"> |
868 | + <CtxVarDeclareIterator varid="10" varname="coll"> |
869 | <SingletonIterator value="xs:QName(http://example.org/datamodule/,ns,test1)"/> |
870 | </CtxVarDeclareIterator> |
871 | <SequentialIterator> |
872 | @@ -26,7 +26,7 @@ |
873 | <ZorbaCreateCollectionIterator> |
874 | <PromoteIterator type="xs:QName"> |
875 | <FnDataIterator> |
876 | - <CtxVarIterator varid="8" varname="coll" varkind="global"/> |
877 | + <CtxVarIterator varid="10" varname="coll" varkind="global"/> |
878 | </FnDataIterator> |
879 | </PromoteIterator> |
880 | </ZorbaCreateCollectionIterator> |
881 | @@ -34,7 +34,7 @@ |
882 | <CountCollectionIterator> |
883 | <PromoteIterator type="xs:QName"> |
884 | <FnDataIterator> |
885 | - <CtxVarIterator varid="8" varname="coll" varkind="global"/> |
886 | + <CtxVarIterator varid="10" varname="coll" varkind="global"/> |
887 | </FnDataIterator> |
888 | </PromoteIterator> |
889 | </CountCollectionIterator> |
890 | |
891 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/collections/count_w3c_collection.iter' |
892 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/collections/count_w3c_collection.iter 2012-09-17 00:36:37 +0000 |
893 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/collections/count_w3c_collection.iter 2012-09-26 13:28:22 +0000 |
894 | @@ -1,6 +1,6 @@ |
895 | Iterator tree for main query: |
896 | <SequentialIterator> |
897 | - <CtxVarDeclareIterator varid="2" varname="coll"> |
898 | + <CtxVarDeclareIterator varid="4" varname="coll"> |
899 | <SingletonIterator value="xs:string(http://www.zorba-xquery.com/collection)"/> |
900 | </CtxVarDeclareIterator> |
901 | <SequentialIterator> |
902 | @@ -8,7 +8,7 @@ |
903 | <UDFunctionCallIterator> |
904 | <PromoteIterator type="xs:string"> |
905 | <FnDataIterator> |
906 | - <CtxVarIterator varid="2" varname="coll" varkind="global"/> |
907 | + <CtxVarIterator varid="4" varname="coll" varkind="global"/> |
908 | </FnDataIterator> |
909 | </PromoteIterator> |
910 | </UDFunctionCallIterator> |
911 | @@ -16,7 +16,7 @@ |
912 | <CountCollectionIterator> |
913 | <PromoteIterator type="xs:string"> |
914 | <FnDataIterator> |
915 | - <CtxVarIterator varid="2" varname="coll" varkind="global"/> |
916 | + <CtxVarIterator varid="4" varname="coll" varkind="global"/> |
917 | </FnDataIterator> |
918 | </PromoteIterator> |
919 | </CountCollectionIterator> |
920 | |
921 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/dblp/q0.iter' |
922 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/dblp/q0.iter 2012-09-17 00:36:37 +0000 |
923 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/dblp/q0.iter 2012-09-26 13:28:22 +0000 |
924 | @@ -14,13 +14,13 @@ |
925 | |
926 | Iterator tree for main query: |
927 | <SequentialIterator> |
928 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
929 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
930 | <flwor::FLWORIterator> |
931 | <LetVariable name="doc" materialize="true"> |
932 | <FnDocIterator> |
933 | <PromoteIterator type="xs:string"> |
934 | <FnDataIterator> |
935 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
936 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
937 | </FnDataIterator> |
938 | </PromoteIterator> |
939 | </FnDocIterator> |
940 | @@ -103,21 +103,21 @@ |
941 | <EnclosedIterator attr_cont="false"> |
942 | <FnCountIterator> |
943 | <flwor::FLWORIterator> |
944 | - <ForVariable name="$$dot"> |
945 | + <ForVariable name="$$context-item"> |
946 | <UnhoistIterator> |
947 | <LetVarIterator varname="$$opt_temp_0"/> |
948 | </UnhoistIterator> |
949 | </ForVariable> |
950 | - <ForVariable name="$$dot"> |
951 | + <ForVariable name="$$context-item"> |
952 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,inproceedings)" typename="*" nill allowed="0"> |
953 | - <ForVarIterator varname="$$dot"/> |
954 | + <ForVarIterator varname="$$context-item"/> |
955 | </ChildAxisIterator> |
956 | </ForVariable> |
957 | <WhereClause> |
958 | <CompareIterator> |
959 | <FnDataIterator> |
960 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,booktitle)" typename="*" nill allowed="0"> |
961 | - <ForVarIterator varname="$$dot"/> |
962 | + <ForVarIterator varname="$$context-item"/> |
963 | </ChildAxisIterator> |
964 | </FnDataIterator> |
965 | <ForVarIterator varname="conference"/> |
966 | @@ -138,28 +138,28 @@ |
967 | <FnDataIterator> |
968 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,author)" typename="*" nill allowed="0"> |
969 | <flwor::FLWORIterator> |
970 | - <ForVariable name="$$dot"> |
971 | + <ForVariable name="$$context-item"> |
972 | <UnhoistIterator> |
973 | <LetVarIterator varname="$$opt_temp_1"/> |
974 | </UnhoistIterator> |
975 | </ForVariable> |
976 | - <ForVariable name="$$dot"> |
977 | + <ForVariable name="$$context-item"> |
978 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,inproceedings)" typename="*" nill allowed="0"> |
979 | - <ForVarIterator varname="$$dot"/> |
980 | + <ForVarIterator varname="$$context-item"/> |
981 | </ChildAxisIterator> |
982 | </ForVariable> |
983 | <WhereClause> |
984 | <CompareIterator> |
985 | <FnDataIterator> |
986 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,booktitle)" typename="*" nill allowed="0"> |
987 | - <ForVarIterator varname="$$dot"/> |
988 | + <ForVarIterator varname="$$context-item"/> |
989 | </ChildAxisIterator> |
990 | </FnDataIterator> |
991 | <ForVarIterator varname="conference"/> |
992 | </CompareIterator> |
993 | </WhereClause> |
994 | <ReturnClause> |
995 | - <ForVarIterator varname="$$dot"/> |
996 | + <ForVarIterator varname="$$context-item"/> |
997 | </ReturnClause> |
998 | </flwor::FLWORIterator> |
999 | </ChildAxisIterator> |
1000 | |
1001 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/hashjoins/gary1.iter' |
1002 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/hashjoins/gary1.iter 2012-09-17 00:36:37 +0000 |
1003 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/hashjoins/gary1.iter 2012-09-26 13:28:22 +0000 |
1004 | @@ -27,30 +27,30 @@ |
1005 | <LetVariable name="y" materialize="true"> |
1006 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,data)" typename="*" nill allowed="0"> |
1007 | <flwor::FLWORIterator> |
1008 | - <ForVariable name="$$dot"> |
1009 | + <ForVariable name="$$context-item"> |
1010 | <FnDocIterator> |
1011 | <SingletonIterator value="xs:string(min_ic1980.xml)"/> |
1012 | </FnDocIterator> |
1013 | </ForVariable> |
1014 | - <ForVariable name="$$dot"> |
1015 | + <ForVariable name="$$context-item"> |
1016 | <flwor::FLWORIterator> |
1017 | - <ForVariable name="$$dot"> |
1018 | + <ForVariable name="$$context-item"> |
1019 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,ipeds)" typename="*" nill allowed="0"> |
1020 | - <ForVarIterator varname="$$dot"/> |
1021 | + <ForVarIterator varname="$$context-item"/> |
1022 | </ChildAxisIterator> |
1023 | </ForVariable> |
1024 | <WhereClause> |
1025 | <CompareIterator> |
1026 | <FnDataIterator> |
1027 | <AttributeAxisIterator test kind="match_name_test" qname="xs:QName(,,year)" typename="*" nill allowed="0"> |
1028 | - <ForVarIterator varname="$$dot"/> |
1029 | + <ForVarIterator varname="$$context-item"/> |
1030 | </AttributeAxisIterator> |
1031 | </FnDataIterator> |
1032 | <SingletonIterator value="xs:integer(1980)"/> |
1033 | </CompareIterator> |
1034 | </WhereClause> |
1035 | <ReturnClause> |
1036 | - <ForVarIterator varname="$$dot"/> |
1037 | + <ForVarIterator varname="$$context-item"/> |
1038 | </ReturnClause> |
1039 | </flwor::FLWORIterator> |
1040 | </ForVariable> |
1041 | @@ -58,14 +58,14 @@ |
1042 | <CompareIterator> |
1043 | <FnDataIterator> |
1044 | <AttributeAxisIterator test kind="match_name_test" qname="xs:QName(,,file)" typename="*" nill allowed="0"> |
1045 | - <ForVarIterator varname="$$dot"/> |
1046 | + <ForVarIterator varname="$$context-item"/> |
1047 | </AttributeAxisIterator> |
1048 | </FnDataIterator> |
1049 | <SingletonIterator value="xs:string(ic1980)"/> |
1050 | </CompareIterator> |
1051 | </WhereClause> |
1052 | <ReturnClause> |
1053 | - <ForVarIterator varname="$$dot"/> |
1054 | + <ForVarIterator varname="$$context-item"/> |
1055 | </ReturnClause> |
1056 | </flwor::FLWORIterator> |
1057 | </ChildAxisIterator> |
1058 | @@ -108,7 +108,7 @@ |
1059 | <HoistIterator> |
1060 | <AttributeAxisIterator test kind="match_name_test" qname="*" typename="*" nill allowed="0"> |
1061 | <flwor::FLWORIterator> |
1062 | - <ForVariable name="$$dot"> |
1063 | + <ForVariable name="$$context-item"> |
1064 | <NodeSortIterator distinct="true" ascending="true"> |
1065 | <ProbeIndexPointGeneralIterator> |
1066 | <SingletonIterator value="xs:QName(,,tempIndex0)"/> |
1067 | @@ -119,7 +119,7 @@ |
1068 | </NodeSortIterator> |
1069 | </ForVariable> |
1070 | <ReturnClause> |
1071 | - <ForVarIterator varname="$$dot"/> |
1072 | + <ForVarIterator varname="$$context-item"/> |
1073 | </ReturnClause> |
1074 | </flwor::FLWORIterator> |
1075 | </AttributeAxisIterator> |
1076 | |
1077 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/hashjoins/idx5.iter' |
1078 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/hashjoins/idx5.iter 2012-09-17 00:36:37 +0000 |
1079 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/hashjoins/idx5.iter 2012-09-26 13:28:22 +0000 |
1080 | @@ -14,7 +14,7 @@ |
1081 | |
1082 | Iterator tree for main query: |
1083 | <SequentialIterator> |
1084 | - <CtxVarDeclareIterator varid="2" varname="tests"> |
1085 | + <CtxVarDeclareIterator varid="4" varname="tests"> |
1086 | <ElementIterator copyInputNodes="false"> |
1087 | <SingletonIterator value="xs:QName(,,tests)"/> |
1088 | </ElementIterator> |
1089 | @@ -23,7 +23,7 @@ |
1090 | <CreateInternalIndexIterator name="xs:QName(,,tempIndex0)"> |
1091 | <flwor::FLWORIterator> |
1092 | <ForVariable name="$$opt_temp_2"> |
1093 | - <CtxVarIterator varid="2" varname="tests" varkind="global"/> |
1094 | + <CtxVarIterator varid="4" varname="tests" varkind="global"/> |
1095 | </ForVariable> |
1096 | <ReturnClause> |
1097 | <ValueIndexEntryBuilderIterator> |
1098 | @@ -47,26 +47,26 @@ |
1099 | <LetVariable name="$$opt_temp_1" materialize="true"> |
1100 | <HoistIterator> |
1101 | <flwor::FLWORIterator> |
1102 | - <ForVariable name="$$dot"> |
1103 | - <CtxVarIterator varid="2" varname="tests" varkind="global"/> |
1104 | + <ForVariable name="$$context-item"> |
1105 | + <CtxVarIterator varid="4" varname="tests" varkind="global"/> |
1106 | </ForVariable> |
1107 | <WhereClause> |
1108 | <FnBooleanIterator> |
1109 | <AttributeAxisIterator test kind="match_name_test" qname="xs:QName(,,name)" typename="*" nill allowed="0"> |
1110 | <TreatIterator type="[NodeXQType anyNode content=[XQType ANY_TYPE_KIND*]]" quant="*"> |
1111 | - <ForVarIterator varname="$$dot"/> |
1112 | + <ForVarIterator varname="$$context-item"/> |
1113 | </TreatIterator> |
1114 | </AttributeAxisIterator> |
1115 | </FnBooleanIterator> |
1116 | </WhereClause> |
1117 | <ReturnClause> |
1118 | - <ForVarIterator varname="$$dot"/> |
1119 | + <ForVarIterator varname="$$context-item"/> |
1120 | </ReturnClause> |
1121 | </flwor::FLWORIterator> |
1122 | </HoistIterator> |
1123 | </LetVariable> |
1124 | <ForVariable name="test"> |
1125 | - <CtxVarIterator varid="2" varname="tests" varkind="global"/> |
1126 | + <CtxVarIterator varid="4" varname="tests" varkind="global"/> |
1127 | </ForVariable> |
1128 | <LetVariable name="$$opt_temp_0" materialize="true"> |
1129 | <HoistIterator> |
1130 | @@ -85,7 +85,7 @@ |
1131 | </LetVariable> |
1132 | <LetVariable name="test_old" materialize="true"> |
1133 | <flwor::FLWORIterator> |
1134 | - <ForVariable name="$$dot"> |
1135 | + <ForVariable name="$$context-item"> |
1136 | <ProbeIndexPointValueIterator> |
1137 | <SingletonIterator value="xs:QName(,,tempIndex0)"/> |
1138 | <UnhoistIterator> |
1139 | @@ -94,7 +94,7 @@ |
1140 | </ProbeIndexPointValueIterator> |
1141 | </ForVariable> |
1142 | <ReturnClause> |
1143 | - <ForVarIterator varname="$$dot"/> |
1144 | + <ForVarIterator varname="$$context-item"/> |
1145 | </ReturnClause> |
1146 | </flwor::FLWORIterator> |
1147 | </LetVariable> |
1148 | |
1149 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/hashjoins/no_idx1.iter' |
1150 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/hashjoins/no_idx1.iter 2012-09-17 00:36:37 +0000 |
1151 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/hashjoins/no_idx1.iter 2012-09-26 13:28:22 +0000 |
1152 | @@ -32,21 +32,21 @@ |
1153 | </NodeNameIterator> |
1154 | </FnStringIterator> |
1155 | <flwor::FLWORIterator> |
1156 | - <ForVariable name="$$dot"> |
1157 | + <ForVariable name="$$context-item"> |
1158 | <ParentAxisIterator test kind="match_anykind_test" qname="*" typename="*" nill allowed="0"> |
1159 | <ForVarIterator varname="ancestor"/> |
1160 | </ParentAxisIterator> |
1161 | </ForVariable> |
1162 | - <ForVariable name="$$dot"> |
1163 | + <ForVariable name="$$context-item"> |
1164 | <ChildAxisIterator test kind="match_name_test" qname="*" typename="*" nill allowed="0"> |
1165 | - <ForVarIterator varname="$$dot"/> |
1166 | + <ForVarIterator varname="$$context-item"/> |
1167 | </ChildAxisIterator> |
1168 | </ForVariable> |
1169 | <WhereClause> |
1170 | <TypedValueCompareIterator_STRING> |
1171 | <FnStringIterator> |
1172 | <NodeNameIterator> |
1173 | - <ForVarIterator varname="$$dot"/> |
1174 | + <ForVarIterator varname="$$context-item"/> |
1175 | </NodeNameIterator> |
1176 | </FnStringIterator> |
1177 | <UnhoistIterator> |
1178 | @@ -55,7 +55,7 @@ |
1179 | </TypedValueCompareIterator_STRING> |
1180 | </WhereClause> |
1181 | <ReturnClause> |
1182 | - <ForVarIterator varname="$$dot"/> |
1183 | + <ForVarIterator varname="$$context-item"/> |
1184 | </ReturnClause> |
1185 | </flwor::FLWORIterator> |
1186 | </FnConcatIterator> |
1187 | |
1188 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/misc/hoist4.iter' |
1189 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/misc/hoist4.iter 2012-09-17 00:36:37 +0000 |
1190 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/misc/hoist4.iter 2012-09-26 13:28:22 +0000 |
1191 | @@ -56,7 +56,7 @@ |
1192 | </ForVariable> |
1193 | <ReturnClause> |
1194 | <SequentialIterator> |
1195 | - <CtxVarDeclareIterator varid="2" varname="x"> |
1196 | + <CtxVarDeclareIterator varid="4" varname="x"> |
1197 | <AttributeAxisIterator test kind="match_name_test" qname="xs:QName(,,id)" typename="*" nill allowed="0"> |
1198 | <ForVarIterator varname="b"/> |
1199 | </AttributeAxisIterator> |
1200 | @@ -76,7 +76,7 @@ |
1201 | <SingletonIterator value="xs:integer(2)"/> |
1202 | <PromoteIterator type="xs:anyAtomicType"> |
1203 | <FnDataIterator> |
1204 | - <CtxVarIterator varid="2" varname="x" varkind="local"/> |
1205 | + <CtxVarIterator varid="4" varname="x" varkind="local"/> |
1206 | </FnDataIterator> |
1207 | </PromoteIterator> |
1208 | </GenericArithIterator_MultiplyOperation> |
1209 | @@ -88,7 +88,7 @@ |
1210 | <SingletonIterator value="xs:integer(1)"/> |
1211 | <PromoteIterator type="xs:integer"> |
1212 | <FnDataIterator> |
1213 | - <CtxVarIterator varid="2" varname="x" varkind="local"/> |
1214 | + <CtxVarIterator varid="4" varname="x" varkind="local"/> |
1215 | </FnDataIterator> |
1216 | </PromoteIterator> |
1217 | </OpToIterator> |
1218 | |
1219 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/dataguide-c.iter' |
1220 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/dataguide-c.iter 2012-09-20 13:49:19 +0000 |
1221 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/dataguide-c.iter 2012-09-26 13:28:22 +0000 |
1222 | @@ -25,16 +25,16 @@ |
1223 | |
1224 | Iterator tree for main query: |
1225 | <SequentialIterator> |
1226 | - <CtxVarDeclareIterator varid="2" varname="co"> |
1227 | + <CtxVarDeclareIterator varid="4" varname="co"> |
1228 | <SingletonIterator value="xs:integer(0)"/> |
1229 | </CtxVarDeclareIterator> |
1230 | - <CtxVarDeclareIterator varid="3" varname="map1"> |
1231 | + <CtxVarDeclareIterator varid="5" varname="map1"> |
1232 | <SingletonIterator value="xs:QName(,,map-co)"/> |
1233 | </CtxVarDeclareIterator> |
1234 | - <CtxVarDeclareIterator varid="4" varname="str"> |
1235 | + <CtxVarDeclareIterator varid="6" varname="str"> |
1236 | <SingletonIterator value="xs:QName(http://www.w3.org/2001/XMLSchema,,string)"/> |
1237 | </CtxVarDeclareIterator> |
1238 | - <CtxVarDeclareIterator varid="5" varname="input"> |
1239 | + <CtxVarDeclareIterator varid="7" varname="input"> |
1240 | <ChildAxisIterator test kind="match_name_test" qname="*" typename="*" nill allowed="0"> |
1241 | <ChildAxisIterator test kind="match_name_test" qname="*" typename="*" nill allowed="0"> |
1242 | <FnDocIterator> |
1243 | @@ -48,20 +48,20 @@ |
1244 | <MapCreateIterator> |
1245 | <PromoteIterator type="xs:QName"> |
1246 | <FnDataIterator> |
1247 | - <CtxVarIterator varid="3" varname="map1" varkind="global"/> |
1248 | + <CtxVarIterator varid="5" varname="map1" varkind="global"/> |
1249 | </FnDataIterator> |
1250 | </PromoteIterator> |
1251 | <PromoteIterator type="xs:QName"> |
1252 | <FnDataIterator> |
1253 | - <CtxVarIterator varid="4" varname="str" varkind="global"/> |
1254 | + <CtxVarIterator varid="6" varname="str" varkind="global"/> |
1255 | </FnDataIterator> |
1256 | </PromoteIterator> |
1257 | </MapCreateIterator> |
1258 | </ApplyIterator> |
1259 | - <CtxVarDeclareIterator varid="6" varname="DG"> |
1260 | + <CtxVarDeclareIterator varid="8" varname="DG"> |
1261 | <UDFunctionCallIterator> |
1262 | <TreatIterator quant="+"> |
1263 | - <CtxVarIterator varid="5" varname="input" varkind="global"/> |
1264 | + <CtxVarIterator varid="7" varname="input" varkind="global"/> |
1265 | </TreatIterator> |
1266 | <SingletonIterator value="xs:boolean(true)"/> |
1267 | <SingletonIterator value="xs:string()"/> |
1268 | @@ -71,12 +71,12 @@ |
1269 | <MapDestroyIterator> |
1270 | <PromoteIterator type="xs:QName"> |
1271 | <FnDataIterator> |
1272 | - <CtxVarIterator varid="3" varname="map1" varkind="global"/> |
1273 | + <CtxVarIterator varid="5" varname="map1" varkind="global"/> |
1274 | </FnDataIterator> |
1275 | </PromoteIterator> |
1276 | </MapDestroyIterator> |
1277 | </ApplyIterator> |
1278 | - <CtxVarIterator varid="6" varname="DG" varkind="local"/> |
1279 | + <CtxVarIterator varid="8" varname="DG" varkind="local"/> |
1280 | </SequentialIterator> |
1281 | </SequentialIterator> |
1282 | |
1283 | @@ -197,7 +197,7 @@ |
1284 | <MapGetIterator> |
1285 | <PromoteIterator type="xs:QName"> |
1286 | <FnDataIterator> |
1287 | - <CtxVarIterator varid="3" varname="map1" varkind="global"/> |
1288 | + <CtxVarIterator varid="5" varname="map1" varkind="global"/> |
1289 | </FnDataIterator> |
1290 | </PromoteIterator> |
1291 | <PromoteIterator type="xs:anyAtomicType"> |
1292 | @@ -213,23 +213,23 @@ |
1293 | <CtxVarIterator varid="1" varname="label" varkind="local"/> |
1294 | </FnEmptyIterator> |
1295 | <SequentialIterator> |
1296 | - <CtxVarAssignIterator varid="2" varname="co" varkind="global"> |
1297 | + <CtxVarAssignIterator varid="4" varname="co" varkind="global"> |
1298 | <SpecificNumArithIterator_AddOperation_INTEGER> |
1299 | - <CtxVarIterator varid="2" varname="co" varkind="global"/> |
1300 | + <CtxVarIterator varid="4" varname="co" varkind="global"/> |
1301 | <SingletonIterator value="xs:integer(1)"/> |
1302 | </SpecificNumArithIterator_AddOperation_INTEGER> |
1303 | </CtxVarAssignIterator> |
1304 | <CtxVarAssignIterator varid="1" varname="label" varkind="local"> |
1305 | - <CtxVarIterator varid="2" varname="co" varkind="global"/> |
1306 | + <CtxVarIterator varid="4" varname="co" varkind="global"/> |
1307 | </CtxVarAssignIterator> |
1308 | <ApplyIterator> |
1309 | <MapInsertIterator> |
1310 | <PromoteIterator type="xs:QName"> |
1311 | <FnDataIterator> |
1312 | - <CtxVarIterator varid="3" varname="map1" varkind="global"/> |
1313 | + <CtxVarIterator varid="5" varname="map1" varkind="global"/> |
1314 | </FnDataIterator> |
1315 | </PromoteIterator> |
1316 | - <CtxVarIterator varid="2" varname="co" varkind="global"/> |
1317 | + <CtxVarIterator varid="4" varname="co" varkind="global"/> |
1318 | <PromoteIterator type="xs:anyAtomicType"> |
1319 | <FnDataIterator> |
1320 | <CtxVarIterator varid="4" varname="s2" varkind="local"/> |
1321 | |
1322 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/dataguide-nc.iter' |
1323 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/dataguide-nc.iter 2012-09-20 13:49:19 +0000 |
1324 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/dataguide-nc.iter 2012-09-26 13:28:22 +0000 |
1325 | @@ -25,16 +25,16 @@ |
1326 | |
1327 | Iterator tree for main query: |
1328 | <SequentialIterator> |
1329 | - <CtxVarDeclareIterator varid="2" varname="co"> |
1330 | + <CtxVarDeclareIterator varid="4" varname="co"> |
1331 | <SingletonIterator value="xs:integer(0)"/> |
1332 | </CtxVarDeclareIterator> |
1333 | - <CtxVarDeclareIterator varid="3" varname="map1"> |
1334 | + <CtxVarDeclareIterator varid="5" varname="map1"> |
1335 | <SingletonIterator value="xs:QName(,,map-co)"/> |
1336 | </CtxVarDeclareIterator> |
1337 | - <CtxVarDeclareIterator varid="4" varname="str"> |
1338 | + <CtxVarDeclareIterator varid="6" varname="str"> |
1339 | <SingletonIterator value="xs:QName(http://www.w3.org/2001/XMLSchema,,string)"/> |
1340 | </CtxVarDeclareIterator> |
1341 | - <CtxVarDeclareIterator varid="5" varname="input"> |
1342 | + <CtxVarDeclareIterator varid="7" varname="input"> |
1343 | <ChildAxisIterator test kind="match_name_test" qname="*" typename="*" nill allowed="0"> |
1344 | <ChildAxisIterator test kind="match_name_test" qname="*" typename="*" nill allowed="0"> |
1345 | <FnDocIterator> |
1346 | @@ -48,20 +48,20 @@ |
1347 | <MapCreateIterator> |
1348 | <PromoteIterator type="xs:QName"> |
1349 | <FnDataIterator> |
1350 | - <CtxVarIterator varid="3" varname="map1" varkind="global"/> |
1351 | + <CtxVarIterator varid="5" varname="map1" varkind="global"/> |
1352 | </FnDataIterator> |
1353 | </PromoteIterator> |
1354 | <PromoteIterator type="xs:QName"> |
1355 | <FnDataIterator> |
1356 | - <CtxVarIterator varid="4" varname="str" varkind="global"/> |
1357 | + <CtxVarIterator varid="6" varname="str" varkind="global"/> |
1358 | </FnDataIterator> |
1359 | </PromoteIterator> |
1360 | </MapCreateIterator> |
1361 | </ApplyIterator> |
1362 | - <CtxVarDeclareIterator varid="6" varname="DG"> |
1363 | + <CtxVarDeclareIterator varid="8" varname="DG"> |
1364 | <UDFunctionCallIterator> |
1365 | <TreatIterator quant="+"> |
1366 | - <CtxVarIterator varid="5" varname="input" varkind="global"/> |
1367 | + <CtxVarIterator varid="7" varname="input" varkind="global"/> |
1368 | </TreatIterator> |
1369 | <SingletonIterator value="xs:boolean(true)"/> |
1370 | <SingletonIterator value="xs:string()"/> |
1371 | @@ -71,12 +71,12 @@ |
1372 | <MapDestroyIterator> |
1373 | <PromoteIterator type="xs:QName"> |
1374 | <FnDataIterator> |
1375 | - <CtxVarIterator varid="3" varname="map1" varkind="global"/> |
1376 | + <CtxVarIterator varid="5" varname="map1" varkind="global"/> |
1377 | </FnDataIterator> |
1378 | </PromoteIterator> |
1379 | </MapDestroyIterator> |
1380 | </ApplyIterator> |
1381 | - <CtxVarIterator varid="6" varname="DG" varkind="local"/> |
1382 | + <CtxVarIterator varid="8" varname="DG" varkind="local"/> |
1383 | </SequentialIterator> |
1384 | </SequentialIterator> |
1385 | |
1386 | @@ -197,7 +197,7 @@ |
1387 | <MapGetIterator> |
1388 | <PromoteIterator type="xs:QName"> |
1389 | <FnDataIterator> |
1390 | - <CtxVarIterator varid="3" varname="map1" varkind="global"/> |
1391 | + <CtxVarIterator varid="5" varname="map1" varkind="global"/> |
1392 | </FnDataIterator> |
1393 | </PromoteIterator> |
1394 | <PromoteIterator type="xs:anyAtomicType"> |
1395 | @@ -213,23 +213,23 @@ |
1396 | <CtxVarIterator varid="1" varname="label" varkind="local"/> |
1397 | </FnEmptyIterator> |
1398 | <SequentialIterator> |
1399 | - <CtxVarAssignIterator varid="2" varname="co" varkind="global"> |
1400 | + <CtxVarAssignIterator varid="4" varname="co" varkind="global"> |
1401 | <SpecificNumArithIterator_AddOperation_INTEGER> |
1402 | - <CtxVarIterator varid="2" varname="co" varkind="global"/> |
1403 | + <CtxVarIterator varid="4" varname="co" varkind="global"/> |
1404 | <SingletonIterator value="xs:integer(1)"/> |
1405 | </SpecificNumArithIterator_AddOperation_INTEGER> |
1406 | </CtxVarAssignIterator> |
1407 | <CtxVarAssignIterator varid="1" varname="label" varkind="local"> |
1408 | - <CtxVarIterator varid="2" varname="co" varkind="global"/> |
1409 | + <CtxVarIterator varid="4" varname="co" varkind="global"/> |
1410 | </CtxVarAssignIterator> |
1411 | <ApplyIterator> |
1412 | <MapInsertIterator> |
1413 | <PromoteIterator type="xs:QName"> |
1414 | <FnDataIterator> |
1415 | - <CtxVarIterator varid="3" varname="map1" varkind="global"/> |
1416 | + <CtxVarIterator varid="5" varname="map1" varkind="global"/> |
1417 | </FnDataIterator> |
1418 | </PromoteIterator> |
1419 | - <CtxVarIterator varid="2" varname="co" varkind="global"/> |
1420 | + <CtxVarIterator varid="4" varname="co" varkind="global"/> |
1421 | <PromoteIterator type="xs:anyAtomicType"> |
1422 | <FnDataIterator> |
1423 | <CtxVarIterator varid="4" varname="s2" varkind="local"/> |
1424 | |
1425 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/dataguide2-c.iter' |
1426 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/dataguide2-c.iter 2012-09-20 13:49:19 +0000 |
1427 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/dataguide2-c.iter 2012-09-26 13:28:22 +0000 |
1428 | @@ -1,6 +1,6 @@ |
1429 | Iterator tree for main query: |
1430 | <SequentialIterator> |
1431 | - <CtxVarDeclareIterator varid="2" varname="input"> |
1432 | + <CtxVarDeclareIterator varid="4" varname="input"> |
1433 | <ChildAxisIterator test kind="match_name_test" qname="*" typename="*" nill allowed="0"> |
1434 | <ChildAxisIterator test kind="match_name_test" qname="*" typename="*" nill allowed="0"> |
1435 | <FnDocIterator> |
1436 | @@ -11,7 +11,7 @@ |
1437 | </CtxVarDeclareIterator> |
1438 | <UDFunctionCallIterator> |
1439 | <TreatIterator quant="+"> |
1440 | - <CtxVarIterator varid="2" varname="input" varkind="global"/> |
1441 | + <CtxVarIterator varid="4" varname="input" varkind="global"/> |
1442 | </TreatIterator> |
1443 | </UDFunctionCallIterator> |
1444 | </SequentialIterator> |
1445 | |
1446 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/dataguide2-nc.iter' |
1447 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/dataguide2-nc.iter 2012-09-20 13:49:19 +0000 |
1448 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/dataguide2-nc.iter 2012-09-26 13:28:22 +0000 |
1449 | @@ -1,6 +1,6 @@ |
1450 | Iterator tree for main query: |
1451 | <SequentialIterator> |
1452 | - <CtxVarDeclareIterator varid="2" varname="input"> |
1453 | + <CtxVarDeclareIterator varid="4" varname="input"> |
1454 | <ChildAxisIterator test kind="match_name_test" qname="*" typename="*" nill allowed="0"> |
1455 | <ChildAxisIterator test kind="match_name_test" qname="*" typename="*" nill allowed="0"> |
1456 | <FnDocIterator> |
1457 | @@ -11,7 +11,7 @@ |
1458 | </CtxVarDeclareIterator> |
1459 | <UDFunctionCallIterator> |
1460 | <TreatIterator quant="+"> |
1461 | - <CtxVarIterator varid="2" varname="input" varkind="global"/> |
1462 | + <CtxVarIterator varid="4" varname="input" varkind="global"/> |
1463 | </TreatIterator> |
1464 | </UDFunctionCallIterator> |
1465 | </SequentialIterator> |
1466 | |
1467 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/dblp-q0.iter' |
1468 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/dblp-q0.iter 2012-09-17 00:36:37 +0000 |
1469 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/dblp-q0.iter 2012-09-26 13:28:22 +0000 |
1470 | @@ -14,13 +14,13 @@ |
1471 | |
1472 | Iterator tree for main query: |
1473 | <SequentialIterator> |
1474 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
1475 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
1476 | <flwor::FLWORIterator> |
1477 | <LetVariable name="doc" materialize="true"> |
1478 | <FnDocIterator> |
1479 | <PromoteIterator type="xs:string"> |
1480 | <FnDataIterator> |
1481 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
1482 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
1483 | </FnDataIterator> |
1484 | </PromoteIterator> |
1485 | </FnDocIterator> |
1486 | @@ -103,21 +103,21 @@ |
1487 | <EnclosedIterator attr_cont="false"> |
1488 | <FnCountIterator> |
1489 | <flwor::FLWORIterator> |
1490 | - <ForVariable name="$$dot"> |
1491 | + <ForVariable name="$$context-item"> |
1492 | <UnhoistIterator> |
1493 | <LetVarIterator varname="$$opt_temp_0"/> |
1494 | </UnhoistIterator> |
1495 | </ForVariable> |
1496 | - <ForVariable name="$$dot"> |
1497 | + <ForVariable name="$$context-item"> |
1498 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,inproceedings)" typename="*" nill allowed="0"> |
1499 | - <ForVarIterator varname="$$dot"/> |
1500 | + <ForVarIterator varname="$$context-item"/> |
1501 | </ChildAxisIterator> |
1502 | </ForVariable> |
1503 | <WhereClause> |
1504 | <CompareIterator> |
1505 | <FnDataIterator> |
1506 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,booktitle)" typename="*" nill allowed="0"> |
1507 | - <ForVarIterator varname="$$dot"/> |
1508 | + <ForVarIterator varname="$$context-item"/> |
1509 | </ChildAxisIterator> |
1510 | </FnDataIterator> |
1511 | <ForVarIterator varname="conference"/> |
1512 | @@ -138,28 +138,28 @@ |
1513 | <FnDataIterator> |
1514 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,author)" typename="*" nill allowed="0"> |
1515 | <flwor::FLWORIterator> |
1516 | - <ForVariable name="$$dot"> |
1517 | + <ForVariable name="$$context-item"> |
1518 | <UnhoistIterator> |
1519 | <LetVarIterator varname="$$opt_temp_1"/> |
1520 | </UnhoistIterator> |
1521 | </ForVariable> |
1522 | - <ForVariable name="$$dot"> |
1523 | + <ForVariable name="$$context-item"> |
1524 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,inproceedings)" typename="*" nill allowed="0"> |
1525 | - <ForVarIterator varname="$$dot"/> |
1526 | + <ForVarIterator varname="$$context-item"/> |
1527 | </ChildAxisIterator> |
1528 | </ForVariable> |
1529 | <WhereClause> |
1530 | <CompareIterator> |
1531 | <FnDataIterator> |
1532 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,booktitle)" typename="*" nill allowed="0"> |
1533 | - <ForVarIterator varname="$$dot"/> |
1534 | + <ForVarIterator varname="$$context-item"/> |
1535 | </ChildAxisIterator> |
1536 | </FnDataIterator> |
1537 | <ForVarIterator varname="conference"/> |
1538 | </CompareIterator> |
1539 | </WhereClause> |
1540 | <ReturnClause> |
1541 | - <ForVarIterator varname="$$dot"/> |
1542 | + <ForVarIterator varname="$$context-item"/> |
1543 | </ReturnClause> |
1544 | </flwor::FLWORIterator> |
1545 | </ChildAxisIterator> |
1546 | |
1547 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/hashjoin-gary1.iter' |
1548 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/hashjoin-gary1.iter 2012-09-17 00:36:37 +0000 |
1549 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/hashjoin-gary1.iter 2012-09-26 13:28:22 +0000 |
1550 | @@ -27,30 +27,30 @@ |
1551 | <LetVariable name="y" materialize="true"> |
1552 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,data)" typename="*" nill allowed="0"> |
1553 | <flwor::FLWORIterator> |
1554 | - <ForVariable name="$$dot"> |
1555 | + <ForVariable name="$$context-item"> |
1556 | <FnDocIterator> |
1557 | <SingletonIterator value="xs:string(../hashjoins/min_ic1980.xml)"/> |
1558 | </FnDocIterator> |
1559 | </ForVariable> |
1560 | - <ForVariable name="$$dot"> |
1561 | + <ForVariable name="$$context-item"> |
1562 | <flwor::FLWORIterator> |
1563 | - <ForVariable name="$$dot"> |
1564 | + <ForVariable name="$$context-item"> |
1565 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,ipeds)" typename="*" nill allowed="0"> |
1566 | - <ForVarIterator varname="$$dot"/> |
1567 | + <ForVarIterator varname="$$context-item"/> |
1568 | </ChildAxisIterator> |
1569 | </ForVariable> |
1570 | <WhereClause> |
1571 | <CompareIterator> |
1572 | <FnDataIterator> |
1573 | <AttributeAxisIterator test kind="match_name_test" qname="xs:QName(,,year)" typename="*" nill allowed="0"> |
1574 | - <ForVarIterator varname="$$dot"/> |
1575 | + <ForVarIterator varname="$$context-item"/> |
1576 | </AttributeAxisIterator> |
1577 | </FnDataIterator> |
1578 | <SingletonIterator value="xs:integer(1980)"/> |
1579 | </CompareIterator> |
1580 | </WhereClause> |
1581 | <ReturnClause> |
1582 | - <ForVarIterator varname="$$dot"/> |
1583 | + <ForVarIterator varname="$$context-item"/> |
1584 | </ReturnClause> |
1585 | </flwor::FLWORIterator> |
1586 | </ForVariable> |
1587 | @@ -58,14 +58,14 @@ |
1588 | <CompareIterator> |
1589 | <FnDataIterator> |
1590 | <AttributeAxisIterator test kind="match_name_test" qname="xs:QName(,,file)" typename="*" nill allowed="0"> |
1591 | - <ForVarIterator varname="$$dot"/> |
1592 | + <ForVarIterator varname="$$context-item"/> |
1593 | </AttributeAxisIterator> |
1594 | </FnDataIterator> |
1595 | <SingletonIterator value="xs:string(ic1980)"/> |
1596 | </CompareIterator> |
1597 | </WhereClause> |
1598 | <ReturnClause> |
1599 | - <ForVarIterator varname="$$dot"/> |
1600 | + <ForVarIterator varname="$$context-item"/> |
1601 | </ReturnClause> |
1602 | </flwor::FLWORIterator> |
1603 | </ChildAxisIterator> |
1604 | @@ -108,7 +108,7 @@ |
1605 | <HoistIterator> |
1606 | <AttributeAxisIterator test kind="match_name_test" qname="*" typename="*" nill allowed="0"> |
1607 | <flwor::FLWORIterator> |
1608 | - <ForVariable name="$$dot"> |
1609 | + <ForVariable name="$$context-item"> |
1610 | <NodeSortIterator distinct="true" ascending="true"> |
1611 | <ProbeIndexPointGeneralIterator> |
1612 | <SingletonIterator value="xs:QName(,,tempIndex0)"/> |
1613 | @@ -119,7 +119,7 @@ |
1614 | </NodeSortIterator> |
1615 | </ForVariable> |
1616 | <ReturnClause> |
1617 | - <ForVarIterator varname="$$dot"/> |
1618 | + <ForVarIterator varname="$$context-item"/> |
1619 | </ReturnClause> |
1620 | </flwor::FLWORIterator> |
1621 | </AttributeAxisIterator> |
1622 | |
1623 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/path17.iter' |
1624 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/path17.iter 2012-09-17 00:36:37 +0000 |
1625 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/path17.iter 2012-09-26 13:28:22 +0000 |
1626 | @@ -7,7 +7,7 @@ |
1627 | |
1628 | Iterator tree for main query: |
1629 | <SequentialIterator> |
1630 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
1631 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
1632 | <ElementIterator copyInputNodes="false"> |
1633 | <SingletonIterator value="xs:QName(,,missing-variable)"/> |
1634 | <EnclosedIterator attr_cont="false"> |
1635 | @@ -15,33 +15,33 @@ |
1636 | <ForVariable name="x"> |
1637 | <NodeSortIterator distinct="true" ascending="true"> |
1638 | <flwor::FLWORIterator> |
1639 | - <ForVariable name="$$dot"> |
1640 | + <ForVariable name="$$context-item"> |
1641 | <DescendantSelfAxisIterator test kind="match_anykind_test" qname="*" typename="*" nill allowed="0"> |
1642 | <FnDocIterator> |
1643 | <PromoteIterator type="xs:string"> |
1644 | <FnDataIterator> |
1645 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
1646 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
1647 | </FnDataIterator> |
1648 | </PromoteIterator> |
1649 | </FnDocIterator> |
1650 | </DescendantSelfAxisIterator> |
1651 | </ForVariable> |
1652 | - <ForVariable name="$$dot"> |
1653 | + <ForVariable name="$$context-item"> |
1654 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,wildcard,input-file)" typename="*" nill allowed="0"> |
1655 | - <ForVarIterator varname="$$dot"/> |
1656 | + <ForVarIterator varname="$$context-item"/> |
1657 | </ChildAxisIterator> |
1658 | </ForVariable> |
1659 | <WhereClause> |
1660 | <AndIterator> |
1661 | <FnEmptyIterator> |
1662 | <AttributeAxisIterator test kind="match_name_test" qname="xs:QName(,,variable)" typename="*" nill allowed="0"> |
1663 | - <ForVarIterator varname="$$dot"/> |
1664 | + <ForVarIterator varname="$$context-item"/> |
1665 | </AttributeAxisIterator> |
1666 | </FnEmptyIterator> |
1667 | <CompareIterator> |
1668 | <FnDataIterator> |
1669 | <ChildAxisIterator test kind="match_text_test" qname="*" typename="*" nill allowed="0"> |
1670 | - <ForVarIterator varname="$$dot"/> |
1671 | + <ForVarIterator varname="$$context-item"/> |
1672 | </ChildAxisIterator> |
1673 | </FnDataIterator> |
1674 | <SingletonIterator value="xs:string(emptydoc)"/> |
1675 | @@ -49,7 +49,7 @@ |
1676 | </AndIterator> |
1677 | </WhereClause> |
1678 | <ReturnClause> |
1679 | - <ForVarIterator varname="$$dot"/> |
1680 | + <ForVarIterator varname="$$context-item"/> |
1681 | </ReturnClause> |
1682 | </flwor::FLWORIterator> |
1683 | </NodeSortIterator> |
1684 | |
1685 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q1.iter' |
1686 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q1.iter 2012-09-17 00:36:37 +0000 |
1687 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q1.iter 2012-09-26 13:28:22 +0000 |
1688 | @@ -7,31 +7,31 @@ |
1689 | |
1690 | Iterator tree for main query: |
1691 | <SequentialIterator> |
1692 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
1693 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
1694 | <flwor::FLWORIterator> |
1695 | - <ForVariable name="$$dot"> |
1696 | + <ForVariable name="$$context-item"> |
1697 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,people)" typename="*" nill allowed="0"> |
1698 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,site)" typename="*" nill allowed="0"> |
1699 | <FnDocIterator> |
1700 | <PromoteIterator type="xs:string"> |
1701 | <FnDataIterator> |
1702 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
1703 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
1704 | </FnDataIterator> |
1705 | </PromoteIterator> |
1706 | </FnDocIterator> |
1707 | </ChildAxisIterator> |
1708 | </ChildAxisIterator> |
1709 | </ForVariable> |
1710 | - <ForVariable name="$$dot"> |
1711 | + <ForVariable name="$$context-item"> |
1712 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,person)" typename="*" nill allowed="0"> |
1713 | - <ForVarIterator varname="$$dot"/> |
1714 | + <ForVarIterator varname="$$context-item"/> |
1715 | </ChildAxisIterator> |
1716 | </ForVariable> |
1717 | <WhereClause> |
1718 | <CompareIterator> |
1719 | <FnDataIterator> |
1720 | <AttributeAxisIterator test kind="match_name_test" qname="xs:QName(,,id)" typename="*" nill allowed="0"> |
1721 | - <ForVarIterator varname="$$dot"/> |
1722 | + <ForVarIterator varname="$$context-item"/> |
1723 | </AttributeAxisIterator> |
1724 | </FnDataIterator> |
1725 | <SingletonIterator value="xs:string(person0)"/> |
1726 | @@ -40,7 +40,7 @@ |
1727 | <ReturnClause> |
1728 | <ChildAxisIterator test kind="match_text_test" qname="*" typename="*" nill allowed="0"> |
1729 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,name)" typename="*" nill allowed="0"> |
1730 | - <ForVarIterator varname="$$dot"/> |
1731 | + <ForVarIterator varname="$$context-item"/> |
1732 | </ChildAxisIterator> |
1733 | </ChildAxisIterator> |
1734 | </ReturnClause> |
1735 | |
1736 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q10.iter' |
1737 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q10.iter 2012-09-17 00:36:37 +0000 |
1738 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q10.iter 2012-09-26 13:28:22 +0000 |
1739 | @@ -1,12 +1,12 @@ |
1740 | Iterator tree for main query: |
1741 | <SequentialIterator> |
1742 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
1743 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
1744 | <flwor::FLWORIterator> |
1745 | <LetVariable name="auction" materialize="true"> |
1746 | <FnDocIterator> |
1747 | <PromoteIterator type="xs:string"> |
1748 | <FnDataIterator> |
1749 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
1750 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
1751 | </FnDataIterator> |
1752 | </PromoteIterator> |
1753 | </FnDocIterator> |
1754 | |
1755 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q11.iter' |
1756 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q11.iter 2012-09-17 00:36:37 +0000 |
1757 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q11.iter 2012-09-26 13:28:22 +0000 |
1758 | @@ -5,13 +5,13 @@ |
1759 | |
1760 | Iterator tree for main query: |
1761 | <SequentialIterator> |
1762 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
1763 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
1764 | <flwor::FLWORIterator> |
1765 | <LetVariable name="auction" materialize="true"> |
1766 | <FnDocIterator> |
1767 | <PromoteIterator type="xs:string"> |
1768 | <FnDataIterator> |
1769 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
1770 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
1771 | </FnDataIterator> |
1772 | </PromoteIterator> |
1773 | </FnDocIterator> |
1774 | |
1775 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q12.iter' |
1776 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q12.iter 2012-09-17 00:36:37 +0000 |
1777 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q12.iter 2012-09-26 13:28:22 +0000 |
1778 | @@ -5,13 +5,13 @@ |
1779 | |
1780 | Iterator tree for main query: |
1781 | <SequentialIterator> |
1782 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
1783 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
1784 | <flwor::FLWORIterator> |
1785 | <LetVariable name="auction" materialize="true"> |
1786 | <FnDocIterator> |
1787 | <PromoteIterator type="xs:string"> |
1788 | <FnDataIterator> |
1789 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
1790 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
1791 | </FnDataIterator> |
1792 | </PromoteIterator> |
1793 | </FnDocIterator> |
1794 | |
1795 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q13.iter' |
1796 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q13.iter 2012-09-17 00:36:37 +0000 |
1797 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q13.iter 2012-09-26 13:28:22 +0000 |
1798 | @@ -1,6 +1,6 @@ |
1799 | Iterator tree for main query: |
1800 | <SequentialIterator> |
1801 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
1802 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
1803 | <flwor::FLWORIterator> |
1804 | <ForVariable name="i"> |
1805 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,item)" typename="*" nill allowed="0"> |
1806 | @@ -10,7 +10,7 @@ |
1807 | <FnDocIterator> |
1808 | <PromoteIterator type="xs:string"> |
1809 | <FnDataIterator> |
1810 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
1811 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
1812 | </FnDataIterator> |
1813 | </PromoteIterator> |
1814 | </FnDocIterator> |
1815 | |
1816 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q14.iter' |
1817 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q14.iter 2012-09-17 00:36:37 +0000 |
1818 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q14.iter 2012-09-26 13:28:22 +0000 |
1819 | @@ -1,6 +1,6 @@ |
1820 | Iterator tree for main query: |
1821 | <SequentialIterator> |
1822 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
1823 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
1824 | <flwor::FLWORIterator> |
1825 | <ForVariable name="i"> |
1826 | <DescendantAxisIterator test kind="match_name_test" qname="xs:QName(,,item)" typename="*" nill allowed="0"> |
1827 | @@ -8,7 +8,7 @@ |
1828 | <FnDocIterator> |
1829 | <PromoteIterator type="xs:string"> |
1830 | <FnDataIterator> |
1831 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
1832 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
1833 | </FnDataIterator> |
1834 | </PromoteIterator> |
1835 | </FnDocIterator> |
1836 | |
1837 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q15.iter' |
1838 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q15.iter 2012-09-17 00:36:37 +0000 |
1839 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q15.iter 2012-09-26 13:28:22 +0000 |
1840 | @@ -1,6 +1,6 @@ |
1841 | Iterator tree for main query: |
1842 | <SequentialIterator> |
1843 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
1844 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
1845 | <flwor::FLWORIterator> |
1846 | <ForVariable name="a"> |
1847 | <ChildAxisIterator test kind="match_text_test" qname="*" typename="*" nill allowed="0"> |
1848 | @@ -19,7 +19,7 @@ |
1849 | <FnDocIterator> |
1850 | <PromoteIterator type="xs:string"> |
1851 | <FnDataIterator> |
1852 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
1853 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
1854 | </FnDataIterator> |
1855 | </PromoteIterator> |
1856 | </FnDocIterator> |
1857 | |
1858 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q16.iter' |
1859 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q16.iter 2012-09-17 00:36:37 +0000 |
1860 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q16.iter 2012-09-26 13:28:22 +0000 |
1861 | @@ -1,6 +1,6 @@ |
1862 | Iterator tree for main query: |
1863 | <SequentialIterator> |
1864 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
1865 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
1866 | <flwor::FLWORIterator> |
1867 | <ForVariable name="a"> |
1868 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,closed_auction)" typename="*" nill allowed="0"> |
1869 | @@ -9,7 +9,7 @@ |
1870 | <FnDocIterator> |
1871 | <PromoteIterator type="xs:string"> |
1872 | <FnDataIterator> |
1873 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
1874 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
1875 | </FnDataIterator> |
1876 | </PromoteIterator> |
1877 | </FnDocIterator> |
1878 | |
1879 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q17.iter' |
1880 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q17.iter 2012-09-17 00:36:37 +0000 |
1881 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q17.iter 2012-09-26 13:28:22 +0000 |
1882 | @@ -1,6 +1,6 @@ |
1883 | Iterator tree for main query: |
1884 | <SequentialIterator> |
1885 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
1886 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
1887 | <flwor::FLWORIterator> |
1888 | <ForVariable name="p"> |
1889 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,person)" typename="*" nill allowed="0"> |
1890 | @@ -9,7 +9,7 @@ |
1891 | <FnDocIterator> |
1892 | <PromoteIterator type="xs:string"> |
1893 | <FnDataIterator> |
1894 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
1895 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
1896 | </FnDataIterator> |
1897 | </PromoteIterator> |
1898 | </FnDocIterator> |
1899 | |
1900 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q18.iter' |
1901 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q18.iter 2012-09-17 00:36:37 +0000 |
1902 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q18.iter 2012-09-26 13:28:22 +0000 |
1903 | @@ -1,6 +1,6 @@ |
1904 | Iterator tree for main query: |
1905 | <SequentialIterator> |
1906 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
1907 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
1908 | <flwor::FLWORIterator> |
1909 | <ForVariable name="i"> |
1910 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,open_auction)" typename="*" nill allowed="0"> |
1911 | @@ -9,7 +9,7 @@ |
1912 | <FnDocIterator> |
1913 | <PromoteIterator type="xs:string"> |
1914 | <FnDataIterator> |
1915 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
1916 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
1917 | </FnDataIterator> |
1918 | </PromoteIterator> |
1919 | </FnDocIterator> |
1920 | |
1921 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q19.iter' |
1922 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q19.iter 2012-09-17 00:36:37 +0000 |
1923 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q19.iter 2012-09-26 13:28:22 +0000 |
1924 | @@ -1,6 +1,6 @@ |
1925 | Iterator tree for main query: |
1926 | <SequentialIterator> |
1927 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
1928 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
1929 | <flwor::FLWORIterator> |
1930 | <ForVariable name="b"> |
1931 | <DescendantAxisIterator test kind="match_name_test" qname="xs:QName(,,item)" typename="*" nill allowed="0"> |
1932 | @@ -9,7 +9,7 @@ |
1933 | <FnDocIterator> |
1934 | <PromoteIterator type="xs:string"> |
1935 | <FnDataIterator> |
1936 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
1937 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
1938 | </FnDataIterator> |
1939 | </PromoteIterator> |
1940 | </FnDocIterator> |
1941 | |
1942 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q2.iter' |
1943 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q2.iter 2012-09-20 13:49:19 +0000 |
1944 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q2.iter 2012-09-26 13:28:22 +0000 |
1945 | @@ -1,6 +1,6 @@ |
1946 | Iterator tree for main query: |
1947 | <SequentialIterator> |
1948 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
1949 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
1950 | <flwor::FLWORIterator> |
1951 | <ForVariable name="b"> |
1952 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,open_auction)" typename="*" nill allowed="0"> |
1953 | @@ -9,7 +9,7 @@ |
1954 | <FnDocIterator> |
1955 | <PromoteIterator type="xs:string"> |
1956 | <FnDataIterator> |
1957 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
1958 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
1959 | </FnDataIterator> |
1960 | </PromoteIterator> |
1961 | </FnDocIterator> |
1962 | |
1963 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q20.iter' |
1964 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q20.iter 2012-09-17 00:36:37 +0000 |
1965 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q20.iter 2012-09-26 13:28:22 +0000 |
1966 | @@ -21,13 +21,13 @@ |
1967 | |
1968 | Iterator tree for main query: |
1969 | <SequentialIterator> |
1970 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
1971 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
1972 | <flwor::FLWORIterator> |
1973 | <LetVariable name="auction" materialize="true"> |
1974 | <FnDocIterator> |
1975 | <PromoteIterator type="xs:string"> |
1976 | <FnDataIterator> |
1977 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
1978 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
1979 | </FnDataIterator> |
1980 | </PromoteIterator> |
1981 | </FnDocIterator> |
1982 | @@ -41,7 +41,7 @@ |
1983 | <EnclosedIterator attr_cont="false"> |
1984 | <FnCountIterator> |
1985 | <flwor::FLWORIterator> |
1986 | - <ForVariable name="$$dot"> |
1987 | + <ForVariable name="$$context-item"> |
1988 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,person)" typename="*" nill allowed="0"> |
1989 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,people)" typename="*" nill allowed="0"> |
1990 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,site)" typename="*" nill allowed="0"> |
1991 | @@ -50,16 +50,16 @@ |
1992 | </ChildAxisIterator> |
1993 | </ChildAxisIterator> |
1994 | </ForVariable> |
1995 | - <ForVariable name="$$dot"> |
1996 | + <ForVariable name="$$context-item"> |
1997 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,profile)" typename="*" nill allowed="0"> |
1998 | - <ForVarIterator varname="$$dot"/> |
1999 | + <ForVarIterator varname="$$context-item"/> |
2000 | </ChildAxisIterator> |
2001 | </ForVariable> |
2002 | <WhereClause> |
2003 | <CompareIterator> |
2004 | <FnDataIterator> |
2005 | <AttributeAxisIterator test kind="match_name_test" qname="xs:QName(,,income)" typename="*" nill allowed="0"> |
2006 | - <ForVarIterator varname="$$dot"/> |
2007 | + <ForVarIterator varname="$$context-item"/> |
2008 | </AttributeAxisIterator> |
2009 | </FnDataIterator> |
2010 | <SingletonIterator value="xs:integer(100000)"/> |
2011 | @@ -77,7 +77,7 @@ |
2012 | <EnclosedIterator attr_cont="false"> |
2013 | <FnCountIterator> |
2014 | <flwor::FLWORIterator> |
2015 | - <ForVariable name="$$dot"> |
2016 | + <ForVariable name="$$context-item"> |
2017 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,person)" typename="*" nill allowed="0"> |
2018 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,people)" typename="*" nill allowed="0"> |
2019 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,site)" typename="*" nill allowed="0"> |
2020 | @@ -86,9 +86,9 @@ |
2021 | </ChildAxisIterator> |
2022 | </ChildAxisIterator> |
2023 | </ForVariable> |
2024 | - <ForVariable name="$$dot"> |
2025 | + <ForVariable name="$$context-item"> |
2026 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,profile)" typename="*" nill allowed="0"> |
2027 | - <ForVarIterator varname="$$dot"/> |
2028 | + <ForVarIterator varname="$$context-item"/> |
2029 | </ChildAxisIterator> |
2030 | </ForVariable> |
2031 | <WhereClause> |
2032 | @@ -96,7 +96,7 @@ |
2033 | <CompareIterator> |
2034 | <FnDataIterator> |
2035 | <AttributeAxisIterator test kind="match_name_test" qname="xs:QName(,,income)" typename="*" nill allowed="0"> |
2036 | - <ForVarIterator varname="$$dot"/> |
2037 | + <ForVarIterator varname="$$context-item"/> |
2038 | </AttributeAxisIterator> |
2039 | </FnDataIterator> |
2040 | <SingletonIterator value="xs:integer(100000)"/> |
2041 | @@ -104,7 +104,7 @@ |
2042 | <CompareIterator> |
2043 | <FnDataIterator> |
2044 | <AttributeAxisIterator test kind="match_name_test" qname="xs:QName(,,income)" typename="*" nill allowed="0"> |
2045 | - <ForVarIterator varname="$$dot"/> |
2046 | + <ForVarIterator varname="$$context-item"/> |
2047 | </AttributeAxisIterator> |
2048 | </FnDataIterator> |
2049 | <SingletonIterator value="xs:integer(30000)"/> |
2050 | @@ -123,7 +123,7 @@ |
2051 | <EnclosedIterator attr_cont="false"> |
2052 | <FnCountIterator> |
2053 | <flwor::FLWORIterator> |
2054 | - <ForVariable name="$$dot"> |
2055 | + <ForVariable name="$$context-item"> |
2056 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,person)" typename="*" nill allowed="0"> |
2057 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,people)" typename="*" nill allowed="0"> |
2058 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,site)" typename="*" nill allowed="0"> |
2059 | @@ -132,16 +132,16 @@ |
2060 | </ChildAxisIterator> |
2061 | </ChildAxisIterator> |
2062 | </ForVariable> |
2063 | - <ForVariable name="$$dot"> |
2064 | + <ForVariable name="$$context-item"> |
2065 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,profile)" typename="*" nill allowed="0"> |
2066 | - <ForVarIterator varname="$$dot"/> |
2067 | + <ForVarIterator varname="$$context-item"/> |
2068 | </ChildAxisIterator> |
2069 | </ForVariable> |
2070 | <WhereClause> |
2071 | <CompareIterator> |
2072 | <FnDataIterator> |
2073 | <AttributeAxisIterator test kind="match_name_test" qname="xs:QName(,,income)" typename="*" nill allowed="0"> |
2074 | - <ForVarIterator varname="$$dot"/> |
2075 | + <ForVarIterator varname="$$context-item"/> |
2076 | </AttributeAxisIterator> |
2077 | </FnDataIterator> |
2078 | <SingletonIterator value="xs:integer(30000)"/> |
2079 | |
2080 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q3.iter' |
2081 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q3.iter 2012-09-20 13:49:19 +0000 |
2082 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q3.iter 2012-09-26 13:28:22 +0000 |
2083 | @@ -5,7 +5,7 @@ |
2084 | |
2085 | Iterator tree for main query: |
2086 | <SequentialIterator> |
2087 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
2088 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
2089 | <flwor::FLWORIterator> |
2090 | <ForVariable name="b"> |
2091 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,open_auction)" typename="*" nill allowed="0"> |
2092 | @@ -14,7 +14,7 @@ |
2093 | <FnDocIterator> |
2094 | <PromoteIterator type="xs:string"> |
2095 | <FnDataIterator> |
2096 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
2097 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
2098 | </FnDataIterator> |
2099 | </PromoteIterator> |
2100 | </FnDocIterator> |
2101 | |
2102 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q4.iter' |
2103 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q4.iter 2012-09-17 00:36:37 +0000 |
2104 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q4.iter 2012-09-26 13:28:22 +0000 |
2105 | @@ -14,7 +14,7 @@ |
2106 | |
2107 | Iterator tree for main query: |
2108 | <SequentialIterator> |
2109 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
2110 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
2111 | <flwor::FLWORIterator> |
2112 | <ForVariable name="b"> |
2113 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,open_auction)" typename="*" nill allowed="0"> |
2114 | @@ -23,7 +23,7 @@ |
2115 | <FnDocIterator> |
2116 | <PromoteIterator type="xs:string"> |
2117 | <FnDataIterator> |
2118 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
2119 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
2120 | </FnDataIterator> |
2121 | </PromoteIterator> |
2122 | </FnDocIterator> |
2123 | @@ -34,28 +34,28 @@ |
2124 | <LetVariable name="$$opt_temp_0" materialize="true"> |
2125 | <HoistIterator> |
2126 | <flwor::FLWORIterator> |
2127 | - <ForVariable name="$$dot"> |
2128 | + <ForVariable name="$$context-item"> |
2129 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,bidder)" typename="*" nill allowed="0"> |
2130 | <ForVarIterator varname="b"/> |
2131 | </ChildAxisIterator> |
2132 | </ForVariable> |
2133 | - <ForVariable name="$$dot"> |
2134 | + <ForVariable name="$$context-item"> |
2135 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,personref)" typename="*" nill allowed="0"> |
2136 | - <ForVarIterator varname="$$dot"/> |
2137 | + <ForVarIterator varname="$$context-item"/> |
2138 | </ChildAxisIterator> |
2139 | </ForVariable> |
2140 | <WhereClause> |
2141 | <CompareIterator> |
2142 | <FnDataIterator> |
2143 | <AttributeAxisIterator test kind="match_name_test" qname="xs:QName(,,person)" typename="*" nill allowed="0"> |
2144 | - <ForVarIterator varname="$$dot"/> |
2145 | + <ForVarIterator varname="$$context-item"/> |
2146 | </AttributeAxisIterator> |
2147 | </FnDataIterator> |
2148 | <SingletonIterator value="xs:string(person51)"/> |
2149 | </CompareIterator> |
2150 | </WhereClause> |
2151 | <ReturnClause> |
2152 | - <ForVarIterator varname="$$dot"/> |
2153 | + <ForVarIterator varname="$$context-item"/> |
2154 | </ReturnClause> |
2155 | </flwor::FLWORIterator> |
2156 | </HoistIterator> |
2157 | @@ -65,28 +65,28 @@ |
2158 | <flwor::FLWORIterator> |
2159 | <ForVariable name="pr1"> |
2160 | <flwor::FLWORIterator> |
2161 | - <ForVariable name="$$dot"> |
2162 | + <ForVariable name="$$context-item"> |
2163 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,bidder)" typename="*" nill allowed="0"> |
2164 | <ForVarIterator varname="b"/> |
2165 | </ChildAxisIterator> |
2166 | </ForVariable> |
2167 | - <ForVariable name="$$dot"> |
2168 | + <ForVariable name="$$context-item"> |
2169 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,personref)" typename="*" nill allowed="0"> |
2170 | - <ForVarIterator varname="$$dot"/> |
2171 | + <ForVarIterator varname="$$context-item"/> |
2172 | </ChildAxisIterator> |
2173 | </ForVariable> |
2174 | <WhereClause> |
2175 | <CompareIterator> |
2176 | <FnDataIterator> |
2177 | <AttributeAxisIterator test kind="match_name_test" qname="xs:QName(,,person)" typename="*" nill allowed="0"> |
2178 | - <ForVarIterator varname="$$dot"/> |
2179 | + <ForVarIterator varname="$$context-item"/> |
2180 | </AttributeAxisIterator> |
2181 | </FnDataIterator> |
2182 | <SingletonIterator value="xs:string(person20)"/> |
2183 | </CompareIterator> |
2184 | </WhereClause> |
2185 | <ReturnClause> |
2186 | - <ForVarIterator varname="$$dot"/> |
2187 | + <ForVarIterator varname="$$context-item"/> |
2188 | </ReturnClause> |
2189 | </flwor::FLWORIterator> |
2190 | </ForVariable> |
2191 | |
2192 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q5.iter' |
2193 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q5.iter 2012-09-17 00:36:37 +0000 |
2194 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q5.iter 2012-09-26 13:28:22 +0000 |
2195 | @@ -1,6 +1,6 @@ |
2196 | Iterator tree for main query: |
2197 | <SequentialIterator> |
2198 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
2199 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
2200 | <FnCountIterator> |
2201 | <flwor::FLWORIterator> |
2202 | <ForVariable name="i"> |
2203 | @@ -10,7 +10,7 @@ |
2204 | <FnDocIterator> |
2205 | <PromoteIterator type="xs:string"> |
2206 | <FnDataIterator> |
2207 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
2208 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
2209 | </FnDataIterator> |
2210 | </PromoteIterator> |
2211 | </FnDocIterator> |
2212 | |
2213 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q6.iter' |
2214 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q6.iter 2012-09-17 00:36:37 +0000 |
2215 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q6.iter 2012-09-26 13:28:22 +0000 |
2216 | @@ -1,6 +1,6 @@ |
2217 | Iterator tree for main query: |
2218 | <SequentialIterator> |
2219 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
2220 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
2221 | <flwor::FLWORIterator> |
2222 | <ForVariable name="b"> |
2223 | <NodeSortIterator distinct="false" ascending="true"> |
2224 | @@ -9,7 +9,7 @@ |
2225 | <FnDocIterator> |
2226 | <PromoteIterator type="xs:string"> |
2227 | <FnDataIterator> |
2228 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
2229 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
2230 | </FnDataIterator> |
2231 | </PromoteIterator> |
2232 | </FnDocIterator> |
2233 | |
2234 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q7.iter' |
2235 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q7.iter 2012-09-17 00:36:37 +0000 |
2236 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q7.iter 2012-09-26 13:28:22 +0000 |
2237 | @@ -1,13 +1,13 @@ |
2238 | Iterator tree for main query: |
2239 | <SequentialIterator> |
2240 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
2241 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
2242 | <flwor::FLWORIterator> |
2243 | <ForVariable name="p"> |
2244 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,site)" typename="*" nill allowed="0"> |
2245 | <FnDocIterator> |
2246 | <PromoteIterator type="xs:string"> |
2247 | <FnDataIterator> |
2248 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
2249 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
2250 | </FnDataIterator> |
2251 | </PromoteIterator> |
2252 | </FnDocIterator> |
2253 | |
2254 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q8.iter' |
2255 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q8.iter 2012-09-17 00:36:37 +0000 |
2256 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q8.iter 2012-09-26 13:28:22 +0000 |
2257 | @@ -1,12 +1,12 @@ |
2258 | Iterator tree for main query: |
2259 | <SequentialIterator> |
2260 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
2261 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
2262 | <flwor::FLWORIterator> |
2263 | <LetVariable name="auction" materialize="true"> |
2264 | <FnDocIterator> |
2265 | <PromoteIterator type="xs:string"> |
2266 | <FnDataIterator> |
2267 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
2268 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
2269 | </FnDataIterator> |
2270 | </PromoteIterator> |
2271 | </FnDocIterator> |
2272 | |
2273 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q9.iter' |
2274 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q9.iter 2012-09-17 00:36:37 +0000 |
2275 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/q9.iter 2012-09-26 13:28:22 +0000 |
2276 | @@ -1,12 +1,12 @@ |
2277 | Iterator tree for main query: |
2278 | <SequentialIterator> |
2279 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
2280 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
2281 | <flwor::FLWORIterator> |
2282 | <LetVariable name="auction" materialize="true"> |
2283 | <FnDocIterator> |
2284 | <PromoteIterator type="xs:string"> |
2285 | <FnDataIterator> |
2286 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
2287 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
2288 | </FnDataIterator> |
2289 | </PromoteIterator> |
2290 | </FnDocIterator> |
2291 | |
2292 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/udfs1.iter' |
2293 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/udfs1.iter 2012-09-17 00:36:37 +0000 |
2294 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/no-copy/udfs1.iter 2012-09-26 13:28:22 +0000 |
2295 | @@ -5,7 +5,7 @@ |
2296 | |
2297 | Iterator tree for main query: |
2298 | <SequentialIterator> |
2299 | - <CtxVarDeclareIterator varid="2" varname="d1"> |
2300 | + <CtxVarDeclareIterator varid="4" varname="d1"> |
2301 | <ElementIterator> |
2302 | <SingletonIterator value="xs:QName(,,a)"/> |
2303 | <ElementIterator> |
2304 | @@ -16,7 +16,7 @@ |
2305 | </ElementIterator> |
2306 | </ElementIterator> |
2307 | </CtxVarDeclareIterator> |
2308 | - <CtxVarDeclareIterator varid="3" varname="d2"> |
2309 | + <CtxVarDeclareIterator varid="5" varname="d2"> |
2310 | <ElementIterator> |
2311 | <SingletonIterator value="xs:QName(,,a)"/> |
2312 | <ElementIterator> |
2313 | @@ -30,12 +30,12 @@ |
2314 | <FnConcatIterator> |
2315 | <UDFunctionCallIterator> |
2316 | <TreatIterator type="[NodeXQType anyNode content=[XQType ANY_TYPE_KIND*]]" quant=""> |
2317 | - <CtxVarIterator varid="2" varname="d1" varkind="local"/> |
2318 | + <CtxVarIterator varid="4" varname="d1" varkind="local"/> |
2319 | </TreatIterator> |
2320 | </UDFunctionCallIterator> |
2321 | <UDFunctionCallIterator> |
2322 | <TreatIterator type="[NodeXQType anyNode content=[XQType ANY_TYPE_KIND*]]" quant=""> |
2323 | - <CtxVarIterator varid="3" varname="d2" varkind="local"/> |
2324 | + <CtxVarIterator varid="5" varname="d2" varkind="local"/> |
2325 | </TreatIterator> |
2326 | </UDFunctionCallIterator> |
2327 | </FnConcatIterator> |
2328 | |
2329 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/hoist01.iter' |
2330 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/hoist01.iter 2012-09-17 00:36:37 +0000 |
2331 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/hoist01.iter 2012-09-26 13:28:22 +0000 |
2332 | @@ -31,7 +31,7 @@ |
2333 | |
2334 | Iterator tree for main query: |
2335 | <SequentialIterator> |
2336 | - <CtxVarDeclareIterator varid="2" varname="testlib:user"> |
2337 | + <CtxVarDeclareIterator varid="4" varname="testlib:user"> |
2338 | <SingletonIterator value="xs:QName(http://www.test.ch,testlib,user)"/> |
2339 | </CtxVarDeclareIterator> |
2340 | <UDFunctionCallIterator> |
2341 | @@ -48,11 +48,11 @@ |
2342 | </FnBooleanIterator> |
2343 | <FunctionTraceIterator> |
2344 | <flwor::FLWORIterator> |
2345 | - <ForVariable name="$$dot"> |
2346 | + <ForVariable name="$$context-item"> |
2347 | <ZorbaCollectionIterator> |
2348 | <PromoteIterator type="xs:QName"> |
2349 | <FnDataIterator> |
2350 | - <CtxVarIterator varid="2" varname="testlib:user" varkind="global"/> |
2351 | + <CtxVarIterator varid="4" varname="testlib:user" varkind="global"/> |
2352 | </FnDataIterator> |
2353 | </PromoteIterator> |
2354 | </ZorbaCollectionIterator> |
2355 | @@ -64,7 +64,7 @@ |
2356 | <FnDataIterator> |
2357 | <AttributeAxisIterator test kind="match_name_test" qname="xs:QName(,,deleted)" typename="*" nill allowed="0"> |
2358 | <TreatIterator type="[NodeXQType anyNode content=[XQType ANY_TYPE_KIND*]]" quant="*"> |
2359 | - <ForVarIterator varname="$$dot"/> |
2360 | + <ForVarIterator varname="$$context-item"/> |
2361 | </TreatIterator> |
2362 | </AttributeAxisIterator> |
2363 | </FnDataIterator> |
2364 | @@ -74,7 +74,7 @@ |
2365 | </FnBooleanIterator> |
2366 | </WhereClause> |
2367 | <ReturnClause> |
2368 | - <ForVarIterator varname="$$dot"/> |
2369 | + <ForVarIterator varname="$$context-item"/> |
2370 | </ReturnClause> |
2371 | </flwor::FLWORIterator> |
2372 | </FunctionTraceIterator> |
2373 | |
2374 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/pos_pred11.iter' |
2375 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/pos_pred11.iter 2012-09-20 13:49:19 +0000 |
2376 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/pos_pred11.iter 2012-09-26 13:28:22 +0000 |
2377 | @@ -1,6 +1,6 @@ |
2378 | Iterator tree for main query: |
2379 | <SequentialIterator> |
2380 | - <CtxVarDeclareIterator varid="2" varname="doc"> |
2381 | + <CtxVarDeclareIterator varid="4" varname="doc"> |
2382 | <ElementIterator> |
2383 | <SingletonIterator value="xs:QName(,,doc)"/> |
2384 | <FnConcatIterator> |
2385 | @@ -23,30 +23,30 @@ |
2386 | </ElementIterator> |
2387 | </CtxVarDeclareIterator> |
2388 | <flwor::FLWORIterator> |
2389 | - <ForVariable name="$$dot"> |
2390 | + <ForVariable name="$$context-item"> |
2391 | <NodeSortIterator distinct="true" ascending="true"> |
2392 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,a)" typename="*" nill allowed="0"> |
2393 | <TreatIterator type="[NodeXQType anyNode content=[XQType ANY_TYPE_KIND*]]" quant="*"> |
2394 | - <CtxVarIterator varid="2" varname="doc" varkind="local"/> |
2395 | + <CtxVarIterator varid="4" varname="doc" varkind="local"/> |
2396 | </TreatIterator> |
2397 | </ChildAxisIterator> |
2398 | </NodeSortIterator> |
2399 | </ForVariable> |
2400 | <WhereClause> |
2401 | <TypedValueCompareIterator_INTEGER> |
2402 | - <ForVarIterator varname="$$pos"/> |
2403 | + <ForVarIterator varname="$$context-position"/> |
2404 | <IfThenElseIterator> |
2405 | <TypedValueCompareIterator_INTEGER> |
2406 | - <ForVarIterator varname="$$pos"/> |
2407 | + <ForVarIterator varname="$$context-position"/> |
2408 | <SingletonIterator value="xs:integer(3)"/> |
2409 | </TypedValueCompareIterator_INTEGER> |
2410 | - <ForVarIterator varname="$$pos"/> |
2411 | + <ForVarIterator varname="$$context-position"/> |
2412 | <SingletonIterator value="xs:integer(1)"/> |
2413 | </IfThenElseIterator> |
2414 | </TypedValueCompareIterator_INTEGER> |
2415 | </WhereClause> |
2416 | <ReturnClause> |
2417 | - <ForVarIterator varname="$$dot"/> |
2418 | + <ForVarIterator varname="$$context-item"/> |
2419 | </ReturnClause> |
2420 | </flwor::FLWORIterator> |
2421 | </SequentialIterator> |
2422 | |
2423 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/pos_pred12.iter' |
2424 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/pos_pred12.iter 2012-09-24 15:27:00 +0000 |
2425 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/pos_pred12.iter 2012-09-26 13:28:22 +0000 |
2426 | @@ -78,7 +78,7 @@ |
2427 | |
2428 | Iterator tree for main query: |
2429 | <SequentialIterator> |
2430 | - <CtxVarDeclareIterator varid="2" varname="doc"> |
2431 | + <CtxVarDeclareIterator varid="4" varname="doc"> |
2432 | <ElementIterator> |
2433 | <SingletonIterator value="xs:QName(,,doc)"/> |
2434 | <FnConcatIterator> |
2435 | @@ -120,7 +120,7 @@ |
2436 | <NodeSortIterator distinct="true" ascending="true"> |
2437 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,a)" typename="*" nill allowed="0"> |
2438 | <TreatIterator type="[NodeXQType anyNode content=[XQType ANY_TYPE_KIND*]]" quant="*"> |
2439 | - <CtxVarIterator varid="2" varname="doc" varkind="local"/> |
2440 | + <CtxVarIterator varid="4" varname="doc" varkind="local"/> |
2441 | </TreatIterator> |
2442 | </ChildAxisIterator> |
2443 | </NodeSortIterator> |
2444 | @@ -133,7 +133,7 @@ |
2445 | <NodeSortIterator distinct="true" ascending="true"> |
2446 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,a)" typename="*" nill allowed="0"> |
2447 | <TreatIterator type="[NodeXQType anyNode content=[XQType ANY_TYPE_KIND*]]" quant="*"> |
2448 | - <CtxVarIterator varid="2" varname="doc" varkind="local"/> |
2449 | + <CtxVarIterator varid="4" varname="doc" varkind="local"/> |
2450 | </TreatIterator> |
2451 | </ChildAxisIterator> |
2452 | </NodeSortIterator> |
2453 | @@ -146,7 +146,7 @@ |
2454 | <NodeSortIterator distinct="true" ascending="true"> |
2455 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,a)" typename="*" nill allowed="0"> |
2456 | <TreatIterator type="[NodeXQType anyNode content=[XQType ANY_TYPE_KIND*]]" quant="*"> |
2457 | - <CtxVarIterator varid="2" varname="doc" varkind="local"/> |
2458 | + <CtxVarIterator varid="4" varname="doc" varkind="local"/> |
2459 | </TreatIterator> |
2460 | </ChildAxisIterator> |
2461 | </NodeSortIterator> |
2462 | @@ -159,7 +159,7 @@ |
2463 | <NodeSortIterator distinct="true" ascending="true"> |
2464 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,a)" typename="*" nill allowed="0"> |
2465 | <TreatIterator type="[NodeXQType anyNode content=[XQType ANY_TYPE_KIND*]]" quant="*"> |
2466 | - <CtxVarIterator varid="2" varname="doc" varkind="local"/> |
2467 | + <CtxVarIterator varid="4" varname="doc" varkind="local"/> |
2468 | </TreatIterator> |
2469 | </ChildAxisIterator> |
2470 | </NodeSortIterator> |
2471 | @@ -172,7 +172,7 @@ |
2472 | <NodeSortIterator distinct="true" ascending="true"> |
2473 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,a)" typename="*" nill allowed="0"> |
2474 | <TreatIterator type="[NodeXQType anyNode content=[XQType ANY_TYPE_KIND*]]" quant="*"> |
2475 | - <CtxVarIterator varid="2" varname="doc" varkind="local"/> |
2476 | + <CtxVarIterator varid="4" varname="doc" varkind="local"/> |
2477 | </TreatIterator> |
2478 | </ChildAxisIterator> |
2479 | </NodeSortIterator> |
2480 | @@ -185,7 +185,7 @@ |
2481 | <NodeSortIterator distinct="true" ascending="true"> |
2482 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,a)" typename="*" nill allowed="0"> |
2483 | <TreatIterator type="[NodeXQType anyNode content=[XQType ANY_TYPE_KIND*]]" quant="*"> |
2484 | - <CtxVarIterator varid="2" varname="doc" varkind="local"/> |
2485 | + <CtxVarIterator varid="4" varname="doc" varkind="local"/> |
2486 | </TreatIterator> |
2487 | </ChildAxisIterator> |
2488 | </NodeSortIterator> |
2489 | @@ -197,7 +197,7 @@ |
2490 | <NodeSortIterator distinct="true" ascending="true"> |
2491 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,a)" typename="*" nill allowed="0"> |
2492 | <TreatIterator type="[NodeXQType anyNode content=[XQType ANY_TYPE_KIND*]]" quant="*"> |
2493 | - <CtxVarIterator varid="2" varname="doc" varkind="local"/> |
2494 | + <CtxVarIterator varid="4" varname="doc" varkind="local"/> |
2495 | </TreatIterator> |
2496 | </ChildAxisIterator> |
2497 | </NodeSortIterator> |
2498 | |
2499 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/pos_pred13.iter' |
2500 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/pos_pred13.iter 2012-09-24 06:06:10 +0000 |
2501 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/pos_pred13.iter 2012-09-26 13:28:22 +0000 |
2502 | @@ -13,7 +13,7 @@ |
2503 | |
2504 | Iterator tree for main query: |
2505 | <SequentialIterator> |
2506 | - <CtxVarDeclareIterator varid="2" varname="doc"> |
2507 | + <CtxVarDeclareIterator varid="4" varname="doc"> |
2508 | <ElementIterator> |
2509 | <SingletonIterator value="xs:QName(,,doc)"/> |
2510 | <FnConcatIterator> |
2511 | @@ -51,12 +51,12 @@ |
2512 | </ElementIterator> |
2513 | </CtxVarDeclareIterator> |
2514 | <flwor::FLWORIterator> |
2515 | - <ForVariable name="$$dot"> |
2516 | + <ForVariable name="$$context-item"> |
2517 | <SubsequenceIntIterator> |
2518 | <NodeSortIterator distinct="true" ascending="true"> |
2519 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,a)" typename="*" nill allowed="0"> |
2520 | <TreatIterator type="[NodeXQType anyNode content=[XQType ANY_TYPE_KIND*]]" quant="*"> |
2521 | - <CtxVarIterator varid="2" varname="doc" varkind="local"/> |
2522 | + <CtxVarIterator varid="4" varname="doc" varkind="local"/> |
2523 | </TreatIterator> |
2524 | </ChildAxisIterator> |
2525 | </NodeSortIterator> |
2526 | @@ -69,7 +69,7 @@ |
2527 | <PromoteIterator type="xs:anyAtomicType"> |
2528 | <FnDataIterator> |
2529 | <AttributeAxisIterator test kind="match_name_test" qname="xs:QName(,,i)" typename="*" nill allowed="0"> |
2530 | - <ForVarIterator varname="$$dot"/> |
2531 | + <ForVarIterator varname="$$context-item"/> |
2532 | </AttributeAxisIterator> |
2533 | </FnDataIterator> |
2534 | </PromoteIterator> |
2535 | @@ -77,7 +77,7 @@ |
2536 | </CompareIterator> |
2537 | </WhereClause> |
2538 | <ReturnClause> |
2539 | - <ForVarIterator varname="$$dot"/> |
2540 | + <ForVarIterator varname="$$context-item"/> |
2541 | </ReturnClause> |
2542 | </flwor::FLWORIterator> |
2543 | </SequentialIterator> |
2544 | |
2545 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/pos_pred2.iter' |
2546 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/pos_pred2.iter 2012-09-10 03:03:44 +0000 |
2547 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/pos_pred2.iter 2012-09-26 13:28:22 +0000 |
2548 | @@ -1,6 +1,6 @@ |
2549 | Iterator tree for main query: |
2550 | <SequentialIterator> |
2551 | - <CtxVarDeclareIterator varid="2" varname="doc"> |
2552 | + <CtxVarDeclareIterator varid="4" varname="doc"> |
2553 | <ElementIterator> |
2554 | <SingletonIterator value="xs:QName(,,a)"/> |
2555 | <ElementIterator> |
2556 | @@ -16,7 +16,7 @@ |
2557 | <NodeSortIterator distinct="true" ascending="true"> |
2558 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,foo)" typename="*" nill allowed="0"> |
2559 | <TreatIterator type="[NodeXQType anyNode content=[XQType ANY_TYPE_KIND*]]" quant="*"> |
2560 | - <CtxVarIterator varid="2" varname="doc" varkind="local"/> |
2561 | + <CtxVarIterator varid="4" varname="doc" varkind="local"/> |
2562 | </TreatIterator> |
2563 | </ChildAxisIterator> |
2564 | </NodeSortIterator> |
2565 | @@ -43,7 +43,7 @@ |
2566 | <NodeSortIterator distinct="true" ascending="true"> |
2567 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,foo)" typename="*" nill allowed="0"> |
2568 | <TreatIterator type="[NodeXQType anyNode content=[XQType ANY_TYPE_KIND*]]" quant="*"> |
2569 | - <CtxVarIterator varid="2" varname="doc" varkind="local"/> |
2570 | + <CtxVarIterator varid="4" varname="doc" varkind="local"/> |
2571 | </TreatIterator> |
2572 | </ChildAxisIterator> |
2573 | </NodeSortIterator> |
2574 | |
2575 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/pos_pred3.iter' |
2576 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/pos_pred3.iter 2012-09-06 17:36:04 +0000 |
2577 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/pos_pred3.iter 2012-09-26 13:28:22 +0000 |
2578 | @@ -61,14 +61,14 @@ |
2579 | <SingletonIterator value="xs:QName(,,grp)"/> |
2580 | <EnclosedIterator attr_cont="false"> |
2581 | <flwor::FLWORIterator> |
2582 | - <ForVariable name="$$dot"> |
2583 | + <ForVariable name="$$context-item"> |
2584 | <NodeSortIterator distinct="true" ascending="true"> |
2585 | <LetVarIterator varname="x"/> |
2586 | </NodeSortIterator> |
2587 | </ForVariable> |
2588 | <ReturnClause> |
2589 | <FnDataIterator> |
2590 | - <ForVarIterator varname="$$dot"/> |
2591 | + <ForVarIterator varname="$$context-item"/> |
2592 | </FnDataIterator> |
2593 | </ReturnClause> |
2594 | </flwor::FLWORIterator> |
2595 | |
2596 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/pos_pred7.iter' |
2597 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/pos_pred7.iter 2012-09-07 18:02:16 +0000 |
2598 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/pos_pred7.iter 2012-09-26 13:28:22 +0000 |
2599 | @@ -1,6 +1,6 @@ |
2600 | Iterator tree for main query: |
2601 | <SequentialIterator> |
2602 | - <CtxVarDeclareIterator varid="2" varname="g"> |
2603 | + <CtxVarDeclareIterator varid="4" varname="g"> |
2604 | <SingletonIterator value="xs:integer(4)"/> |
2605 | </CtxVarDeclareIterator> |
2606 | <SequencePointAccessIterator> |
2607 | @@ -16,7 +16,7 @@ |
2608 | <SingletonIterator value="xs:integer(9)"/> |
2609 | <SingletonIterator value="xs:integer(0)"/> |
2610 | </FnConcatIterator> |
2611 | - <CtxVarIterator varid="2" varname="g" varkind="global"/> |
2612 | + <CtxVarIterator varid="4" varname="g" varkind="global"/> |
2613 | </SequencePointAccessIterator> |
2614 | </SequentialIterator> |
2615 | |
2616 | |
2617 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/pos_pred8.iter' |
2618 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/pos_pred8.iter 2012-09-07 18:02:16 +0000 |
2619 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/pos_pred8.iter 2012-09-26 13:28:22 +0000 |
2620 | @@ -5,7 +5,7 @@ |
2621 | |
2622 | Iterator tree for main query: |
2623 | <SequentialIterator> |
2624 | - <CtxVarDeclareIterator varid="2" varname="g"> |
2625 | + <CtxVarDeclareIterator varid="4" varname="g"> |
2626 | <SingletonIterator value="xs:integer(-4)"/> |
2627 | </CtxVarDeclareIterator> |
2628 | <SequencePointAccessIterator> |
2629 | @@ -21,7 +21,7 @@ |
2630 | <SingletonIterator value="xs:integer(9)"/> |
2631 | <SingletonIterator value="xs:integer(0)"/> |
2632 | </FnConcatIterator> |
2633 | - <CtxVarIterator varid="2" varname="g" varkind="global"/> |
2634 | + <CtxVarIterator varid="4" varname="g" varkind="global"/> |
2635 | </SequencePointAccessIterator> |
2636 | </SequentialIterator> |
2637 | |
2638 | |
2639 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/pos_pred9.iter' |
2640 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/pos_pred9.iter 2012-09-07 18:02:16 +0000 |
2641 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/pos_pred9.iter 2012-09-26 13:28:22 +0000 |
2642 | @@ -5,7 +5,7 @@ |
2643 | |
2644 | Iterator tree for main query: |
2645 | <SequentialIterator> |
2646 | - <CtxVarDeclareIterator varid="2" varname="g"> |
2647 | + <CtxVarDeclareIterator varid="4" varname="g"> |
2648 | <SingletonIterator value="xs:integer(-4)"/> |
2649 | </CtxVarDeclareIterator> |
2650 | <flwor::FLWORIterator> |
2651 | |
2652 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/positioned-access.iter' |
2653 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/positioned-access.iter 2012-09-20 13:49:19 +0000 |
2654 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/positioned-access.iter 2012-09-26 13:28:22 +0000 |
2655 | @@ -1,13 +1,13 @@ |
2656 | Iterator tree for main query: |
2657 | <SequentialIterator> |
2658 | - <CtxVarDeclareIterator varid="2" varname="n1"> |
2659 | + <CtxVarDeclareIterator varid="4" varname="n1"> |
2660 | <FnConcatIterator> |
2661 | <SingletonIterator value="xs:integer(2)"/> |
2662 | <SingletonIterator value="xs:integer(3)"/> |
2663 | <SingletonIterator value="xs:integer(6)"/> |
2664 | </FnConcatIterator> |
2665 | </CtxVarDeclareIterator> |
2666 | - <CtxVarDeclareIterator varid="3" varname="n2"> |
2667 | + <CtxVarDeclareIterator varid="5" varname="n2"> |
2668 | <FnConcatIterator> |
2669 | <SingletonIterator value="xs:integer(2)"/> |
2670 | <SingletonIterator value="xs:integer(3)"/> |
2671 | @@ -19,7 +19,7 @@ |
2672 | <LetVariable name="x" materialize="true"> |
2673 | <PromoteIterator type="xs:integer"> |
2674 | <FnDataIterator> |
2675 | - <CtxVarIterator varid="2" varname="n1" varkind="global"/> |
2676 | + <CtxVarIterator varid="4" varname="n1" varkind="global"/> |
2677 | </FnDataIterator> |
2678 | </PromoteIterator> |
2679 | </LetVariable> |
2680 | @@ -37,7 +37,7 @@ |
2681 | <LetVariable name="x" materialize="true"> |
2682 | <PromoteIterator type="xs:integer"> |
2683 | <FnDataIterator> |
2684 | - <CtxVarIterator varid="3" varname="n2" varkind="global"/> |
2685 | + <CtxVarIterator varid="5" varname="n2" varkind="global"/> |
2686 | </FnDataIterator> |
2687 | </PromoteIterator> |
2688 | </LetVariable> |
2689 | |
2690 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/var_inline_01.iter' |
2691 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/var_inline_01.iter 2012-09-07 18:02:16 +0000 |
2692 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/var_inline_01.iter 2012-09-26 13:28:22 +0000 |
2693 | @@ -1,6 +1,6 @@ |
2694 | Iterator tree for main query: |
2695 | <SequentialIterator> |
2696 | - <CtxVarDeclareIterator varid="2" varname="g"> |
2697 | + <CtxVarDeclareIterator varid="4" varname="g"> |
2698 | <SingletonIterator value="xs:integer(3)"/> |
2699 | </CtxVarDeclareIterator> |
2700 | <flwor::FLWORIterator> |
2701 | @@ -18,7 +18,7 @@ |
2702 | </NumArithIterator_ModOperation> |
2703 | </ForVariable> |
2704 | <LetVariable name="foo" materialize="true"> |
2705 | - <CtxVarIterator varid="2" varname="g" varkind="global"/> |
2706 | + <CtxVarIterator varid="4" varname="g" varkind="global"/> |
2707 | </LetVariable> |
2708 | <LetVariable name="$$opt_temp_0" materialize="true"> |
2709 | <HoistIterator> |
2710 | |
2711 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/var_inline_03.iter' |
2712 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/var_inline_03.iter 2012-09-08 02:57:35 +0000 |
2713 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/optim/var_inline_03.iter 2012-09-26 13:28:22 +0000 |
2714 | @@ -1,13 +1,13 @@ |
2715 | Iterator tree for main query: |
2716 | <SequentialIterator> |
2717 | - <CtxVarDeclareIterator varid="2" varname="foo"> |
2718 | + <CtxVarDeclareIterator varid="4" varname="foo"> |
2719 | <FnConcatIterator> |
2720 | <SingletonIterator value="xs:integer(1)"/> |
2721 | <SingletonIterator value="xs:integer(2)"/> |
2722 | <SingletonIterator value="xs:integer(3)"/> |
2723 | </FnConcatIterator> |
2724 | </CtxVarDeclareIterator> |
2725 | - <CtxVarDeclareIterator varid="3" varname="boo"> |
2726 | + <CtxVarDeclareIterator varid="5" varname="boo"> |
2727 | <FnConcatIterator> |
2728 | <SingletonIterator value="xs:integer(1)"/> |
2729 | <SingletonIterator value="xs:integer(2)"/> |
2730 | @@ -18,12 +18,12 @@ |
2731 | <AndIterator> |
2732 | <TypedValueCompareIterator_INTEGER> |
2733 | <FnCountIterator> |
2734 | - <CtxVarIterator varid="3" varname="boo" varkind="global"/> |
2735 | + <CtxVarIterator varid="5" varname="boo" varkind="global"/> |
2736 | </FnCountIterator> |
2737 | <SingletonIterator value="xs:integer(3)"/> |
2738 | </TypedValueCompareIterator_INTEGER> |
2739 | <FnExactlyOneIterator> |
2740 | - <CtxVarIterator varid="2" varname="foo" varkind="global"> |
2741 | + <CtxVarIterator varid="4" varname="foo" varkind="global"> |
2742 | <SingletonIterator value="xs:integer(3)"/> |
2743 | <SingletonIterator value="xs:integer(2)"/> |
2744 | </CtxVarIterator> |
2745 | |
2746 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/paths/path13.iter' |
2747 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/paths/path13.iter 2012-09-17 00:36:37 +0000 |
2748 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/paths/path13.iter 2012-09-26 13:28:22 +0000 |
2749 | @@ -7,7 +7,7 @@ |
2750 | |
2751 | Iterator tree for main query: |
2752 | <flwor::FLWORIterator> |
2753 | - <ForVariable name="$$dot"> |
2754 | + <ForVariable name="$$context-item"> |
2755 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,b)" typename="*" nill allowed="0"> |
2756 | <ElementIterator> |
2757 | <SingletonIterator value="xs:QName(,,a)"/> |
2758 | @@ -43,12 +43,12 @@ |
2759 | <WhereClause> |
2760 | <FnBooleanIterator> |
2761 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,c)" typename="*" nill allowed="0"> |
2762 | - <ForVarIterator varname="$$dot"/> |
2763 | + <ForVarIterator varname="$$context-item"/> |
2764 | </ChildAxisIterator> |
2765 | </FnBooleanIterator> |
2766 | </WhereClause> |
2767 | <ReturnClause> |
2768 | - <ForVarIterator varname="$$dot"/> |
2769 | + <ForVarIterator varname="$$context-item"/> |
2770 | </ReturnClause> |
2771 | </flwor::FLWORIterator> |
2772 | |
2773 | |
2774 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/paths/path17.iter' |
2775 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/paths/path17.iter 2012-09-17 00:36:37 +0000 |
2776 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/paths/path17.iter 2012-09-26 13:28:22 +0000 |
2777 | @@ -7,7 +7,7 @@ |
2778 | |
2779 | Iterator tree for main query: |
2780 | <SequentialIterator> |
2781 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
2782 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
2783 | <ElementIterator> |
2784 | <SingletonIterator value="xs:QName(,,missing-variable)"/> |
2785 | <EnclosedIterator attr_cont="false"> |
2786 | @@ -15,33 +15,33 @@ |
2787 | <ForVariable name="x"> |
2788 | <NodeSortIterator distinct="true" ascending="true"> |
2789 | <flwor::FLWORIterator> |
2790 | - <ForVariable name="$$dot"> |
2791 | + <ForVariable name="$$context-item"> |
2792 | <DescendantSelfAxisIterator test kind="match_anykind_test" qname="*" typename="*" nill allowed="0"> |
2793 | <FnDocIterator> |
2794 | <PromoteIterator type="xs:string"> |
2795 | <FnDataIterator> |
2796 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
2797 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
2798 | </FnDataIterator> |
2799 | </PromoteIterator> |
2800 | </FnDocIterator> |
2801 | </DescendantSelfAxisIterator> |
2802 | </ForVariable> |
2803 | - <ForVariable name="$$dot"> |
2804 | + <ForVariable name="$$context-item"> |
2805 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,wildcard,input-file)" typename="*" nill allowed="0"> |
2806 | - <ForVarIterator varname="$$dot"/> |
2807 | + <ForVarIterator varname="$$context-item"/> |
2808 | </ChildAxisIterator> |
2809 | </ForVariable> |
2810 | <WhereClause> |
2811 | <AndIterator> |
2812 | <FnEmptyIterator> |
2813 | <AttributeAxisIterator test kind="match_name_test" qname="xs:QName(,,variable)" typename="*" nill allowed="0"> |
2814 | - <ForVarIterator varname="$$dot"/> |
2815 | + <ForVarIterator varname="$$context-item"/> |
2816 | </AttributeAxisIterator> |
2817 | </FnEmptyIterator> |
2818 | <CompareIterator> |
2819 | <FnDataIterator> |
2820 | <ChildAxisIterator test kind="match_text_test" qname="*" typename="*" nill allowed="0"> |
2821 | - <ForVarIterator varname="$$dot"/> |
2822 | + <ForVarIterator varname="$$context-item"/> |
2823 | </ChildAxisIterator> |
2824 | </FnDataIterator> |
2825 | <SingletonIterator value="xs:string(emptydoc)"/> |
2826 | @@ -49,7 +49,7 @@ |
2827 | </AndIterator> |
2828 | </WhereClause> |
2829 | <ReturnClause> |
2830 | - <ForVarIterator varname="$$dot"/> |
2831 | + <ForVarIterator varname="$$context-item"/> |
2832 | </ReturnClause> |
2833 | </flwor::FLWORIterator> |
2834 | </NodeSortIterator> |
2835 | |
2836 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/paths/path_pred4.iter' |
2837 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/paths/path_pred4.iter 2012-09-20 13:49:19 +0000 |
2838 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/paths/path_pred4.iter 2012-09-26 13:28:22 +0000 |
2839 | @@ -1,7 +1,7 @@ |
2840 | Iterator tree for main query: |
2841 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,d)" typename="*" nill allowed="0"> |
2842 | <flwor::FLWORIterator> |
2843 | - <ForVariable name="$$dot"> |
2844 | + <ForVariable name="$$context-item"> |
2845 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,b)" typename="*" nill allowed="0"> |
2846 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,a)" typename="*" nill allowed="0"> |
2847 | <ElementIterator> |
2848 | @@ -48,7 +48,7 @@ |
2849 | </ForVariable> |
2850 | <ReturnClause> |
2851 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,c)" typename="*" nill allowed="0" target_position="1"> |
2852 | - <ForVarIterator varname="$$dot"/> |
2853 | + <ForVarIterator varname="$$context-item"/> |
2854 | </ChildAxisIterator> |
2855 | </ReturnClause> |
2856 | </flwor::FLWORIterator> |
2857 | |
2858 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/udf/udf1.iter' |
2859 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/udf/udf1.iter 2012-09-17 00:36:37 +0000 |
2860 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/udf/udf1.iter 2012-09-26 13:28:22 +0000 |
2861 | @@ -1,6 +1,6 @@ |
2862 | Iterator tree for main query: |
2863 | <SequentialIterator> |
2864 | - <CtxVarDeclareIterator varid="2" varname="x"> |
2865 | + <CtxVarDeclareIterator varid="4" varname="x"> |
2866 | <SingletonIterator value="xs:integer(1)"/> |
2867 | </CtxVarDeclareIterator> |
2868 | <UDFunctionCallIterator> |
2869 | @@ -33,7 +33,7 @@ |
2870 | </ChildAxisIterator> |
2871 | <PromoteIterator type="xs:integer"> |
2872 | <FnDataIterator> |
2873 | - <CtxVarIterator varid="2" varname="x" varkind="global"/> |
2874 | + <CtxVarIterator varid="4" varname="x" varkind="global"/> |
2875 | </FnDataIterator> |
2876 | </PromoteIterator> |
2877 | </UDFunctionCallIterator> |
2878 | |
2879 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/windowing/q10.iter' |
2880 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/windowing/q10.iter 2012-04-12 22:52:42 +0000 |
2881 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/windowing/q10.iter 2012-09-26 13:28:22 +0000 |
2882 | @@ -17,7 +17,7 @@ |
2883 | |
2884 | Iterator tree for main query: |
2885 | <SequentialIterator> |
2886 | - <CtxVarDeclareIterator varid="2" varname="seq"> |
2887 | + <CtxVarDeclareIterator varid="4" varname="seq"> |
2888 | <FnDocIterator> |
2889 | <SingletonIterator value="xs:string(person_events.xml)"/> |
2890 | </FnDocIterator> |
2891 | @@ -31,18 +31,18 @@ |
2892 | <WindowVariable name="w"> |
2893 | <NodeSortIterator distinct="true" ascending="true"> |
2894 | <flwor::FLWORIterator> |
2895 | - <ForVariable name="$$dot"> |
2896 | + <ForVariable name="$$context-item"> |
2897 | <NodeDistinctIterator allow-atomics="false" check-only="false"> |
2898 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,stream)" typename="*" nill allowed="0"> |
2899 | <TreatIterator type="[NodeXQType anyNode content=[XQType ANY_TYPE_KIND*]]" quant="*"> |
2900 | - <CtxVarIterator varid="2" varname="seq" varkind="global"/> |
2901 | + <CtxVarIterator varid="4" varname="seq" varkind="global"/> |
2902 | </TreatIterator> |
2903 | </ChildAxisIterator> |
2904 | </NodeDistinctIterator> |
2905 | </ForVariable> |
2906 | - <ForVariable name="$$dot"> |
2907 | + <ForVariable name="$$context-item"> |
2908 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,event)" typename="*" nill allowed="0"> |
2909 | - <ForVarIterator varname="$$dot"/> |
2910 | + <ForVarIterator varname="$$context-item"/> |
2911 | </ChildAxisIterator> |
2912 | </ForVariable> |
2913 | <WhereClause> |
2914 | @@ -51,7 +51,7 @@ |
2915 | <PromoteIterator type="xs:anyAtomicType"> |
2916 | <FnDataIterator> |
2917 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,direction)" typename="*" nill allowed="0"> |
2918 | - <ForVarIterator varname="$$dot"/> |
2919 | + <ForVarIterator varname="$$context-item"/> |
2920 | </ChildAxisIterator> |
2921 | </FnDataIterator> |
2922 | </PromoteIterator> |
2923 | @@ -60,7 +60,7 @@ |
2924 | </FnBooleanIterator> |
2925 | </WhereClause> |
2926 | <ReturnClause> |
2927 | - <ForVarIterator varname="$$dot"/> |
2928 | + <ForVarIterator varname="$$context-item"/> |
2929 | </ReturnClause> |
2930 | </flwor::FLWORIterator> |
2931 | </NodeSortIterator> |
2932 | @@ -95,7 +95,7 @@ |
2933 | </flwor::WindowIterator> |
2934 | <FnBooleanIterator> |
2935 | <flwor::FLWORIterator> |
2936 | - <ForVariable name="$$dot"> |
2937 | + <ForVariable name="$$context-item"> |
2938 | <LetVarIterator varname="w"/> |
2939 | </ForVariable> |
2940 | <WhereClause> |
2941 | @@ -104,7 +104,7 @@ |
2942 | <PromoteIterator type="xs:anyAtomicType"> |
2943 | <FnDataIterator> |
2944 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,person)" typename="*" nill allowed="0"> |
2945 | - <ForVarIterator varname="$$dot"/> |
2946 | + <ForVarIterator varname="$$context-item"/> |
2947 | </ChildAxisIterator> |
2948 | </FnDataIterator> |
2949 | </PromoteIterator> |
2950 | @@ -113,7 +113,7 @@ |
2951 | </FnBooleanIterator> |
2952 | </WhereClause> |
2953 | <ReturnClause> |
2954 | - <ForVarIterator varname="$$dot"/> |
2955 | + <ForVarIterator varname="$$context-item"/> |
2956 | </ReturnClause> |
2957 | </flwor::FLWORIterator> |
2958 | </FnBooleanIterator> |
2959 | |
2960 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/windowing/q4.iter' |
2961 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/windowing/q4.iter 2012-04-12 22:52:42 +0000 |
2962 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/windowing/q4.iter 2012-09-26 13:28:22 +0000 |
2963 | @@ -3,7 +3,7 @@ |
2964 | |
2965 | Iterator tree for main query: |
2966 | <SequentialIterator> |
2967 | - <CtxVarDeclareIterator varid="2" varname="timesequence"> |
2968 | + <CtxVarDeclareIterator varid="4" varname="timesequence"> |
2969 | <FnDocIterator> |
2970 | <SingletonIterator value="xs:string(temp_events.xml)"/> |
2971 | </FnDocIterator> |
2972 | @@ -15,7 +15,7 @@ |
2973 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,event)" typename="*" nill allowed="0"> |
2974 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,stream)" typename="*" nill allowed="0"> |
2975 | <TreatIterator type="[NodeXQType anyNode content=[XQType ANY_TYPE_KIND*]]" quant="*"> |
2976 | - <CtxVarIterator varid="2" varname="timesequence" varkind="global"/> |
2977 | + <CtxVarIterator varid="4" varname="timesequence" varkind="global"/> |
2978 | </TreatIterator> |
2979 | </ChildAxisIterator> |
2980 | </ChildAxisIterator> |
2981 | |
2982 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/windowing/q9.iter' |
2983 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/windowing/q9.iter 2012-09-26 10:26:47 +0000 |
2984 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/windowing/q9.iter 2012-09-26 13:28:22 +0000 |
2985 | @@ -1,6 +1,6 @@ |
2986 | Iterator tree for main query: |
2987 | <SequentialIterator> |
2988 | - <CtxVarDeclareIterator varid="2" varname="seq"> |
2989 | + <CtxVarDeclareIterator varid="4" varname="seq"> |
2990 | <FnDocIterator> |
2991 | <SingletonIterator value="xs:string(person_events.xml)"/> |
2992 | </FnDocIterator> |
2993 | @@ -18,7 +18,7 @@ |
2994 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,event)" typename="*" nill allowed="0"> |
2995 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,stream)" typename="*" nill allowed="0"> |
2996 | <TreatIterator type="[NodeXQType anyNode content=[XQType ANY_TYPE_KIND*]]" quant="*"> |
2997 | - <CtxVarIterator varid="2" varname="seq" varkind="global"/> |
2998 | + <CtxVarIterator varid="4" varname="seq" varkind="global"/> |
2999 | </TreatIterator> |
3000 | </ChildAxisIterator> |
3001 | </ChildAxisIterator> |
3002 | |
3003 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q1.iter' |
3004 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q1.iter 2012-09-17 00:36:37 +0000 |
3005 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q1.iter 2012-09-26 13:28:22 +0000 |
3006 | @@ -7,31 +7,31 @@ |
3007 | |
3008 | Iterator tree for main query: |
3009 | <SequentialIterator> |
3010 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
3011 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
3012 | <flwor::FLWORIterator> |
3013 | - <ForVariable name="$$dot"> |
3014 | + <ForVariable name="$$context-item"> |
3015 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,people)" typename="*" nill allowed="0"> |
3016 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,site)" typename="*" nill allowed="0"> |
3017 | <FnDocIterator> |
3018 | <PromoteIterator type="xs:string"> |
3019 | <FnDataIterator> |
3020 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
3021 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
3022 | </FnDataIterator> |
3023 | </PromoteIterator> |
3024 | </FnDocIterator> |
3025 | </ChildAxisIterator> |
3026 | </ChildAxisIterator> |
3027 | </ForVariable> |
3028 | - <ForVariable name="$$dot"> |
3029 | + <ForVariable name="$$context-item"> |
3030 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,person)" typename="*" nill allowed="0"> |
3031 | - <ForVarIterator varname="$$dot"/> |
3032 | + <ForVarIterator varname="$$context-item"/> |
3033 | </ChildAxisIterator> |
3034 | </ForVariable> |
3035 | <WhereClause> |
3036 | <CompareIterator> |
3037 | <FnDataIterator> |
3038 | <AttributeAxisIterator test kind="match_name_test" qname="xs:QName(,,id)" typename="*" nill allowed="0"> |
3039 | - <ForVarIterator varname="$$dot"/> |
3040 | + <ForVarIterator varname="$$context-item"/> |
3041 | </AttributeAxisIterator> |
3042 | </FnDataIterator> |
3043 | <SingletonIterator value="xs:string(person0)"/> |
3044 | @@ -40,7 +40,7 @@ |
3045 | <ReturnClause> |
3046 | <ChildAxisIterator test kind="match_text_test" qname="*" typename="*" nill allowed="0"> |
3047 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,name)" typename="*" nill allowed="0"> |
3048 | - <ForVarIterator varname="$$dot"/> |
3049 | + <ForVarIterator varname="$$context-item"/> |
3050 | </ChildAxisIterator> |
3051 | </ChildAxisIterator> |
3052 | </ReturnClause> |
3053 | |
3054 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q10.iter' |
3055 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q10.iter 2012-09-17 00:36:37 +0000 |
3056 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q10.iter 2012-09-26 13:28:22 +0000 |
3057 | @@ -1,12 +1,12 @@ |
3058 | Iterator tree for main query: |
3059 | <SequentialIterator> |
3060 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
3061 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
3062 | <flwor::FLWORIterator> |
3063 | <LetVariable name="auction" materialize="true"> |
3064 | <FnDocIterator> |
3065 | <PromoteIterator type="xs:string"> |
3066 | <FnDataIterator> |
3067 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
3068 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
3069 | </FnDataIterator> |
3070 | </PromoteIterator> |
3071 | </FnDocIterator> |
3072 | |
3073 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q11.iter' |
3074 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q11.iter 2012-09-17 00:36:37 +0000 |
3075 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q11.iter 2012-09-26 13:28:22 +0000 |
3076 | @@ -5,13 +5,13 @@ |
3077 | |
3078 | Iterator tree for main query: |
3079 | <SequentialIterator> |
3080 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
3081 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
3082 | <flwor::FLWORIterator> |
3083 | <LetVariable name="auction" materialize="true"> |
3084 | <FnDocIterator> |
3085 | <PromoteIterator type="xs:string"> |
3086 | <FnDataIterator> |
3087 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
3088 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
3089 | </FnDataIterator> |
3090 | </PromoteIterator> |
3091 | </FnDocIterator> |
3092 | |
3093 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q12.iter' |
3094 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q12.iter 2012-09-17 00:36:37 +0000 |
3095 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q12.iter 2012-09-26 13:28:22 +0000 |
3096 | @@ -5,13 +5,13 @@ |
3097 | |
3098 | Iterator tree for main query: |
3099 | <SequentialIterator> |
3100 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
3101 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
3102 | <flwor::FLWORIterator> |
3103 | <LetVariable name="auction" materialize="true"> |
3104 | <FnDocIterator> |
3105 | <PromoteIterator type="xs:string"> |
3106 | <FnDataIterator> |
3107 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
3108 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
3109 | </FnDataIterator> |
3110 | </PromoteIterator> |
3111 | </FnDocIterator> |
3112 | |
3113 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q13.iter' |
3114 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q13.iter 2012-09-17 00:36:37 +0000 |
3115 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q13.iter 2012-09-26 13:28:22 +0000 |
3116 | @@ -1,6 +1,6 @@ |
3117 | Iterator tree for main query: |
3118 | <SequentialIterator> |
3119 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
3120 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
3121 | <flwor::FLWORIterator> |
3122 | <ForVariable name="i"> |
3123 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,item)" typename="*" nill allowed="0"> |
3124 | @@ -10,7 +10,7 @@ |
3125 | <FnDocIterator> |
3126 | <PromoteIterator type="xs:string"> |
3127 | <FnDataIterator> |
3128 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
3129 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
3130 | </FnDataIterator> |
3131 | </PromoteIterator> |
3132 | </FnDocIterator> |
3133 | |
3134 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q14.iter' |
3135 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q14.iter 2012-09-17 00:36:37 +0000 |
3136 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q14.iter 2012-09-26 13:28:22 +0000 |
3137 | @@ -1,6 +1,6 @@ |
3138 | Iterator tree for main query: |
3139 | <SequentialIterator> |
3140 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
3141 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
3142 | <flwor::FLWORIterator> |
3143 | <ForVariable name="i"> |
3144 | <DescendantAxisIterator test kind="match_name_test" qname="xs:QName(,,item)" typename="*" nill allowed="0"> |
3145 | @@ -8,7 +8,7 @@ |
3146 | <FnDocIterator> |
3147 | <PromoteIterator type="xs:string"> |
3148 | <FnDataIterator> |
3149 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
3150 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
3151 | </FnDataIterator> |
3152 | </PromoteIterator> |
3153 | </FnDocIterator> |
3154 | |
3155 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q15.iter' |
3156 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q15.iter 2012-09-17 00:36:37 +0000 |
3157 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q15.iter 2012-09-26 13:28:22 +0000 |
3158 | @@ -1,6 +1,6 @@ |
3159 | Iterator tree for main query: |
3160 | <SequentialIterator> |
3161 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
3162 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
3163 | <flwor::FLWORIterator> |
3164 | <ForVariable name="a"> |
3165 | <ChildAxisIterator test kind="match_text_test" qname="*" typename="*" nill allowed="0"> |
3166 | @@ -19,7 +19,7 @@ |
3167 | <FnDocIterator> |
3168 | <PromoteIterator type="xs:string"> |
3169 | <FnDataIterator> |
3170 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
3171 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
3172 | </FnDataIterator> |
3173 | </PromoteIterator> |
3174 | </FnDocIterator> |
3175 | |
3176 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q16.iter' |
3177 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q16.iter 2012-09-17 00:36:37 +0000 |
3178 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q16.iter 2012-09-26 13:28:22 +0000 |
3179 | @@ -1,6 +1,6 @@ |
3180 | Iterator tree for main query: |
3181 | <SequentialIterator> |
3182 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
3183 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
3184 | <flwor::FLWORIterator> |
3185 | <ForVariable name="a"> |
3186 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,closed_auction)" typename="*" nill allowed="0"> |
3187 | @@ -9,7 +9,7 @@ |
3188 | <FnDocIterator> |
3189 | <PromoteIterator type="xs:string"> |
3190 | <FnDataIterator> |
3191 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
3192 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
3193 | </FnDataIterator> |
3194 | </PromoteIterator> |
3195 | </FnDocIterator> |
3196 | |
3197 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q17.iter' |
3198 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q17.iter 2012-09-17 00:36:37 +0000 |
3199 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q17.iter 2012-09-26 13:28:22 +0000 |
3200 | @@ -1,6 +1,6 @@ |
3201 | Iterator tree for main query: |
3202 | <SequentialIterator> |
3203 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
3204 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
3205 | <flwor::FLWORIterator> |
3206 | <ForVariable name="p"> |
3207 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,person)" typename="*" nill allowed="0"> |
3208 | @@ -9,7 +9,7 @@ |
3209 | <FnDocIterator> |
3210 | <PromoteIterator type="xs:string"> |
3211 | <FnDataIterator> |
3212 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
3213 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
3214 | </FnDataIterator> |
3215 | </PromoteIterator> |
3216 | </FnDocIterator> |
3217 | |
3218 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q18.iter' |
3219 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q18.iter 2012-09-17 00:36:37 +0000 |
3220 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q18.iter 2012-09-26 13:28:22 +0000 |
3221 | @@ -1,6 +1,6 @@ |
3222 | Iterator tree for main query: |
3223 | <SequentialIterator> |
3224 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
3225 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
3226 | <flwor::FLWORIterator> |
3227 | <ForVariable name="i"> |
3228 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,open_auction)" typename="*" nill allowed="0"> |
3229 | @@ -9,7 +9,7 @@ |
3230 | <FnDocIterator> |
3231 | <PromoteIterator type="xs:string"> |
3232 | <FnDataIterator> |
3233 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
3234 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
3235 | </FnDataIterator> |
3236 | </PromoteIterator> |
3237 | </FnDocIterator> |
3238 | |
3239 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q19.iter' |
3240 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q19.iter 2012-09-17 00:36:37 +0000 |
3241 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q19.iter 2012-09-26 13:28:22 +0000 |
3242 | @@ -1,6 +1,6 @@ |
3243 | Iterator tree for main query: |
3244 | <SequentialIterator> |
3245 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
3246 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
3247 | <flwor::FLWORIterator> |
3248 | <ForVariable name="b"> |
3249 | <DescendantAxisIterator test kind="match_name_test" qname="xs:QName(,,item)" typename="*" nill allowed="0"> |
3250 | @@ -9,7 +9,7 @@ |
3251 | <FnDocIterator> |
3252 | <PromoteIterator type="xs:string"> |
3253 | <FnDataIterator> |
3254 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
3255 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
3256 | </FnDataIterator> |
3257 | </PromoteIterator> |
3258 | </FnDocIterator> |
3259 | |
3260 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q2.iter' |
3261 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q2.iter 2012-09-20 13:49:19 +0000 |
3262 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q2.iter 2012-09-26 13:28:22 +0000 |
3263 | @@ -1,6 +1,6 @@ |
3264 | Iterator tree for main query: |
3265 | <SequentialIterator> |
3266 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
3267 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
3268 | <flwor::FLWORIterator> |
3269 | <ForVariable name="b"> |
3270 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,open_auction)" typename="*" nill allowed="0"> |
3271 | @@ -9,7 +9,7 @@ |
3272 | <FnDocIterator> |
3273 | <PromoteIterator type="xs:string"> |
3274 | <FnDataIterator> |
3275 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
3276 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
3277 | </FnDataIterator> |
3278 | </PromoteIterator> |
3279 | </FnDocIterator> |
3280 | |
3281 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q20.iter' |
3282 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q20.iter 2012-09-17 00:36:37 +0000 |
3283 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q20.iter 2012-09-26 13:28:22 +0000 |
3284 | @@ -21,13 +21,13 @@ |
3285 | |
3286 | Iterator tree for main query: |
3287 | <SequentialIterator> |
3288 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
3289 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
3290 | <flwor::FLWORIterator> |
3291 | <LetVariable name="auction" materialize="true"> |
3292 | <FnDocIterator> |
3293 | <PromoteIterator type="xs:string"> |
3294 | <FnDataIterator> |
3295 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
3296 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
3297 | </FnDataIterator> |
3298 | </PromoteIterator> |
3299 | </FnDocIterator> |
3300 | @@ -41,7 +41,7 @@ |
3301 | <EnclosedIterator attr_cont="false"> |
3302 | <FnCountIterator> |
3303 | <flwor::FLWORIterator> |
3304 | - <ForVariable name="$$dot"> |
3305 | + <ForVariable name="$$context-item"> |
3306 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,person)" typename="*" nill allowed="0"> |
3307 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,people)" typename="*" nill allowed="0"> |
3308 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,site)" typename="*" nill allowed="0"> |
3309 | @@ -50,16 +50,16 @@ |
3310 | </ChildAxisIterator> |
3311 | </ChildAxisIterator> |
3312 | </ForVariable> |
3313 | - <ForVariable name="$$dot"> |
3314 | + <ForVariable name="$$context-item"> |
3315 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,profile)" typename="*" nill allowed="0"> |
3316 | - <ForVarIterator varname="$$dot"/> |
3317 | + <ForVarIterator varname="$$context-item"/> |
3318 | </ChildAxisIterator> |
3319 | </ForVariable> |
3320 | <WhereClause> |
3321 | <CompareIterator> |
3322 | <FnDataIterator> |
3323 | <AttributeAxisIterator test kind="match_name_test" qname="xs:QName(,,income)" typename="*" nill allowed="0"> |
3324 | - <ForVarIterator varname="$$dot"/> |
3325 | + <ForVarIterator varname="$$context-item"/> |
3326 | </AttributeAxisIterator> |
3327 | </FnDataIterator> |
3328 | <SingletonIterator value="xs:integer(100000)"/> |
3329 | @@ -77,7 +77,7 @@ |
3330 | <EnclosedIterator attr_cont="false"> |
3331 | <FnCountIterator> |
3332 | <flwor::FLWORIterator> |
3333 | - <ForVariable name="$$dot"> |
3334 | + <ForVariable name="$$context-item"> |
3335 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,person)" typename="*" nill allowed="0"> |
3336 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,people)" typename="*" nill allowed="0"> |
3337 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,site)" typename="*" nill allowed="0"> |
3338 | @@ -86,9 +86,9 @@ |
3339 | </ChildAxisIterator> |
3340 | </ChildAxisIterator> |
3341 | </ForVariable> |
3342 | - <ForVariable name="$$dot"> |
3343 | + <ForVariable name="$$context-item"> |
3344 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,profile)" typename="*" nill allowed="0"> |
3345 | - <ForVarIterator varname="$$dot"/> |
3346 | + <ForVarIterator varname="$$context-item"/> |
3347 | </ChildAxisIterator> |
3348 | </ForVariable> |
3349 | <WhereClause> |
3350 | @@ -96,7 +96,7 @@ |
3351 | <CompareIterator> |
3352 | <FnDataIterator> |
3353 | <AttributeAxisIterator test kind="match_name_test" qname="xs:QName(,,income)" typename="*" nill allowed="0"> |
3354 | - <ForVarIterator varname="$$dot"/> |
3355 | + <ForVarIterator varname="$$context-item"/> |
3356 | </AttributeAxisIterator> |
3357 | </FnDataIterator> |
3358 | <SingletonIterator value="xs:integer(100000)"/> |
3359 | @@ -104,7 +104,7 @@ |
3360 | <CompareIterator> |
3361 | <FnDataIterator> |
3362 | <AttributeAxisIterator test kind="match_name_test" qname="xs:QName(,,income)" typename="*" nill allowed="0"> |
3363 | - <ForVarIterator varname="$$dot"/> |
3364 | + <ForVarIterator varname="$$context-item"/> |
3365 | </AttributeAxisIterator> |
3366 | </FnDataIterator> |
3367 | <SingletonIterator value="xs:integer(30000)"/> |
3368 | @@ -123,7 +123,7 @@ |
3369 | <EnclosedIterator attr_cont="false"> |
3370 | <FnCountIterator> |
3371 | <flwor::FLWORIterator> |
3372 | - <ForVariable name="$$dot"> |
3373 | + <ForVariable name="$$context-item"> |
3374 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,person)" typename="*" nill allowed="0"> |
3375 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,people)" typename="*" nill allowed="0"> |
3376 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,site)" typename="*" nill allowed="0"> |
3377 | @@ -132,16 +132,16 @@ |
3378 | </ChildAxisIterator> |
3379 | </ChildAxisIterator> |
3380 | </ForVariable> |
3381 | - <ForVariable name="$$dot"> |
3382 | + <ForVariable name="$$context-item"> |
3383 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,profile)" typename="*" nill allowed="0"> |
3384 | - <ForVarIterator varname="$$dot"/> |
3385 | + <ForVarIterator varname="$$context-item"/> |
3386 | </ChildAxisIterator> |
3387 | </ForVariable> |
3388 | <WhereClause> |
3389 | <CompareIterator> |
3390 | <FnDataIterator> |
3391 | <AttributeAxisIterator test kind="match_name_test" qname="xs:QName(,,income)" typename="*" nill allowed="0"> |
3392 | - <ForVarIterator varname="$$dot"/> |
3393 | + <ForVarIterator varname="$$context-item"/> |
3394 | </AttributeAxisIterator> |
3395 | </FnDataIterator> |
3396 | <SingletonIterator value="xs:integer(30000)"/> |
3397 | |
3398 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q3.iter' |
3399 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q3.iter 2012-09-20 13:49:19 +0000 |
3400 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q3.iter 2012-09-26 13:28:22 +0000 |
3401 | @@ -5,7 +5,7 @@ |
3402 | |
3403 | Iterator tree for main query: |
3404 | <SequentialIterator> |
3405 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
3406 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
3407 | <flwor::FLWORIterator> |
3408 | <ForVariable name="b"> |
3409 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,open_auction)" typename="*" nill allowed="0"> |
3410 | @@ -14,7 +14,7 @@ |
3411 | <FnDocIterator> |
3412 | <PromoteIterator type="xs:string"> |
3413 | <FnDataIterator> |
3414 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
3415 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
3416 | </FnDataIterator> |
3417 | </PromoteIterator> |
3418 | </FnDocIterator> |
3419 | |
3420 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q4.iter' |
3421 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q4.iter 2012-09-17 00:36:37 +0000 |
3422 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q4.iter 2012-09-26 13:28:22 +0000 |
3423 | @@ -14,7 +14,7 @@ |
3424 | |
3425 | Iterator tree for main query: |
3426 | <SequentialIterator> |
3427 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
3428 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
3429 | <flwor::FLWORIterator> |
3430 | <ForVariable name="b"> |
3431 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,open_auction)" typename="*" nill allowed="0"> |
3432 | @@ -23,7 +23,7 @@ |
3433 | <FnDocIterator> |
3434 | <PromoteIterator type="xs:string"> |
3435 | <FnDataIterator> |
3436 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
3437 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
3438 | </FnDataIterator> |
3439 | </PromoteIterator> |
3440 | </FnDocIterator> |
3441 | @@ -34,28 +34,28 @@ |
3442 | <LetVariable name="$$opt_temp_0" materialize="true"> |
3443 | <HoistIterator> |
3444 | <flwor::FLWORIterator> |
3445 | - <ForVariable name="$$dot"> |
3446 | + <ForVariable name="$$context-item"> |
3447 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,bidder)" typename="*" nill allowed="0"> |
3448 | <ForVarIterator varname="b"/> |
3449 | </ChildAxisIterator> |
3450 | </ForVariable> |
3451 | - <ForVariable name="$$dot"> |
3452 | + <ForVariable name="$$context-item"> |
3453 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,personref)" typename="*" nill allowed="0"> |
3454 | - <ForVarIterator varname="$$dot"/> |
3455 | + <ForVarIterator varname="$$context-item"/> |
3456 | </ChildAxisIterator> |
3457 | </ForVariable> |
3458 | <WhereClause> |
3459 | <CompareIterator> |
3460 | <FnDataIterator> |
3461 | <AttributeAxisIterator test kind="match_name_test" qname="xs:QName(,,person)" typename="*" nill allowed="0"> |
3462 | - <ForVarIterator varname="$$dot"/> |
3463 | + <ForVarIterator varname="$$context-item"/> |
3464 | </AttributeAxisIterator> |
3465 | </FnDataIterator> |
3466 | <SingletonIterator value="xs:string(person51)"/> |
3467 | </CompareIterator> |
3468 | </WhereClause> |
3469 | <ReturnClause> |
3470 | - <ForVarIterator varname="$$dot"/> |
3471 | + <ForVarIterator varname="$$context-item"/> |
3472 | </ReturnClause> |
3473 | </flwor::FLWORIterator> |
3474 | </HoistIterator> |
3475 | @@ -65,28 +65,28 @@ |
3476 | <flwor::FLWORIterator> |
3477 | <ForVariable name="pr1"> |
3478 | <flwor::FLWORIterator> |
3479 | - <ForVariable name="$$dot"> |
3480 | + <ForVariable name="$$context-item"> |
3481 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,bidder)" typename="*" nill allowed="0"> |
3482 | <ForVarIterator varname="b"/> |
3483 | </ChildAxisIterator> |
3484 | </ForVariable> |
3485 | - <ForVariable name="$$dot"> |
3486 | + <ForVariable name="$$context-item"> |
3487 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,personref)" typename="*" nill allowed="0"> |
3488 | - <ForVarIterator varname="$$dot"/> |
3489 | + <ForVarIterator varname="$$context-item"/> |
3490 | </ChildAxisIterator> |
3491 | </ForVariable> |
3492 | <WhereClause> |
3493 | <CompareIterator> |
3494 | <FnDataIterator> |
3495 | <AttributeAxisIterator test kind="match_name_test" qname="xs:QName(,,person)" typename="*" nill allowed="0"> |
3496 | - <ForVarIterator varname="$$dot"/> |
3497 | + <ForVarIterator varname="$$context-item"/> |
3498 | </AttributeAxisIterator> |
3499 | </FnDataIterator> |
3500 | <SingletonIterator value="xs:string(person20)"/> |
3501 | </CompareIterator> |
3502 | </WhereClause> |
3503 | <ReturnClause> |
3504 | - <ForVarIterator varname="$$dot"/> |
3505 | + <ForVarIterator varname="$$context-item"/> |
3506 | </ReturnClause> |
3507 | </flwor::FLWORIterator> |
3508 | </ForVariable> |
3509 | |
3510 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q5.iter' |
3511 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q5.iter 2012-09-17 00:36:37 +0000 |
3512 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q5.iter 2012-09-26 13:28:22 +0000 |
3513 | @@ -1,6 +1,6 @@ |
3514 | Iterator tree for main query: |
3515 | <SequentialIterator> |
3516 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
3517 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
3518 | <FnCountIterator> |
3519 | <flwor::FLWORIterator> |
3520 | <ForVariable name="i"> |
3521 | @@ -10,7 +10,7 @@ |
3522 | <FnDocIterator> |
3523 | <PromoteIterator type="xs:string"> |
3524 | <FnDataIterator> |
3525 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
3526 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
3527 | </FnDataIterator> |
3528 | </PromoteIterator> |
3529 | </FnDocIterator> |
3530 | |
3531 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q6.iter' |
3532 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q6.iter 2012-09-17 00:36:37 +0000 |
3533 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q6.iter 2012-09-26 13:28:22 +0000 |
3534 | @@ -1,6 +1,6 @@ |
3535 | Iterator tree for main query: |
3536 | <SequentialIterator> |
3537 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
3538 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
3539 | <flwor::FLWORIterator> |
3540 | <ForVariable name="b"> |
3541 | <NodeSortIterator distinct="false" ascending="true"> |
3542 | @@ -9,7 +9,7 @@ |
3543 | <FnDocIterator> |
3544 | <PromoteIterator type="xs:string"> |
3545 | <FnDataIterator> |
3546 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
3547 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
3548 | </FnDataIterator> |
3549 | </PromoteIterator> |
3550 | </FnDocIterator> |
3551 | |
3552 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q7.iter' |
3553 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q7.iter 2012-09-17 00:36:37 +0000 |
3554 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q7.iter 2012-09-26 13:28:22 +0000 |
3555 | @@ -1,13 +1,13 @@ |
3556 | Iterator tree for main query: |
3557 | <SequentialIterator> |
3558 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
3559 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
3560 | <flwor::FLWORIterator> |
3561 | <ForVariable name="p"> |
3562 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,site)" typename="*" nill allowed="0"> |
3563 | <FnDocIterator> |
3564 | <PromoteIterator type="xs:string"> |
3565 | <FnDataIterator> |
3566 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
3567 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
3568 | </FnDataIterator> |
3569 | </PromoteIterator> |
3570 | </FnDocIterator> |
3571 | |
3572 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q8.iter' |
3573 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q8.iter 2012-09-17 00:36:37 +0000 |
3574 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q8.iter 2012-09-26 13:28:22 +0000 |
3575 | @@ -1,12 +1,12 @@ |
3576 | Iterator tree for main query: |
3577 | <SequentialIterator> |
3578 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
3579 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
3580 | <flwor::FLWORIterator> |
3581 | <LetVariable name="auction" materialize="true"> |
3582 | <FnDocIterator> |
3583 | <PromoteIterator type="xs:string"> |
3584 | <FnDataIterator> |
3585 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
3586 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
3587 | </FnDataIterator> |
3588 | </PromoteIterator> |
3589 | </FnDocIterator> |
3590 | |
3591 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q9.iter' |
3592 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q9.iter 2012-09-17 00:36:37 +0000 |
3593 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/xmark/q9.iter 2012-09-26 13:28:22 +0000 |
3594 | @@ -1,12 +1,12 @@ |
3595 | Iterator tree for main query: |
3596 | <SequentialIterator> |
3597 | - <CtxVarDeclareIterator varid="2" varname="input-context"/> |
3598 | + <CtxVarDeclareIterator varid="4" varname="input-context"/> |
3599 | <flwor::FLWORIterator> |
3600 | <LetVariable name="auction" materialize="true"> |
3601 | <FnDocIterator> |
3602 | <PromoteIterator type="xs:string"> |
3603 | <FnDataIterator> |
3604 | - <CtxVarIterator varid="2" varname="input-context" varkind="global"/> |
3605 | + <CtxVarIterator varid="4" varname="input-context" varkind="global"/> |
3606 | </FnDataIterator> |
3607 | </PromoteIterator> |
3608 | </FnDocIterator> |
3609 | |
3610 | === modified file 'test/rbkt/ExpCompilerResults/IterPlan/zorba/xray/ppm_10.iter' |
3611 | --- test/rbkt/ExpCompilerResults/IterPlan/zorba/xray/ppm_10.iter 2012-09-20 13:49:19 +0000 |
3612 | +++ test/rbkt/ExpCompilerResults/IterPlan/zorba/xray/ppm_10.iter 2012-09-26 13:28:22 +0000 |
3613 | @@ -149,13 +149,13 @@ |
3614 | |
3615 | Iterator tree for main query: |
3616 | <SequentialIterator> |
3617 | - <CtxVarDeclareIterator varid="2" varname="width"> |
3618 | - <SingletonIterator value="xs:integer(10)"/> |
3619 | - </CtxVarDeclareIterator> |
3620 | - <CtxVarDeclareIterator varid="3" varname="height"> |
3621 | - <SingletonIterator value="xs:integer(10)"/> |
3622 | - </CtxVarDeclareIterator> |
3623 | - <CtxVarDeclareIterator varid="4" varname="scene"> |
3624 | + <CtxVarDeclareIterator varid="4" varname="width"> |
3625 | + <SingletonIterator value="xs:integer(10)"/> |
3626 | + </CtxVarDeclareIterator> |
3627 | + <CtxVarDeclareIterator varid="5" varname="height"> |
3628 | + <SingletonIterator value="xs:integer(10)"/> |
3629 | + </CtxVarDeclareIterator> |
3630 | + <CtxVarDeclareIterator varid="6" varname="scene"> |
3631 | <UDFunctionCallIterator> |
3632 | <TreatIterator quant=""> |
3633 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,scene)" typename="*" nill allowed="0"> |
3634 | @@ -173,10 +173,10 @@ |
3635 | <StringJoinIterator> |
3636 | <FnConcatIterator> |
3637 | <FnStringIterator> |
3638 | - <CtxVarIterator varid="2" varname="width" varkind="global"/> |
3639 | + <CtxVarIterator varid="4" varname="width" varkind="global"/> |
3640 | </FnStringIterator> |
3641 | <FnStringIterator> |
3642 | - <CtxVarIterator varid="3" varname="height" varkind="global"/> |
3643 | + <CtxVarIterator varid="5" varname="height" varkind="global"/> |
3644 | </FnStringIterator> |
3645 | </FnConcatIterator> |
3646 | <SingletonIterator value="xs:string( )"/> |
3647 | @@ -186,7 +186,7 @@ |
3648 | <LetVariable name="$$opt_temp_1" materialize="true"> |
3649 | <HoistIterator> |
3650 | <TreatIterator type="[NodeXQType elementNode content=[XQType ANY_TYPE_KIND*]]" quant=""> |
3651 | - <CtxVarIterator varid="4" varname="scene" varkind="global"/> |
3652 | + <CtxVarIterator varid="6" varname="scene" varkind="global"/> |
3653 | </TreatIterator> |
3654 | </HoistIterator> |
3655 | </LetVariable> |
3656 | @@ -194,20 +194,20 @@ |
3657 | <HoistIterator> |
3658 | <OpToIterator> |
3659 | <SingletonIterator value="xs:integer(1)"/> |
3660 | - <CtxVarIterator varid="2" varname="width" varkind="global"/> |
3661 | + <CtxVarIterator varid="4" varname="width" varkind="global"/> |
3662 | </OpToIterator> |
3663 | </HoistIterator> |
3664 | </LetVariable> |
3665 | <ForVariable name="aspect-ratio"> |
3666 | <SpecificNumArithIterator_DivideOperation_DECIMAL> |
3667 | - <CtxVarIterator varid="2" varname="width" varkind="global"/> |
3668 | - <CtxVarIterator varid="3" varname="height" varkind="global"/> |
3669 | + <CtxVarIterator varid="4" varname="width" varkind="global"/> |
3670 | + <CtxVarIterator varid="5" varname="height" varkind="global"/> |
3671 | </SpecificNumArithIterator_DivideOperation_DECIMAL> |
3672 | </ForVariable> |
3673 | <ForVariable name="y"> |
3674 | <OpToIterator> |
3675 | <SingletonIterator value="xs:integer(1)"/> |
3676 | - <CtxVarIterator varid="3" varname="height" varkind="global"/> |
3677 | + <CtxVarIterator varid="5" varname="height" varkind="global"/> |
3678 | </OpToIterator> |
3679 | </ForVariable> |
3680 | <ForVariable name="y-recentered"> |
3681 | @@ -216,7 +216,7 @@ |
3682 | <OpNumericUnaryIterator> |
3683 | <ForVarIterator varname="y"/> |
3684 | </OpNumericUnaryIterator> |
3685 | - <CtxVarIterator varid="3" varname="height" varkind="global"/> |
3686 | + <CtxVarIterator varid="5" varname="height" varkind="global"/> |
3687 | </SpecificNumArithIterator_DivideOperation_DECIMAL> |
3688 | <SingletonIterator value="xs:decimal(0.5)"/> |
3689 | </SpecificNumArithIterator_AddOperation_DECIMAL> |
3690 | @@ -246,7 +246,7 @@ |
3691 | <SpecificNumArithIterator_SubtractOperation_DECIMAL> |
3692 | <SpecificNumArithIterator_DivideOperation_DECIMAL> |
3693 | <ForVarIterator varname="x"/> |
3694 | - <CtxVarIterator varid="2" varname="width" varkind="global"/> |
3695 | + <CtxVarIterator varid="4" varname="width" varkind="global"/> |
3696 | </SpecificNumArithIterator_DivideOperation_DECIMAL> |
3697 | <SingletonIterator value="xs:decimal(0.5)"/> |
3698 | </SpecificNumArithIterator_SubtractOperation_DECIMAL> |
3699 | @@ -947,26 +947,26 @@ |
3700 | <flwor::FLWORIterator> |
3701 | <ForVariable name="shape"> |
3702 | <flwor::FLWORIterator> |
3703 | - <ForVariable name="$$dot"> |
3704 | + <ForVariable name="$$context-item"> |
3705 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,shapes)" typename="*" nill allowed="0"> |
3706 | <ForVarIterator varname="scene"/> |
3707 | </ChildAxisIterator> |
3708 | </ForVariable> |
3709 | - <ForVariable name="$$dot"> |
3710 | + <ForVariable name="$$context-item"> |
3711 | <ChildAxisIterator test kind="match_name_test" qname="*" typename="*" nill allowed="0"> |
3712 | - <ForVarIterator varname="$$dot"/> |
3713 | + <ForVarIterator varname="$$context-item"/> |
3714 | </ChildAxisIterator> |
3715 | </ForVariable> |
3716 | <WhereClause> |
3717 | <FnBooleanIterator> |
3718 | <IsSameNodeIterator> |
3719 | - <ForVarIterator varname="$$dot"/> |
3720 | + <ForVarIterator varname="$$context-item"/> |
3721 | <LetVarIterator varname="ignore"/> |
3722 | </IsSameNodeIterator> |
3723 | </FnBooleanIterator> |
3724 | </WhereClause> |
3725 | <ReturnClause> |
3726 | - <ForVarIterator varname="$$dot"/> |
3727 | + <ForVarIterator varname="$$context-item"/> |
3728 | </ReturnClause> |
3729 | </flwor::FLWORIterator> |
3730 | </ForVariable> |
3731 | @@ -1398,7 +1398,7 @@ |
3732 | </WhereClause> |
3733 | <ReturnClause> |
3734 | <flwor::FLWORIterator> |
3735 | - <ForVariable name="$$dot"> |
3736 | + <ForVariable name="$$context-item"> |
3737 | <SpecificNumArithIterator_SubtractOperation_DOUBLE> |
3738 | <CastIterator type="xs:double"> |
3739 | <FnDataIterator> |
3740 | @@ -1431,12 +1431,12 @@ |
3741 | </ForVariable> |
3742 | <WhereClause> |
3743 | <TypedValueCompareIterator_DOUBLE> |
3744 | - <ForVarIterator varname="$$dot"/> |
3745 | + <ForVarIterator varname="$$context-item"/> |
3746 | <SingletonIterator value="xs:double(0)"/> |
3747 | </TypedValueCompareIterator_DOUBLE> |
3748 | </WhereClause> |
3749 | <ReturnClause> |
3750 | - <ForVarIterator varname="$$dot"/> |
3751 | + <ForVarIterator varname="$$context-item"/> |
3752 | </ReturnClause> |
3753 | </flwor::FLWORIterator> |
3754 | </ReturnClause> |
3755 | @@ -1577,7 +1577,7 @@ |
3756 | <ReturnClause> |
3757 | <SequencePointAccessIterator> |
3758 | <flwor::FLWORIterator> |
3759 | - <ForVariable name="$$dot"> |
3760 | + <ForVariable name="$$context-item"> |
3761 | <FnConcatIterator> |
3762 | <SpecificNumArithIterator_SubtractOperation_DOUBLE> |
3763 | <OpDoubleUnaryIterator> |
3764 | @@ -1595,12 +1595,12 @@ |
3765 | </ForVariable> |
3766 | <WhereClause> |
3767 | <TypedValueCompareIterator_DOUBLE> |
3768 | - <ForVarIterator varname="$$dot"/> |
3769 | + <ForVarIterator varname="$$context-item"/> |
3770 | <SingletonIterator value="xs:double(0)"/> |
3771 | </TypedValueCompareIterator_DOUBLE> |
3772 | </WhereClause> |
3773 | <ReturnClause> |
3774 | - <ForVarIterator varname="$$dot"/> |
3775 | + <ForVarIterator varname="$$context-item"/> |
3776 | </ReturnClause> |
3777 | </flwor::FLWORIterator> |
3778 | <SingletonIterator value="xs:integer(1)"/> |
3779 | @@ -2158,20 +2158,20 @@ |
3780 | <ForVariable name="ignore"> |
3781 | <LetVarIterator varname="ignore"/> |
3782 | </ForVariable> |
3783 | - <ForVariable name="$$dot"> |
3784 | + <ForVariable name="$$context-item"> |
3785 | <ChildAxisIterator test kind="match_name_test" qname="xs:QName(,,shapes)" typename="*" nill allowed="0"> |
3786 | <LetVarIterator varname="scene"/> |
3787 | </ChildAxisIterator> |
3788 | </ForVariable> |
3789 | - <ForVariable name="$$dot"> |
3790 | + <ForVariable name="$$context-item"> |
3791 | <ChildAxisIterator test kind="match_name_test" qname="*" typename="*" nill allowed="0"> |
3792 | - <ForVarIterator varname="$$dot"/> |
3793 | + <ForVarIterator varname="$$context-item"/> |
3794 | </ChildAxisIterator> |
3795 | </ForVariable> |
3796 | <WhereClause> |
3797 | <FnBooleanIterator> |
3798 | <IsSameNodeIterator> |
3799 | - <ForVarIterator varname="$$dot"/> |
3800 | + <ForVarIterator varname="$$context-item"/> |
3801 | <ForVarIterator varname="ignore"/> |
3802 | </IsSameNodeIterator> |
3803 | </FnBooleanIterator> |
3804 | @@ -2180,7 +2180,7 @@ |
3805 | <UDFunctionCallIterator> |
3806 | <LetVarIterator varname="source"/> |
3807 | <LetVarIterator varname="direction"/> |
3808 | - <ForVarIterator varname="$$dot"/> |
3809 | + <ForVarIterator varname="$$context-item"/> |
3810 | </UDFunctionCallIterator> |
3811 | </ReturnClause> |
3812 | </flwor::FLWORIterator> |
3813 | |
3814 | === modified file 'test/rbkt/ExpQueryResults/zorba/introspection/introsp-vars-1.xml.res' |
3815 | --- test/rbkt/ExpQueryResults/zorba/introspection/introsp-vars-1.xml.res 2012-09-17 00:36:37 +0000 |
3816 | +++ test/rbkt/ExpQueryResults/zorba/introspection/introsp-vars-1.xml.res 2012-09-26 13:28:22 +0000 |
3817 | @@ -1,2 +1,1 @@ |
3818 | -<?xml version="1.0" encoding="UTF-8"?> |
3819 | -$$dot |
3820 | \ No newline at end of file |
3821 | +$$context-item $$context-position $$context-size |
3822 | |
3823 | === modified file 'test/rbkt/ExpQueryResults/zorba/introspection/introsp-vars-3.xml.res' |
3824 | --- test/rbkt/ExpQueryResults/zorba/introspection/introsp-vars-3.xml.res 2012-09-17 00:36:37 +0000 |
3825 | +++ test/rbkt/ExpQueryResults/zorba/introspection/introsp-vars-3.xml.res 2012-09-26 13:28:22 +0000 |
3826 | @@ -1,2 +1,1 @@ |
3827 | -<?xml version="1.0" encoding="UTF-8"?> |
3828 | -2 |
3829 | \ No newline at end of file |
3830 | +4 |
3831 | |
3832 | === modified file 'test/rbkt/Queries/zorba/introspection/introsp-vars-1.xq' |
3833 | --- test/rbkt/Queries/zorba/introspection/introsp-vars-1.xq 2012-09-17 00:36:37 +0000 |
3834 | +++ test/rbkt/Queries/zorba/introspection/introsp-vars-1.xq 2012-09-26 13:28:22 +0000 |
3835 | @@ -1,3 +1,5 @@ |
3836 | import module namespace sctx = "http://www.zorba-xquery.com/modules/introspection/sctx"; |
3837 | |
3838 | -sctx:in-scope-variables() |
3839 | \ No newline at end of file |
3840 | +for $var in sctx:in-scope-variables() |
3841 | +order by xs:string($var) |
3842 | +return $var |
3843 | |
3844 | === modified file 'test/unit/cxx_api_changes.cpp' |
3845 | --- test/unit/cxx_api_changes.cpp 2012-09-18 21:23:14 +0000 |
3846 | +++ test/unit/cxx_api_changes.cpp 2012-09-26 13:28:22 +0000 |
3847 | @@ -113,7 +113,10 @@ |
3848 | varsIte->close(); |
3849 | |
3850 | if (lVars.size() != 2) |
3851 | + { |
3852 | + std::cout << "Expected 2 variables but got " << lVars.size() << std::endl; |
3853 | return false; |
3854 | + } |
3855 | |
3856 | std::vector<Item>::iterator lIte = lVars.begin(); |
3857 | std::vector<Item>::iterator lEnd = lVars.end(); |
The test added in test/empty does not test any of the new functionality, so it should be removed. A new test should be added in test/unit (and be made one of the unit tests that exist there already).