3 Replies Latest reply on Aug 21, 2014 7:05 PM by Randall Hauch

    JCR Query in Modeshape returns no result when empty string used in comparison

    Valeriy Shtanko Newbie

      I found the problem with JCR Query in Modeshape when empty string used in comparison.

       

      Query

      SELECT * FROM [car:Car] AS cars WHERE [car:engine] = ''

      returns no nodes instead of expected 1 node.

       

      To reproduce suituation, files

        <modeshape-sources-dir>/modeshape-jcr/src/test/resources/io/cars-system-view.xml

        <modeshape-sources-dir>/modeshape-jcr/src/test/java/org/modeshape/jcr/JcrQueryManagerTest.java

       

      should be replaced with attachments.

       

      Test function is 'shouldBeAbleToFindResultSearchingByEmptyProperty'.