TDengine icon indicating copy to clipboard operation
TDengine copied to clipboard

when inserting string with "$", taos-driver reported java.lang.IllegalArgumentException: Illegal group reference

Open duanfeixiang opened this issue 5 years ago • 1 comments

Bug Description 存储的字符串中带有问号,taos-driver报错java.lang.IllegalArgumentException: Illegal group reference

To Reproduce Steps to reproduce the behavior: 存储带问号的字符串

Expected Behavior 应该存储成功

Screenshots image image

replaceFirst、replaceAll方法,如果第二个参数中如果带$就会产生如上的报错。

Environment (please complete the following information):

  • taos-driver 2.0.11

Additional Context 最近发现好几个特殊字符的问题,单引号、问号和$

感觉taos-driver在字符串友好方面还待加强,尽量能做到让应用层不要感知对特殊字符的处理,不然每个使用taos-driver的应用方都要去考虑这层特殊处理,一不留神就掉坑里了。

当前我遇到特殊字符问题,替换为对应的中文字符或者空格先规避问题了。

duanfeixiang avatar Dec 18 '20 03:12 duanfeixiang

This issue is stale because it has been open for 30 days with no activity.

zyyang90 avatar Apr 18 '22 05:04 zyyang90