[JIRA] (HHH-16589) In-Clause Parameter Padding mistreats Dilect.getInExpressionCountLimit which can cause ORA-01795: maximum number of expressions in a list is 1000
by Adrodoc (JIRA)
Adrodoc ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5b2a4a0... ) *commented* on HHH-16589 ( https://hibernate.atlassian.net/browse/HHH-16589?atlOrigin=eyJpIjoiYWY3NG... )
Re: In-Clause Parameter Padding mistreats Dilect.getInExpressionCountLimit which can cause ORA-01795: maximum number of expressions in a list is 1000 ( https://hibernate.atlassian.net/browse/HHH-16589?atlOrigin=eyJpIjoiYWY3NG... )
While coding a fix I noticed two additional Bugs in this code:
* For a NOT-IN-Clause you would have to use AND instead of OR. Currently Hibernate generates a query like ID not in(?,?,?,?,...) or ID not in }}which is incorrect. It should be {{ID not in(?,?,?,?,...) and ID not in.
* No braces are added around multiple in clauses. For example if you have an additional where clause like ID < ? Hibernate generates ID < ? and id in(?,?,...) or id in. This query ignores the first predicate for all IDs in the second in clause.
( https://hibernate.atlassian.net/browse/HHH-16589#add-comment?atlOrigin=ey... ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-16589#add-comment?atlOrigin=ey... )
Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.... ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailN... ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100225- sha1:84d3b45 )
2 years, 11 months