pingcap / parser

A MySQL Compatible SQL Parser
Apache License 2.0
1.41k stars 489 forks source link

Invalid characters generated by goyacc? #1320

Closed jackysp closed 2 years ago

jackysp commented 3 years ago

Question

Invalid characters generated by goyacc?

截屏2021-08-21 下午6 35 08

happened in 48d84c1db4287c2649f9a38b3b23a55c4bd528b5

freeman983 commented 2 years ago

@jackysp I get the same problem in version 1.17, it is normal to use 1.16. I guess it may be related to this change in 1.17:

The Writer.WriteRune method now writes the replacement character U+FFFD for negative rune values, as it does for other invalid runes.

jackysp commented 2 years ago

https://github.com/pingcap/tidb/pull/29846 fixed it in TiDB repo. @freeman983