Oliver Breidenbach (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiNzJkNTBjNTYz...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-14119?atlOrigin=eyJpIjoiNzJkNT...
) HHH-14119 (
https://hibernate.atlassian.net/browse/HHH-14119?atlOrigin=eyJpIjoiNzJkNT...
) IN clause parameter padding not working for criteria query in conjunction with
LiteralHandlingMode.BIND (
https://hibernate.atlassian.net/browse/HHH-14119?atlOrigin=eyJpIjoiNzJkNT...
)
Issue Type: Bug Affects Versions: 5.4.18 Assignee: Unassigned Created: 27/Jul/2020 00:00
AM Priority: Major Reporter: Oliver Breidenbach (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
Having a criteria query with in literal query. The parameter padding does not happen, even
when the LiteralHandlingMode.BIND is used.
That is because of handling the LiteralHandlingMode.BIND at
InPredicate and LiteralExpression. Single parameters are added to the RenderingContext.
Maybe the complete List should be added, so QueryParameterBindingsImpl can take care of
the padding.
The 'in_clause_parameter_padding' is handelt QueryParameterBindingsImpl and is
looking for 'parameterLists'.
Do to @vladmihalcea that could be a bug:
Comment on "How to improve statement caching efficiency with IN clause parameter
padding" (
https://vladmihalcea.com/improve-statement-caching-efficiency-in-clause-p...
)
(
https://hibernate.atlassian.net/browse/HHH-14119#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-14119#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=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100140- sha1:fbb0377 )