glassfish
  1. glassfish
  2. GLASSFISH-20479

JPA 2.1: select where mystr<>'' also returns zero-length strings

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 4.0_dev
    • Fix Version/s: 4.0_dev
    • Component/s: entity-persistence
    • Labels:
      None
    • Environment:

      JDK 1.7.0_21, Glassfish 4.0_b88 (2013-05-05), JavaDB or MySQL

      Description

      Creating a JPA query searching for strings that are not empty - example:

      select e from NewEntity e where e.name<>''

      This also returns the empty strings where e.name = '' which is incorrect. This does not happen with earlier JPA/Eclipselink versions.

      I can provide a test case if necessary.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Mitesh Meswani
            Reporter:
            Peter Salomonsen
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: