HHH-3788 FirebirdDialect: current_date() function

This commit is contained in:
Brett Meyer 2013-01-23 16:52:27 -05:00
parent 09f8237d2f
commit eb84ff9a42
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}