You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "John D. Ament (JIRA)" <ji...@apache.org> on 2016/04/04 03:51:25 UTC

[jira] [Created] (OPENJPA-2637) Invalid query syntax

John D. Ament created OPENJPA-2637:
--------------------------------------

             Summary: Invalid query syntax
                 Key: OPENJPA-2637
                 URL: https://issues.apache.org/jira/browse/OPENJPA-2637
             Project: OpenJPA
          Issue Type: Bug
          Components: jpa
            Reporter: John D. Ament


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 

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

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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)