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

Invalid query syntax

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: jpa
    • Labels:
      None

      Description

      DeltaSpike's started seeing a query failure when testing against TomEE 7 M3. The test result can be seen here: https://builds.apache.org/job/DeltaSpike_TomEE_7.0.0-M3/140/org.apache.deltaspike.modules$deltaspike-data-module-impl/testReport/org.apache.deltaspike.data.impl.criteria/CriteriaTest/should_create_count_criteria/

      The query generated looks something like

      select count(distinct e.name) from Simple e where e.name = ?
      

      OpenJPA seems to be trying to convert the long into a long via constructor

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                struberg Mark Struberg
                Reporter:
                johndament John D. Ament
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: