Skip to content

Commit e17819e

Browse files
committed
HHH-8136 Correct "to_char" function in HSQL
1 parent 47443bc commit e17819e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hibernate-core/src/main/java/org/hibernate/dialect/HSQLDialect.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public HSQLDialect() {
142142
registerFunction( "reverse", new StandardSQLFunction( "reverse" ) );
143143
registerFunction( "space", new StandardSQLFunction( "space", StandardBasicTypes.STRING ) );
144144
registerFunction( "str", new SQLFunctionTemplate( StandardBasicTypes.STRING, "cast(?1 as varchar(256))" ) );
145-
registerFunction( "to_char", new StandardSQLFunction( "to_char" ) );
145+
registerFunction( "to_char", new StandardSQLFunction( "to_char", StandardBasicTypes.STRING ) );
146146
registerFunction( "rawtohex", new StandardSQLFunction( "rawtohex" ) );
147147
registerFunction( "hextoraw", new StandardSQLFunction( "hextoraw" ) );
148148

0 commit comments

Comments
 (0)