Skip to content

Commit

Permalink
Allow parsing of CREATE TABLE t AS (...) UNION (...)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicktobey committed Sep 28, 2023
1 parent ea0c9a6 commit 5b302d3
Show file tree
Hide file tree
Showing 3 changed files with 11,360 additions and 11,332 deletions.
3 changes: 3 additions & 0 deletions go/vt/sqlparser/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,9 @@ var (
{
input: "select 1 from t except distinct select 1 from t",
},
{
input: "create table u as select 1 from t intersect all select 1 from t",
},
{
input: "(select id, a from t order by id limit 1) union (select id, b as a from s order by id limit 1) order by a limit 1",
output: "(select id, a from t order by id asc limit 1) union (select id, b as a from s order by id asc limit 1) order by a asc limit 1",
Expand Down
Loading

0 comments on commit 5b302d3

Please sign in to comment.