HHH-3788 FirebirdDialect: current_date() function
This commit is contained in:
parent
a0d97430fb
commit
11e6fd5daf
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue