周雁鸣 (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiZTI2YWVkNzI5...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16421?atlOrigin=eyJpIjoiZTI2YW...
) HHH-16421 (
https://hibernate.atlassian.net/browse/HHH-16421?atlOrigin=eyJpIjoiZTI2YW...
) CriteriaBuilder.function() doesn't support PostgresQL any operator (
https://hibernate.atlassian.net/browse/HHH-16421?atlOrigin=eyJpIjoiZTI2YW...
)
Issue Type: Bug Affects Versions: 6.1.7, 6.2.0 Assignee: Unassigned Components:
hibernate-core, regression Created: 03/Apr/2023 00:29 AM Priority: Major Reporter: 周雁鸣 (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
cb.equal(cb.literal("test"), cb.function("any", String.class,
cb.function("string_to_array", String[].class, root.get("names"),
cb.literal(","))))
should generate sql with PostgresQL
'test'=any(string_to_array(names,','))
but throw org.hibernate.QueryException: Parameter 1 of function bool_or() has type
BOOLEAN, but argument is of type java.lang.String instead.
(
https://hibernate.atlassian.net/browse/HHH-16421#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16421#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#100221- sha1:d541bce )