[Bug 4830] Errors for unused order by in K2-OrderbyExprWithout-8,9

http://www.w3.org/Bugs/Public/show_bug.cgi?id=4830

           Summary: Errors for unused order by in K2-OrderbyExprWithout-8,9
           Product: XML Query Test Suite
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XML Query Test Suite
        AssignedTo: andrew.eisenberg@us.ibm.com
        ReportedBy: nick@cbcl.co.uk
         QAContact: public-qt-comments@w3.org


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.

Received on Thursday, 28 June 2007 14:08:55 UTC