sql/parse/parse.go is littered by invalid string splicing #57347
Labels
A-sql-syntax
Issues strictly related to the SQL grammar, with no semantic aspect
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
Projects
We see code like this:
This improperly expands the SQL name as a string, and misses escaping when the name contains special characters.
There may be other occurrences elsewhere in the source tree.
Example resulting bug, found in the wild: #57187
A general fix for this would be to apply the technique that @petermattis designed for the CC code here: https://github.com/cockroachlabs/managed-service/pull/4223
The text was updated successfully, but these errors were encountered: