Emond Papegaaij (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiOGRkZDZmMDY2...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-15703?atlOrigin=eyJpIjoiOGRkZD...
) HHH-15703 (
https://hibernate.atlassian.net/browse/HHH-15703?atlOrigin=eyJpIjoiOGRkZD...
) SqlFunction does not render the fragment after the last parameter (
https://hibernate.atlassian.net/browse/HHH-15703?atlOrigin=eyJpIjoiOGRkZD...
)
Change By: 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'=?}} .
{code:java}entityManager.createQuery(criteria.select(criteria.from(Cheese.class)).where(
cb.equal(cb.function("sql", String.class, cb.literal("upper(?)"),
cb.literal("test")), "TEST"))).getResultList();{code}
The patch fixes the issue.
(
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 )