SqlFunction does not render the fragment after the last parameter
Description
Attachments
2
Activity
Show:

Emond Papegaaij November 10, 2022 at 2:50 PM
This PR only contains the fix, not the testcase, as I’m not sure how Hibernate ORM structures tests like these.

Christian Beikov November 10, 2022 at 2:25 PM
Thanks so much. Do you think you could create a pull request for this so that you get proper credit for your work?
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 rendersselect c1_0.id from Cheese c1_0 where upper('test'=?
.The patch fixes the issue.