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: