[hibernate-issues] [JIRA] (HHH-4053) Incorrect SQL with substring for Firebird