[ 
https://issues.apache.org/jira/browse/OPENJPA-2637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15243130#comment-15243130
 ] 

Mark Struberg commented on OPENJPA-2637:
----------------------------------------

That sounds familiar. might be a long vs Long problem.
Will try to dig into.

> 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)

Reply via email to