新版JDBC驱动使用WS协议写入数据,无法使用String写入到NCHAR类型字段、Integer写入到TINYINT类型字段
Open
@yu285 is already working on this.
Since Aug 17, 2025.
bug
- Dominant language
- C
- Stars
- 25.1k
- Forks
- 5k
- Avg merge
- 4d 59m
- Merged PRs (30d)
- 7
Description
使用3.5.0版本及之后的驱动,如下问题
String类型入库时会先转为byte数组,然后这个方法就直接强转了?
Integer类型入库时,也是直接强转,不判断下吗?
很想知道驱动有经过测试吗,根本就不敢升级
我认为在JDBC开发中,使用String映射NCHAR、Integer映射TINYINT是在正常不过的事了,但在TDengine上面的处理方式就很离谱
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.