[
https://issues.apache.org/jira/browse/OPENJPA-3040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18133725#comment-18133725
]
ASF subversion and git services commented on OPENJPA-3040:
----------------------------------------------------------
Commit ecc1e48e5f5c0debd02905d396cfc6c9628bcc77 in openjpa's branch
refs/heads/OPENJPA-3040 from Richard Zowalla
[ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=ecc1e48e5 ]
[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
>
> 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)