HHH-17772 Use Dialect#getLowercaseFunction instead of hard coding to lower

This commit is contained in:
Christian Beikov 2024-02-26 12:01:36 +01:00
parent 568ad5804e
commit c1746f5f82
1 changed files with 3 additions and 2 deletions

View File

@ -4401,7 +4401,8 @@ public abstract class AbstractSqlAstTranslator<T extends JdbcOperation> implemen
}
if ( ignoreCase ) {
appendSql("lower(");
appendSql( dialect.getLowercaseFunction() );
appendSql( OPEN_PARENTHESIS );
}
if ( inOverOrWithinGroupClause() ) {
@ -4412,7 +4413,7 @@ public abstract class AbstractSqlAstTranslator<T extends JdbcOperation> implemen
}
if ( ignoreCase ) {
appendSql(")");
appendSql( CLOSE_PARENTHESIS );
}
if ( sortOrder == SortDirection.DESCENDING ) {