type not available during computation of function caching
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Released
|
High
|
Matthias Brantner |
Bug Description
The following query and schema cause an error to be raised because the schema type doesn't seem to be available when trying to determine if function caching should be done.
import schema namespace d = "http://
declare function local:recursion
{
if ($param)
then local:recursion(())
else false()
};
local:recursion
<?xml version="1.0" encoding="utf-8"?>
<xs:schema targetNamespace="http://
xmlns = "http://
<xs:complexType name="Content">
<xs:attribute name="id" type="xs:
</xs:
</xs:schema>
The error reported is:
type error [err:XPTY0004]: "[NodeXQType elementNode? content=
Related branches
- Markos Zaharioudakis: Approve
- Matthias Brantner: Approve
-
Diff: 63 lines (+26/-1)5 files modifiedChangeLog (+1/-0)
src/functions/udf.cpp (+1/-1)
test/rbkt/ExpQueryResults/zorba/udf/udf-recursive-2.xml.res (+1/-0)
test/rbkt/Queries/zorba/udf/schema.xsd (+13/-0)
test/rbkt/Queries/zorba/udf/udf-recursive-2.xq (+10/-0)
Changed in zorba: | |
status: | New → In Progress |
Changed in zorba: | |
status: | In Progress → Fix Committed |
Changed in zorba: | |
status: | Fix Committed → Fix Released |