Emond Papegaaij (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiY2ZlM2NlNWZj...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-15703?atlOrigin=eyJpIjoiY2ZlM2...
) HHH-15703 (
https://hibernate.atlassian.net/browse/HHH-15703?atlOrigin=eyJpIjoiY2ZlM2...
) SqlFunction does not render the fragment after the last parameter (
https://hibernate.atlassian.net/browse/HHH-15703?atlOrigin=eyJpIjoiY2ZlM2...
)
Issue Type: Bug Affects Versions: 6.1.5 Assignee: Unassigned Created: 10/Nov/2022 05:49 AM
Priority: Major Reporter: Emond Papegaaij (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
The SqlFunction (the function render a free form SQL fragment) does not render the part of
the fragment after the last parameter. For example with the fragment upper , the closing
parenthesis will be missing. The attached testcase showcases the problem. The criteria
below renders select c1_0.id from Cheese c1_0 where upper('test'=?.
entityManager.createQuery(criteria.select(criteria.from(Cheese.class)).where(
cb.equal(cb.function( "sql" , String.class, cb.literal( "upper(?)"
), cb.literal( "test" )), "TEST" ))).getResultList();
(
https://hibernate.atlassian.net/browse/HHH-15703#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15703#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#100210- sha1:583150f )