HHH-6786 DB2 v97 doesn't support define a boolean type column

This commit is contained in:
Strong Liu 2011-11-01 14:18:18 +08:00
parent dbbb3cb0d3
commit d370865c9f
1 changed files with 1 additions and 0 deletions

View File

@ -62,6 +62,7 @@ public class DB2Dialect extends Dialect {
registerColumnType( Types.CLOB, "clob($l)" );
registerColumnType( Types.LONGVARCHAR, "long varchar" );
registerColumnType( Types.LONGVARBINARY, "long varchar for bit data" );
registerColumnType( Types.BOOLEAN, "smallint" );
registerFunction( "avg", new AvgWithArgumentCastFunction( "double" ) );