Skip to content

Commit

Permalink
parentheses test
Browse files Browse the repository at this point in the history
  • Loading branch information
James Cor committed Jun 14, 2024
1 parent a8b3e1a commit e7ac74a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions go/vt/sqlparser/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,10 @@ var (
input: "values (1, 3), (2, 2), (3, 1) order by 2 limit 2",
output: "select * from (values row(1, 3), row(2, 2), row(3, 1)) order by 2 asc limit 2",
},
{
input: "(((values (1, 3), (2, 2), (3, 1) order by 2 limit 2)))",
output: "select * from (values row(1, 3), row(2, 2), row(3, 1)) order by 2 asc limit 2",
},
{
input: "select a from t1, lateral (select b from t2) as sq",
},
Expand Down

0 comments on commit e7ac74a

Please sign in to comment.