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

ASF subversion and git services commented on OPENJPA-3040:
----------------------------------------------------------

Commit 3a027180e4b02625f97e7f439728bc2ed5d29c6f in openjpa's branch 
refs/heads/OPENJPA-3003 from Richard Zowalla
[ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=3a027180e ]

[OPENJPA-3040] Register criteria parameters used in the selection, group by and 
order by (#237)

* [OPENJPA-3040] Register criteria parameters used in the selection, group by 
and order by

* [OPENJPA-3040] Use try-with-resources in the test

* [OPENJPA-3040] Use pattern matching and check the type of group by and order 
by expressions

> Criteria parameter used only in the select list is not registered
> -----------------------------------------------------------------
>
>                 Key: OPENJPA-3040
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-3040
>             Project: OpenJPA
>          Issue Type: Sub-task
>            Reporter: Richard Zowalla
>            Assignee: Richard Zowalla
>            Priority: Major
>             Fix For: 4.2.0
>
>
> A criteria parameter that is used only in {{multiselect}}/{{select}}, for 
> example {{cb.left(root.get(name), len)}} in the select list, is not 
> registered with the query. {{query.setParameter("len", 2)}} then fails with
> {noformat}Parameter named "len" is not declared{noformat}
> before any SQL is built. The same parameter in the WHERE clause works. Found 
> while writing the tests for OPENJPA-3030.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to