Project

Profile

Help

Is this related to bug 1387942?

Added by Anonymous over 18 years ago

Legacy ID: #3490554 Legacy Poster: marcvc (marcvc)

Michael, this might well be related to bug 1387942 (Operators <, <=, >, >= return () not false). But as it occurs with value comparisons in combination with fn:boolean I though it was worth to mention. We run into this as our machine generated queries in specific circumstances include fn:boolean on expressions with "xs:boolean?" as static type. Subsequently we expect a boolean, and not the empty sequence. Consider the following query: for $i in (1,2,3) return boolean((if ($i != 2) then $i else ()) ge 2) It evaluates to false,true where it should be false, false, true. Thanks, Marc


Replies (1)

RE: Is this related to bug 1387942? - Added by Anonymous over 18 years ago

Legacy ID: #3490694 Legacy Poster: Michael Kay (mhkay)

This is an unrelated bug, which I have logged at https://sourceforge.net/tracker/index.php?func=detail&amp;aid=1388795&amp;group_id=29872&amp;atid=397617 There is optimization code present that dates back to the days when value comparisons never returned (). Michael Kay

    (1-1/1)

    Please register to reply