This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 4830 - Errors for unused order by in K2-OrderbyExprWithout-8,9
Summary: Errors for unused order by in K2-OrderbyExprWithout-8,9
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: unspecified
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Frans Englich
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-28 14:08 UTC by Nick Jones
Modified: 2007-09-12 10:21 UTC (History)
0 users

See Also:


Attachments

Description Nick Jones 2007-06-28 14:08:39 UTC
These queries generate FLWOR expressions with an order by, but no for loop, eg:

let $i := (1, 3, 2)
order by $i
return $i

I think they allow a response, as they don't expect the orderspec to be evaluated as there is no for-loop to do the order by over. But I think it is valid to still evaluate the orderspec, and hence throw an err:XPTY0004 as $i doesn't have a single value.
Comment 1 Frans Englich 2007-07-13 12:24:21 UTC
The tests does in CVS also allow XPTY0004. XQTS_current.zip is updated.
Comment 2 Nick Jones 2007-09-12 10:21:28 UTC
Thanks.