Skip to content

Commit

Permalink
Merge pull request #297 from dolthub/fulghum/version
Browse files Browse the repository at this point in the history
Fixing the `version` keyword to not require identifier quotes
  • Loading branch information
fulghum authored Jan 3, 2024
2 parents 78fa0d3 + 4d6b201 commit a3640a7
Show file tree
Hide file tree
Showing 3 changed files with 8,224 additions and 8,253 deletions.
8 changes: 8 additions & 0 deletions go/vt/sqlparser/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ type parseTest struct {

var (
validSQL = []parseTest{
{
input: "SELECT * FROM base.version;",
output: "select * from base.`version`",
},
{
input: "CREATE VIEW version AS SELECT * FROM base.version;",
output: "create view `version` as select * from base.`version`",
},
{
input: "create table t123 (c1 varchar(5) check (c1 in ('v1', 'v2')) NOT NULL);",
output: "create table t123 (\n\tc1 varchar(5) not null,\n\tcheck (c1 in ('v1', 'v2'))\n)",
Expand Down
Loading

0 comments on commit a3640a7

Please sign in to comment.