Bugs item #2876948, was opened at 2009-10-12 11:07
Message generated for change (Tracker Item Submitted) made by mvankeulen
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2876948&group_id=56967

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: PF general
Group: Pathfinder "stable"
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Maurice van Keulen (mvankeulen)
Assigned to: Nobody/Anonymous (nobody)
Summary: PF: error "We do not support the value NaN"

Initial Comment:
("Aug2009" stable, Linux)
Elements without textnodes are not treated correctly in predicates. The query 
below gives the error "We do not support the value NaN.". If you modify the 
query to return $noerror or $guarded, it works fine.

declare function ltnum($e as element(), $num as xs:double) as xs:boolean
{ if (empty($e/text())) then false() else ($e > $num) };

let $elems := (<a/>,<b/>,<c>20</c>)
let $error := $elems[. > 5]
let $noerror := for $e in $elems return if (empty($e/text())) then () else $e[. 
> 5]
let $guarded := $elems[ltnum(.,5)]
return $error

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2876948&group_id=56967

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to