Code review comment for lp:~zorba-coders/zorba/bug1156249-minusZero

Revision history for this message
Sorin Marian Nasoi (sorin.marian.nasoi) wrote :

For some reason the 'eq' operator is broken after these changes.

In the following query you see that $x is xs:integer(0). But $x eq xs:integer(0) returns false...

QUERY:

import module namespace schema = "http://www.zorba-xquery.com/modules/schema";
declare variable $x:=fn:abs(xs:unsignedShort("0"));

(trace($x,"x"),
schema:schema-type($x),
$x eq xs:integer(0)
)

review: Needs Fixing

« Back to merge proposal