概要
在使用达梦数据库时,涉及Clob字段转为String时,在使用Clob转为流的方法clob.getCharacterStream()时报错index out of range,经数次查正后发现是达梦数据库的驱动有问题;
应使用如下依赖:
<dependency>
<groupId>com.dameng</groupId>
<artifactId>DmJdbcDriver18</artifactId>
<version>1.8.0</version>
</dependency>
小结
将驱动修改为1.8.0版本后恢复正常!太坑了。。。