Skip to content

Commit 202f730

Browse files
authored
Fix sqlparser cannot parse 'set names binary' (#18582)
Signed-off-by: canoriz <[email protected]>
1 parent 851a986 commit 202f730

File tree

3 files changed

+2355
-2194
lines changed

3 files changed

+2355
-2194
lines changed

go/vt/sqlparser/parse_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1451,6 +1451,9 @@ var (
14511451
}, {
14521452
input: "set names utf8 collate 'foo'",
14531453
output: "set names 'utf8'",
1454+
}, {
1455+
input: "set names binary",
1456+
output: "set names 'binary'",
14541457
}, {
14551458
input: "set character set utf8",
14561459
output: "set charset 'utf8'",

0 commit comments

Comments
 (0)