[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

"to" operator

Wolfgang Meier wolfgang at exist-db.org
Wed Feb 22 21:50:18 PST 2012


  "to" operator
David,

It certainly is a bug: both expressions should cause an error. A variant of
this was reported as a bug a few days ago, so the problem is known.

Thanks,

Wolfgang
Am 23.02.2012 03:05 schrieb "Birnbaum, David J" <http://x-query.com/mailman/listinfo/talk>:

> Dear x-query list,
>
> Using eXist 2.0-tech-preview-rev15878-20120213 (sandbox), I understand why:
>
>  let $all := collection('/db/twitter')//tweet
>  return $all[1 to 10]
>
> returns an error, since a numeric predicate isn't supposed to be a
> sequence of more than one atomic value. The error report is:
>
>  err:FORG0006: effectiveBooleanValue: first item of '(1, 2, 3, 4, 5, 6,
> 7Š'
>  is not a node, and sequence length > 1
>
> What I don't understand is why the following *doesn't* return an error:
>
>  let $all := collection('/db/twitter')//tweet
>  let $range := 1 to 10
>  return $all[$range]
>
> When I run this second FLWOR, I retrieve my first ten tweets.
>
> What am I misunderstanding?
>
> Thanks,
>
> David
> http://x-query.com/mailman/listinfo/talk
>
>
> _______________________________________________
> http://x-query.com/mailman/listinfo/talk
> http://x-query.com/mailman/listinfo/talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://x-query.com/pipermail/talk/attachments/20120223/7f84ce61/attachment.html>


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.