Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
James Cor committed Dec 5, 2024
1 parent eb74709 commit f619957
Showing 1 changed file with 32 additions and 12 deletions.
44 changes: 32 additions & 12 deletions go/vt/sqlparser/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3301,40 +3301,60 @@ var (
}, {
input: "PURGE BINARY LOGS BEFORE DATE_SUB(NOW(), INTERVAL 1 MONTH);",
output: "purge binary logs before DATE_SUB(NOW(), interval 1 MONTH)",
}, {
},
{
input: "FLUSH USER_RESOURCES",
output: "flush user_resources",
}, {
},
{
input: "FLUSH RELAY LOGS",
output: "flush relay logs",
}, {
},
{
input: "FLUSH LOCAL RELAY LOGS FOR CHANNEL 'connections'",
output: "flush local relay logs for channel connections",
}, {
},
{
input: "FLUSH LOCAL reLay lOgs FOR CHANNEL 'connections'",
output: "flush local relay logs for channel connections",
}, {
},
{
input: "FLUSH LOCAL OPTIMIZER_COSTS",
output: "flush local optimizer_costs",
}, {
},
{
input: "FLUSH NO_WRITE_TO_BINLOG HOSTS",
output: "flush no_write_to_binlog hosts",
}, {
},
{
input: "FLUSH TABLE `inventory`.`customers` WITH READ LOCK",
output: "flush table inventory.customers with read lock",
}, {
},
{
input: "FLUSH TABLES `inventory`.`customers` WITH READ LOCK",
output: "flush tables inventory.customers with read lock",
}, {
},
{
input: "FLUSH TABLES `inventory`.`customers`",
output: "flush tables inventory.customers",
}, {
},
{
input: "FLUSH TABLE WITH READ LOCK",
output: "flush table",
},
{
input: "FLUSH TABLES WITH READ LOCK",
output: "flush tables",
},
{
input: "FLUSH TABLE table1, foo.table2 WITH READ LOCK",
output: "flush table table1, foo.table2 with read lock",
}, {
},
{
input: "FLUSH TABLES table1, foo.table2 WITH READ LOCK",
output: "flush tables table1, foo.table2 with read lock",
}, {
},
{
input: "SHOW GRANTS",
output: "show grants",
}, {
Expand Down

0 comments on commit f619957

Please sign in to comment.