[
http://opensource.atlassian.com/projects/hibernate/browse/HB-655?page=com...
]
Christian Gruber commented on HB-655:
-------------------------------------
OK, but now, the new AST makes things easier, when I understood that correctly.
So your last comment is based on the fact "Environment: Hibernate 2.1.1". So,
shall I create a new ticket with the new environment "Hibernate 3.2.0" in the
HHH series, which still has the same defect?
Greetings,
Christian
Oracle limitation: large "where x in (....)'
--------------------------------------------
Key: HB-655
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HB-655
Project: Hibernate2
Type: Improvement
Components: core
Versions: 2.1.1
Environment: Hibernate 2.1.1
Oracle 8i
Reporter: Christian Gruber
Assignee: Emmanuel Bernard
Hello!
There is a problem with queries with named parameters that consist of big lists with
Oracle. An example:
Collection idList = new LinkedList();
for (int i=0; i<1001; i++) {
idList.add(new Integer(i));
}
Query query = session.createQuery("from Geneticelem as geneticelem where
geneticelem.id in (:ids)");
query.setParameterList("ids", idList, Hibernate.INTEGER);
Iterator geneticelems = query.iterate();
This code results in an ORA-01795 exception, because not more than 1000 elements are
allowed for "in".
In OJB, this is solved by splitting the "in" condition is split up in chunks:
http://db.apache.org/ojb/api/org/apache/ojb/broker/query/Criteria.html#ad...
Can something like this also be implemented in Hibernate? I know, it's a limitation
that will rarely be encountered, but still it's a limitation.
Thanks,
Christian
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira