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

JPQL named parameter using a reserved word resulting in ArgumentException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.0
    • 1.3.0, 2.0.0-beta
    • query
    • None

    Description

      In JPA2, additional reserved words are introduced in the JPQL language. For example, KEY, VALUE, ENTRY, CASE, etc.
      These keywords is causing existing application that migrate to JPA2 regressed in ArgumentException (JPQL parser error).
      For example,

      JPQL: select c from Customer c where c.name = :value

      :value is a named parameter, but 'value' is a reserved word in JPA2.

      The above query used to work in OpenJPA-1.2.x but not in OpenJPA-2.x

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: