Multiple comparisons in expressions wrongly allowed in XQuery syntax
Saxon allows multiple comparison operators in an expression (non-parenthesized), but this should not be allowed. e.g. See the failure of QT3 test op-boolean-equal-18: the expression 'true() eq true() eq true() eq true()' evaluates to true, but it should give a syntax error.
Updated by Debbie Lockett over 7 years ago
- Status changed from New to Resolved
- Assignee set to Debbie Lockett
- % Done changed from 0 to 100
Associativity of operator check added to precedence algorithm in parseBinaryExpression() method of XPathParser.
Patch committed to subversion (for 9.6 and 9.7). A few more test cases also added (to op-GeneralComp.eq, op-GeneralComp.lt, prod-is-same-node test sets).
Please register to edit this issue