|
|
@ -93,6 +93,8 @@ public class DB2Dialect extends Dialect { |
|
|
|
registerColumnType( Types.INTEGER, "integer" ); |
|
|
|
registerColumnType( Types.INTEGER, "integer" ); |
|
|
|
registerColumnType( Types.CHAR, "char(1)" ); |
|
|
|
registerColumnType( Types.CHAR, "char(1)" ); |
|
|
|
registerColumnType( Types.VARCHAR, "varchar($l)" ); |
|
|
|
registerColumnType( Types.VARCHAR, "varchar($l)" ); |
|
|
|
|
|
|
|
// DEC-12348 db2数据库9.7版本不会自动将nvarchar转varchar,需要在方言内处理
|
|
|
|
|
|
|
|
registerColumnType( Types.NVARCHAR, "varchar($l)" ); |
|
|
|
registerColumnType( Types.FLOAT, "float" ); |
|
|
|
registerColumnType( Types.FLOAT, "float" ); |
|
|
|
registerColumnType( Types.DOUBLE, "double" ); |
|
|
|
registerColumnType( Types.DOUBLE, "double" ); |
|
|
|
registerColumnType( Types.DATE, "date" ); |
|
|
|
registerColumnType( Types.DATE, "date" ); |
|
|
|