Browse Source

DEC-12348 外置数据库导入数据失败

release/10.0
zed 5 years ago
parent
commit
4e831051b9
  1. 2
      fine-hibernate/src/com/fr/third/org/hibernate/dialect/DB2Dialect.java

2
fine-hibernate/src/com/fr/third/org/hibernate/dialect/DB2Dialect.java

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

Loading…
Cancel
Save