Skip to content

Commit

Permalink
Merge pull request #318 from dolthub/fulghum/binlog_statements
Browse files Browse the repository at this point in the history
Support for more binlog statements
  • Loading branch information
fulghum authored Mar 8, 2024
2 parents 5f7f589 + 919c452 commit 9bc43e5
Show file tree
Hide file tree
Showing 4 changed files with 10,093 additions and 10,052 deletions.
2 changes: 2 additions & 0 deletions go/vt/sqlparser/keywords.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ var keywords = map[string]int{
"localtimestamp": LOCALTIMESTAMP,
"lock": LOCK,
"locked": LOCKED,
"log": LOG,
"logs": LOGS,
"long": LONG,
"longblob": LONGBLOB,
Expand Down Expand Up @@ -483,6 +484,7 @@ var keywords = map[string]int{
"repeatable": REPEATABLE,
"replace": REPLACE,
"replica": REPLICA,
"replicas": REPLICAS,
"replicate_do_table": REPLICATE_DO_TABLE,
"replicate_ignore_table": REPLICATE_IGNORE_TABLE,
"replication": REPLICATION,
Expand Down
9 changes: 9 additions & 0 deletions go/vt/sqlparser/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,15 @@ var (
input: "SET @@GLOBAL.GTID_PURGED:= /*!80000 '+'*/ 'beabe64c-9dc6-11ed-8021-a0f9021e8e70:1-126';",
output: "set global GTID_PURGED = '+beabe64c-9dc6-11ed-8021-a0f9021e8e70:1-126'",
},
{
input: "show replicas",
},
{
input: "show binary logs",
},
{
input: "show binary log status",
},
{
input: "start replica",
},
Expand Down
Loading

0 comments on commit 9bc43e5

Please sign in to comment.