Skip to content

Commit

Permalink
parse start transaction with consistent as no-op (#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
jycor authored Nov 26, 2024
1 parent 7d7ad4a commit 88972ec
Show file tree
Hide file tree
Showing 4 changed files with 10,388 additions and 10,364 deletions.
2 changes: 2 additions & 0 deletions go/vt/sqlparser/keywords.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ var keywords = map[string]int{
"condition": CONDITION,
"connection": CONNECTION,
"connection_admin": CONNECTION_ADMIN,
"consistent": CONSISTENT,
"constraint": CONSTRAINT,
"constraint_catalog": CONSTRAINT_CATALOG,
"constraint_name": CONSTRAINT_NAME,
Expand Down Expand Up @@ -558,6 +559,7 @@ var keywords = map[string]int{
"slave": SLAVE,
"slow": SLOW,
"smallint": SMALLINT,
"snapshot": SNAPSHOT,
"source": SOURCE,
"source_auto_position": SOURCE_AUTO_POSITION,
"source_connect_retry": SOURCE_CONNECT_RETRY,
Expand Down
3 changes: 3 additions & 0 deletions go/vt/sqlparser/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2791,6 +2791,9 @@ var (
}, {
input: "start transaction read write",
output: "start transaction read write",
}, {
input: "start transaction with consistent snapshot",
output: "start transaction",
}, {
input: "commit",
}, {
Expand Down
Loading

0 comments on commit 88972ec

Please sign in to comment.