跳到主要内容

v4.2.5 (2021-03-31)

<dependency>
<groupId>net.hasor</groupId>
<artifactId>hasor-db</artifactId>
<version>4.2.5</version>
</dependency>

优化

  • JdbcTemplatesetParameterValue 通过 TypeHandlerRegistry 来设置
  • 增加 MySQL 元信息获取工具,绕过 JDBC 驱动直接查询元信息仓。规避掉驱动实现上的风险
  • TypeHandlerRegistry 修复 CLOB\NCLOBString 类型的映射错误的 映射到了 ClobReaderTypeHandler/NClobReaderTypeHandler
  • TypeHandlerRegistry.registerCross 方法改为 public

修复

  • MySQL 中 year 类型的元信息驱动返回 jdbcTypeDATE,但是 mysql 驱动并不支持使用 getDate() 读取该类型
  • UnknownTypeHandler 在 init 过程中,出现 NPE 的问题。https://gitee.com/zycgit/hasor/issues/I3A90Z