Thomas Mueller created OAK-12494:
------------------------------------

             Summary: Index usage of NAME()='' (with empty value)
                 Key: OAK-12494
                 URL: https://issues.apache.org/jira/browse/OAK-12494
             Project: Jackrabbit Oak
          Issue Type: Improvement
            Reporter: Thomas Mueller


A query with a "name()=''" restriction ignores this restriction.
It is not allowed to have such names, but instead of dropping the restriction 
(which will allow too many results), the restriction should be used to mean "no 
entries", specially if there is a function-based index on "name()".

Example:
{noformat}
SELECT * FROM [nt:base] WHERE NAME() = '' 
{noformat}




--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to