Skip to content

Commit

Permalink
Allow parsing of SECONDARY_ENGINE = NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
nicktobey committed Sep 25, 2023
1 parent eb645ef commit bc46514
Show file tree
Hide file tree
Showing 3 changed files with 7,071 additions and 7,061 deletions.
18 changes: 16 additions & 2 deletions go/vt/sqlparser/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3214,10 +3214,16 @@ var (
") secondary_engine rapid",
},
{
input: "create table t (i int) secondary_engine='rapid'",
input: "create table t (i int) secondary_engine=NULL",
output: "create table t (\n" +
"\ti int\n" +
") secondary_engine rapid",
") secondary_engine NULL",
},
{
input: "create table t (i int) secondary_engine NULL",
output: "create table t (\n" +
"\ti int\n" +
") secondary_engine NULL",
},
{
input: "alter table t secondary_engine=rapid",
Expand All @@ -3227,6 +3233,14 @@ var (
input: "alter table t secondary_engine rapid",
output: "alter table t",
},
{
input: "alter table t secondary_engine=NULL",
output: "alter table t",
},
{
input: "alter table t secondary_engine NULL",
output: "alter table t",
},
{
input: "create table t (i int) secondary_engine_attribute='rapid'",
output: "create table t (\n" +
Expand Down
Loading

0 comments on commit bc46514

Please sign in to comment.