From eb84ff9a42ae69bebb7e4a6501de863ad9f37044 Mon Sep 17 00:00:00 2001 From: Brett Meyer Date: Wed, 23 Jan 2013 16:52:27 -0500 Subject: [PATCH] HHH-3788 FirebirdDialect: current_date() function --- .../src/main/java/org/hibernate/dialect/InterbaseDialect.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/InterbaseDialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/InterbaseDialect.java index b04aa0996e..7e0a0b89d1 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/InterbaseDialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/InterbaseDialect.java @@ -25,6 +25,7 @@ package org.hibernate.dialect; import java.sql.Types; import org.hibernate.cfg.Environment; +import org.hibernate.dialect.function.NoArgSQLFunction; import org.hibernate.dialect.function.VarArgsSQLFunction; import org.hibernate.type.StandardBasicTypes; @@ -55,6 +56,7 @@ public class InterbaseDialect extends Dialect { registerColumnType( Types.CLOB, "blob sub_type 1" ); registerFunction( "concat", new VarArgsSQLFunction( StandardBasicTypes.STRING, "(","||",")" ) ); + registerFunction("current_date", new NoArgSQLFunction("current_date", StandardBasicTypes.DATE, false) ); getDefaultProperties().setProperty(Environment.STATEMENT_BATCH_SIZE, NO_BATCH); }