SqlFunction does not render the fragment after the last parameter

Description

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'=? .

The patch fixes the issue.

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?

Fixed

Details

Assignee

Reporter

Fix versions

Affects versions

Priority

Created November 10, 2022 at 1:49 PM
Updated December 7, 2022 at 2:24 PM
Resolved November 10, 2022 at 3:29 PM