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

Vladimir A. Balandin (JIRA) noreply at atlassian.com
Mon Oct 22 08:16:38 EDT 2007


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


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