Skip to content
This repository has been archived by the owner on Feb 10, 2022. It is now read-only.

Commit

Permalink
Bug fix relating to issue #29590
Browse files Browse the repository at this point in the history
  • Loading branch information
odelprat committed Jun 7, 2016
1 parent e34d199 commit e4f1160
Showing 1 changed file with 38 additions and 3 deletions.
41 changes: 38 additions & 3 deletions prod/VarDecl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,16 @@
<description>Test case based on K2-InterVariablesWithout-6 with XQuery 3.0 error code</description>
<created by="O'Neil Delpratt" on="2012-10-08"/>
<dependency type="spec" value="XQ30+"/>
<test>declare variable $local:myVar := local:myFunction(); declare function local:myFunction2() { local:myFunction(), $local:myVar }; declare function local:myFunction() { local:myFunction2() }; local:myFunction()</test>
<modified by="O'Neil Delpratt" on="2016-06-07" change="Bug fix relating to #29590"/>
<test>declare variable $local:myVar := local:myFunction();

declare function local:myFunction2() {
if (current-date() lt xs:date('1990-01-01')) then local:myFunction() else (), $local:myVar };

declare function local:myFunction() {
local:myFunction2() };

local:myFunction()</test>
<result>
<error code="XQDY0054"/>
</result>
Expand All @@ -807,8 +816,22 @@
<test-case name="K2-InternalVariablesWithout-7a" covers-30="declaration-cycles">
<description>Test case based on K2-InterVariablesWithout-7 with XQuery 3.0 error code</description>
<created by="O'Neil Delpratt" on="2012-10-08"/>
<modified by="O'Neil Delpratt" on="2016-05-03" change="Bug fix relating to #29590"/>
<dependency type="spec" value="XQ30+"/>
<test>declare variable $local:myVar := local:myFunction(); declare function local:myFunction2() { local:myFunction(), $local:myVar }; declare function local:myFunction4() { local:myFunction2() }; declare function local:myFunction3() { local:myFunction4() }; declare function local:myFunction() { local:myFunction3() }; local:myFunction()</test>
<test>declare variable $local:myVar := local:myFunction();
declare function local:myFunction2() {
if (current-date() lt xs:date('1990-01-01')) then local:myFunction() else (), $local:myVar };

declare function local:myFunction4() {
local:myFunction2() };

declare function local:myFunction3() {
local:myFunction4() };

declare function local:myFunction() {
local:myFunction3() };

local:myFunction()</test>
<result>
<error code="XQDY0054"/>
</result>
Expand All @@ -827,8 +850,20 @@
<test-case name="K2-InternalVariablesWithout-8a" covers-30="declaration-cycles">
<description>Test case based on K2-InterVariablesWithout-8 with XQuery 3.0 error code</description>
<created by="O'Neil Delpratt" on="2012-10-08"/>
<modified by="O'Neil Delpratt" on="2016-05-03" change="Bug fix relating to #29590"/>
<dependency type="spec" value="XQ30+"/>
<test>declare variable $local:myVar := local:myFunction(); declare function local:myFunction2() { local:myFunction4() }; declare function local:myFunction4() { local:myFunction2(), $local:myVar }; declare function local:myFunction3() { local:myFunction4() }; declare function local:myFunction() { local:myFunction3() }; local:myFunction()</test>
<test>declare variable $local:myVar := local:myFunction();

declare function local:myFunction2() { local:myFunction4() };

declare function local:myFunction4() {
if (current-date() lt xs:date('1990-01-01')) then local:myFunction2() else (), $local:myVar };

declare function local:myFunction3() { local:myFunction4() };

declare function local:myFunction() { local:myFunction3() };

local:myFunction()</test>
<result>
<error code="XQDY0054"/>
</result>
Expand Down

0 comments on commit e4f1160

Please sign in to comment.