Skip to content

Commit

Permalink
parse io_threads and sql_state as no-ops (#386)
Browse files Browse the repository at this point in the history
Co-authored-by: James Cor <[email protected]>
  • Loading branch information
jycor and James Cor authored Dec 4, 2024
1 parent b434820 commit 543d339
Show file tree
Hide file tree
Showing 4 changed files with 12,265 additions and 12,078 deletions.
2 changes: 2 additions & 0 deletions go/vt/sqlparser/keywords.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ var keywords = map[string]int{
"invoker": INVOKER,
"io_after_gtids": IO_AFTER_GTIDS,
"io_before_gtids": IO_BEFORE_GTIDS,
"io_thread": IO_THREAD,
"is": IS,
"isolation": ISOLATION,
"issuer": ISSUER,
Expand Down Expand Up @@ -584,6 +585,7 @@ var keywords = map[string]int{
"sql_small_result": SQL_SMALL_RESULT,
"sqlexception": SQLEXCEPTION,
"sqlstate": SQLSTATE,
"sql_thread": SQL_THREAD,
"sqlwarning": SQLWARNING,
"srid": SRID,
"ssl": SSL,
Expand Down
8 changes: 8 additions & 0 deletions go/vt/sqlparser/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,14 @@ var (
{
input: "stop replica",
},
{
input: "stop replica io_thread",
output: "stop replica",
},
{
input: "stop replica sql_thread",
output: "stop replica",
},
{
input: "show replica status",
},
Expand Down
Loading

0 comments on commit 543d339

Please sign in to comment.