Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XQuery, MIXUPDATES, function items #2136

Closed
ChristianGruen opened this issue Aug 14, 2022 · 0 comments
Closed

XQuery, MIXUPDATES, function items #2136

ChristianGruen opened this issue Aug 14, 2022 · 0 comments
Labels

Comments

@ChristianGruen
Copy link
Member

ChristianGruen commented Aug 14, 2022

Command script:

SET MIXUPDATES true
XQUERY xquery:eval('<a/> update { }')

The query raises an error. It should be detected as non-updating in spite of the MIXUPDATES flag.

Background: Various checks are omitted if MIXUPDATES is enabled.

if(qc.updating && !sc.mixUpdates) {
qc.functions.checkUp();
qc.vars.checkUp();
if(main != null) {
main.expr.checkUp();
qc.updating = main.expr.has(Flag.UPD);
} else {
qc.updating = false;
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant