taosdata / TDengine

High-performance, scalable time-series database designed for Industrial IoT (IIoT) scenarios
https://tdengine.com
GNU Affero General Public License v3.0
23.24k stars 4.84k forks source link

Use Schemaless to write influxdb line protocol data. Error if single quotes exist in string, even if escaped. #11073

Closed liujianming04 closed 2 years ago

liujianming04 commented 2 years ago

Bug Description 使用schemaless写入influx行协议数据,如果字符串中存在单引号,会写入报错,转义了也不行

To Reproduce 打印出来的是influx行协议数据,直接传到接口,单引号转义和不转义都报错,去掉单引号就能写入成功。

0 1

Expected Behavior 单引号无需转义,直接写入

Screenshots

Environment (please complete the following information):

Additional Context

fenghuazzm commented 2 years ago

已在 2.4、develop 分支修复,可关注 2.4 下个发布版本。(应该是 2.4.0.16 )