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

JPQL Functions (CONCAT, TRIM, etc) doesnt works with IN clause

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Incomplete
    • None
    • None
    • jdbc
    • None

    Description

      I was triying to use functions in my query as per the documentations however was getting errors when Functions are used with IN clause, same functions do work with comparator!!

      Consider 2 entities
      Employee[empId, lastName, firstName, mgrID] and
      Manager[mgrId, empId]

      Failing query
      Select e from Employee e where CONCAT(firstName, lastName) IN ('First1Last1', 'First2Last2')

      working Query
      Select e from Employee e where CONCAT(firstName, lastName) = 'First1Last1' OR CONCAT(firstName, lastName) = 'First2Last2'

      Attachments

        Activity

          People

            Unassigned Unassigned
            ru4amol Amol Bhosale
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: