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 3368 - K-InternalVariablesWith-6 and K-InternalVariablesWith-7 expect error in insignificant part of query
Summary: K-InternalVariablesWith-6 and K-InternalVariablesWith-7 expect error in insig...
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.9.4
Hardware: Macintosh All
: P2 normal
Target Milestone: ---
Assignee: Andrew Eisenberg
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-19 19:06 UTC by Martin Probst
Modified: 2006-06-27 19:00 UTC (History)
1 user (show)

See Also:


Attachments

Description Martin Probst 2006-06-19 19:06:18 UTC
The tests K-InternalVariablesWith-6 and K-InternalVariablesWith-7 expect an error because of a wrong variable declaration:
declare variable $myVar as xs:gYear := 2006; true()

Implementations are IMHO not required to give an error here as this part of the query does not have to be evaluated to obtain the result of the query.
Comment 1 Frans Englich 2006-06-27 13:53:44 UTC
Yes, I agree in your spec interpretation.

To me the two tests seemed identical, so I changed one to actually use the variable(and therefore require XPTY0004), and the remaining one to allow 'true' as output or XPTY0004 as error.

Frans
Comment 2 Frans Englich 2006-06-27 19:00:23 UTC
Since this report was resolved as suggested, I am changing status to CLOSED. If
this report was not resolved in a satisfactory way, feel free to change status to REOPENED.


Frans