Closed Twilight-Shuxin closed 1 year ago
Given this XML document:
<T/>
and XPath Query
//*[position() < position()]
BaseX returned node T.
Should not select node as predicate evaluates to false always.
create database test <T/>
xquery //*[position() < position()]
No response
BaseX version: BaseX 10.7 beta latest commit 28e2e38 on Windows
Fixed, and optimized for all 6 operators (=, !=, <=, >=, <, >): EXPR[position() < position()] is rewritten to ().
EXPR[position() < position()]
()
Description of the Problem
Given this XML document:
and XPath Query
BaseX returned node T.
Expected Behavior
Should not select node as predicate evaluates to false always.
Steps to Reproduce the Behavior
create database test <T/>
xquery //*[position() < position()]
Do you have an idea how to solve the issue?
No response
What is your configuration?
BaseX version: BaseX 10.7 beta latest commit 28e2e38 on Windows