setting the static type of the context item is ignored

Bug #947627 reported by Till Westmann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
Undecided
Matthias Brantner

Bug Description

In test2 in test/unit/context_item.cpp, the static type of the context item is set to xs:integer via the C++ API. In the query in test/unit/context_item2.xq - which is used to create the static context - the context item is declared to be of type xs:string.

Currently the setting of the type via the C++ API is silently ignored. It seems that it should be reported as a error (similarly to the error that is reported if 2 declarations of the context item are given:
http://www.w3.org/TR/xquery-30/#id-context-item-declarations
http://www.w3.org/TR/xquery-30/#ERRXQST0099

Related branches

Till Westmann (tillw)
description: updated
Changed in zorba:
status: New → Fix Committed
Changed in zorba:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.