Created
June 27, 2013 16:34
-
-
Save JosuaKrause/5877998 to your computer and use it in GitHub Desktop.
BaseX identifies test.xq as updating expression, while test1.xq, test2.xq are not considered updating expressions.
This makes invoke.xq fail with "[BBXQ0001] No updating expression allowed."
on https://github.com/BaseXdb/basex/commit/e6f2ef714e1bd53bcca54f502a5fd2739a07026c
Expected result would be: 4 4 4
Issue at https://github.com/BaseXdb/base…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "3.0"; | |
xquery:invoke( file:dir-name(static-base-uri()) || "test1.xq" ), | |
xquery:invoke( file:dir-name(static-base-uri()) || "test2.xq" ), | |
xquery:invoke( file:dir-name(static-base-uri()) || "test.xq" ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "3.0"; | |
declare function local:bar() as xs:integer { | |
xquery:eval(local:fun()()) | |
}; | |
declare function local:fun() as function(*) { | |
function() { "4" } | |
}; | |
local:bar() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "3.0"; | |
declare function local:bar() as xs:integer { | |
xquery:eval(function() { "4" }()) | |
}; | |
local:bar() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "3.0"; | |
declare function local:fun() as function(*) { | |
function() { "4" } | |
}; | |
xquery:eval(local:fun()()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@LeoWoerteler: any idea?