Skip to content

Instantly share code, notes, and snippets.

@JosuaKrause
Created June 27, 2013 16:34
Show Gist options
  • Save JosuaKrause/5877998 to your computer and use it in GitHub Desktop.
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…
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" )
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()
xquery version "3.0";
declare function local:bar() as xs:integer {
xquery:eval(function() { "4" }())
};
local:bar()
xquery version "3.0";
declare function local:fun() as function(*) {
function() { "4" }
};
xquery:eval(local:fun()())
@ChristianGruen
Copy link

@LeoWoerteler: any idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment