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