taosdata / taosdata/TDengine

新版JDBC驱动使用WS协议写入数据,无法使用String写入到NCHAR类型字段、Integer写入到TINYINT类型字段

Open
#32,369 2 comments 0 reactions 1 assignee View on GitHub

@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版本及之后的驱动,如下问题
Image

String类型入库时会先转为byte数组,然后这个方法就直接强转了?

Image

Integer类型入库时,也是直接强转,不判断下吗?

很想知道驱动有经过测试吗,根本就不敢升级

我认为在JDBC开发中,使用String映射NCHAR、Integer映射TINYINT是在正常不过的事了,但在TDengine上面的处理方式就很离谱

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.