From f6199570b871485bece0d801655c24d76b116cb2 Mon Sep 17 00:00:00 2001 From: James Cor Date: Thu, 5 Dec 2024 01:15:03 -0800 Subject: [PATCH] tests --- go/vt/sqlparser/parse_test.go | 44 +++++++++++++++++++++++++---------- 1 file changed, 32 insertions(+), 12 deletions(-) diff --git a/go/vt/sqlparser/parse_test.go b/go/vt/sqlparser/parse_test.go index a32aafc4bac..7ea2f4ae979 100644 --- a/go/vt/sqlparser/parse_test.go +++ b/go/vt/sqlparser/parse_test.go @@ -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", }, {