[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-2902) parameterList and indexed parameters using concurrently

Gail Badner (JIRA) noreply at atlassian.com
Tue Oct 23 13:24:38 EDT 2007


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2902?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gail Badner resolved HHH-2902.
------------------------------

      Assignee: Gail Badner
    Resolution: Fixed

This was fixed in 3.1.2.

> parameterList and indexed parameters using concurrently
> -------------------------------------------------------
>
>                 Key: HHH-2902
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2902
>             Project: Hibernate3
>          Issue Type: Bug
>          Components: query-sql
>    Affects Versions: 3.0 rc 1
>         Environment: Database: Oracle
>            Reporter: Vladimir A. Balandin
>            Assignee: Gail Badner
>
> Query query = entityManager.getSession().createSQLQuery("SELECT * FROM items WHERE id IN (:ids) AND date>=? AND id IN (:ids2) ");
> query.setParameterList("ids", new Integer[]{1,2,3});
> query.setDate(0,Calendar.getInstance().getTime());
> query.setParameterList("ids2", new Integer[]{1,2,3});
> don't work with ora-00932 error, but following code work properly:
> Query query = entityManager.getSession().createSQLQuery("SELECT * FROM items WHERE date>=? AND id IN (:ids) AND id IN (:ids2) ");
> query.setDate(0,Calendar.getInstance().getTime());
> query.setParameterList("ids", new Integer[]{1,2,3});
> query.setParameterList("ids2", new Integer[]{1,2,3});

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list