From d60c1689442158641dd8a233d2cf449a8bc78aa1 Mon Sep 17 00:00:00 2001 From: Steve Ebersole Date: Fri, 30 Dec 2011 21:25:02 -0600 Subject: [PATCH] HHH-6840 - Add to_char function to HSQLDialect --- .../src/main/java/org/hibernate/dialect/HSQLDialect.java | 1 + 1 file changed, 1 insertion(+) diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/HSQLDialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/HSQLDialect.java index 69c11d7fd3..bef64fe643 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/HSQLDialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/HSQLDialect.java @@ -143,6 +143,7 @@ public class HSQLDialect extends Dialect { registerFunction( "reverse", new StandardSQLFunction( "reverse" ) ); registerFunction( "space", new StandardSQLFunction( "space", StandardBasicTypes.STRING ) ); registerFunction( "str", new SQLFunctionTemplate( StandardBasicTypes.STRING, "cast(?1 as varchar(256))" ) ); + registerFunction( "to_char", new StandardSQLFunction( "to_char" ) ); registerFunction( "rawtohex", new StandardSQLFunction( "rawtohex" ) ); registerFunction( "hextoraw", new StandardSQLFunction( "hextoraw" ) );