[
https://issues.apache.org/jira/browse/OPENJPA-3040?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Richard Zowalla updated OPENJPA-3040:
-------------------------------------
Fix Version/s: 4.2.0
> 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)