Browse Source

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

* commit '94b841b9117c30394f07979ed8d04ad15729562c':
  DEC-12348 外置数据库导入数据失败
research/11.0
zed 5 years ago
parent
commit
1476ee75b8
  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.CHAR, "char(1)" );
registerColumnType( Types.VARCHAR, "varchar($l)" );
// DEC-12348 db2数据库9.7版本不会自动将nvarchar转varchar,需要在方言内处理
registerColumnType( Types.NVARCHAR, "varchar($l)" );
registerColumnType( Types.FLOAT, "float" );
registerColumnType( Types.DOUBLE, "double" );
registerColumnType( Types.DATE, "date" );

Loading…
Cancel
Save