Browse Source

Merge pull request #389 in CORE/base-third from ~ZED/base-third:release/10.0 to release/10.0

* commit '4e831051b9b005a3bc94069b22f678d371ba6843':
  DEC-12348 外置数据库导入数据失败
release/10.0
zed 5 years ago
parent
commit
c44b7807b5
  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