Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions go/vt/sqlparser/ast.go
Original file line number Diff line number Diff line change
Expand Up @@ -3105,6 +3105,7 @@ type ConvertType struct {
// this string is "character set" and this comment is required
const (
CharacterSetStr = " character set"
CharsetStr = "charset"
)

// Format formats the node.
Expand Down
10 changes: 8 additions & 2 deletions go/vt/sqlparser/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1020,10 +1020,16 @@ var (
output: "show binlog",
}, {
input: "show character set",
output: "show character set",
output: "show charset",
}, {
input: "show character set like '%foo'",
output: "show character set",
output: "show charset",
}, {
input: "show charset",
output: "show charset",
}, {
input: "show charset like '%foo'",
output: "show charset",
}, {
input: "show collation",
output: "show collation",
Expand Down
Loading