Skip to content

Commit

Permalink
parser: cherry pick #975 (#1094)
Browse files Browse the repository at this point in the history
  • Loading branch information
tangwz authored Nov 13, 2020
1 parent 75bba1b commit 0798439
Show file tree
Hide file tree
Showing 4 changed files with 4,128 additions and 4,069 deletions.
2 changes: 2 additions & 0 deletions ast/ddl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,12 @@ func (ts *testDDLSuite) TestDDLColumnDefRestore(c *C) {
{"id enum('a','b')", "`id` ENUM('a','b')"},
{"id enum('''a''','''b''')", "`id` ENUM('''a''','''b''')"},
{"id enum('a\\nb','a\\tb','a\\rb')", "`id` ENUM('a\nb','a\tb','a\rb')"},
{"id enum(0x61, 0b01100010)", "`id` ENUM('a','b')"},
{"id set('a','b')", "`id` SET('a','b')"},
{"id set('''a''','''b''')", "`id` SET('''a''','''b''')"},
{"id set('a\\nb','a'' \\r\\nb','a\\rb')", "`id` SET('a\nb','a'' \r\nb','a\rb')"},
{`id set("a'\nb","a'b\tc")`, "`id` SET('a''\nb','a''b\tc')"},
{"id set(0x61, 0b01100010)", "`id` SET('a','b')"},
{"id TEXT CHARACTER SET UTF8 COLLATE UTF8_UNICODE_CI", "`id` TEXT CHARACTER SET UTF8 COLLATE utf8_unicode_ci"},
{"id text character set UTF8", "`id` TEXT CHARACTER SET UTF8"},
{"id text charset UTF8", "`id` TEXT CHARACTER SET UTF8"},
Expand Down
Loading

0 comments on commit 0798439

Please sign in to comment.