Skip to content

Commit

Permalink
HHH-3788 FirebirdDialect: current_date() function
Browse files Browse the repository at this point in the history
  • Loading branch information
brmeyer committed Jan 23, 2013
1 parent f676e1e commit dea475f
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -25,6 +25,7 @@
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;

Expand Down Expand Up @@ -55,6 +56,7 @@ public InterbaseDialect() {
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);
}
Expand Down

0 comments on commit dea475f

Please sign in to comment.