binary类型字段,java服务,字符串值中包含单引号,插入数据时报错(invalid data or symbol)
Bug Description binary类型字段,java服务,字符串值中包含单引号,插入数据时报错(invalid data or symbol)
To Reproduce Steps to reproduce the behavior:
- java服务
- 插入数据,字符串类型字段中携带单引号插入会失败
Expected Behavior 预期插入成功,字符串中带单引号也是很比较常见的场景
Screenshots
-
不做转义

-
转义

Environment (please complete the following information): java服务,taos-jdbcdriver版本:2.0.11
Additional Context 传入 " ' " 或者 " \' " 经过验证都会失败,而传入" \\' "才可以插入成功。按照常规的逻辑,即使要求客户端应用要做转义,应用传入" \' "就可以了,而现在验证的结果是,应用要传入" \\' "才可以插入一个单引号。
麻烦确认一下,是设计约束,还是是实现上不符合预期的bug。

还有另外一个issue,被误认为和这个issue重复关掉了。带问号的字符串也是无法插入 https://github.com/taosdata/TDengine/issues/4526
感谢您的问题,我正在尝试复现并分析这个错误。
This issue is stale because it has been open for 30 days with no activity.
我也遇到了 目前是可以转义一个单引号,但是转双引号怎也转不进去。请问这个怎么解决呢。(目前只能在业务读取时将‘转换为’‘)