Richard Zowalla created OPENJPA-3040:
----------------------------------------

             Summary: 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


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