Skip to content

Commit

Permalink
Removed string literals as table aliases (not a standard mysql behavior)
Browse files Browse the repository at this point in the history
  • Loading branch information
zachmu committed Jul 7, 2023
1 parent 4f9bb97 commit 865285c
Show file tree
Hide file tree
Showing 3 changed files with 5,830 additions and 5,844 deletions.
9 changes: 0 additions & 9 deletions go/vt/sqlparser/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,12 +416,6 @@ var (
output: "select /* table alias */ 1 from t as t1",
}, {
input: "select /* table alias with as */ 1 from t as t1",
}, {
input: "select /* string table alias */ 1 from t as 't1'",
output: "select /* string table alias */ 1 from t as t1",
}, {
input: "select /* string table alias without as */ 1 from t 't1'",
output: "select /* string table alias without as */ 1 from t as t1",
}, {
input: "select /* keyword table alias */ 1 from t as `By`",
}, {
Expand All @@ -439,9 +433,6 @@ var (
output: "select /* table alias */ 1 from t as of '2019-01-01' as t1",
}, {
input: "select /* table alias with as */ 1 from t as of '2019-01-01' as t1",
}, {
input: "select /* string table alias */ 1 from t as of '2019-01-01' as 't1'",
output: "select /* string table alias */ 1 from t as of '2019-01-01' as t1",
}, {
input: "select /* keyword table alias */ 1 from t as of '2019-01-01' as `By`",
}, {
Expand Down
Loading

0 comments on commit 865285c

Please sign in to comment.