Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-1782

Accept double quoted string literal in JPQL

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.1.0
    • None
    • query
    • None

    Description

      A problem was found while using some Glassfish Java EE 6 samples with the OpenJPA provider.
      The sample was using double quotes for a literal on the "NOT LIKE" expression instead of the required single quotes:

      select count(l) from LogRecord l where l.record NOT LIKE "Canceling timer%"

      We do not allow double quoted literals in JPQL queries. The above JPQL resulted an error with text message:

      Lexical error at line 1, column 58. Encountered: "\"" (34), after : ""

      Attachments

        Activity

          People

            fancy Catalina Wei
            fancy Catalina Wei
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: