[hibernate-issues] [JIRA] (HHH-12984) Using nested function (substring(replace(X, a, b)), 1, 2) doesn't produce the right SQL output