XPTY0004 raised instead of XPST0003

Bug #867137 reported by Paul J. Lucas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
New
Medium
Nicolae Brinza

Bug Description

For the query:

let $x := <msg>42</msg>
return $x contains text 42

Zorba returns:

</tmp/x.xq>:2,25: type error [err:XPTY0004]: "xs:integer": can not promote to type "xs:string"; raised at /Users/pjl/src/flwor/zorba/trunk-2/zorba/src/runtime/core/sequencetypes.cpp:437

However, the expected result of the full-text query FTWordsValue-IntegerLiteral.xq (which is equivalent to the query above for the purpose of raising the error) is error XPST0003.

Tags: parser
Chris Hillery (ceejatec)
tags: removed: parser-normalization
tags: removed: v2.0
tags: added: parser
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.