Wrong parser used when importing module with no version declaration
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Confirmed
|
Medium
|
Nicolae Brinza |
Bug Description
module.xq:
module namespace mod = "http://
declare function mod:foo($json as json-item()) as json-item()
{
$json
};
query.jq:
jsoniq version "1.0";
import module namespace mod = "http://
mod:foo([1])
Output of running "zorba /tmp/query.jq":
</tmp/module.
This should not fail because "json" is not a reserved word in XQuery, and the XQuery parser should be used when compiling module.xq. However, evidently it is not used in this case, although it is if module.xq starts with "xquery version "3.0";".
(Note that the actual error about "json" being a reserved word is a separate issue, bug 1205118.)
Changed in zorba: | |
assignee: | nobody → Ghislain Fourny (gislenius) |
importance: | Undecided → High |
status: | New → Confirmed |
Bug 1205118 was already filed about point (B).