From 4bfaf2d956c5ad675301a1b6d823c802000575d8 Mon Sep 17 00:00:00 2001 From: Florent Poinsard Date: Tue, 19 Jan 2021 21:32:57 +0100 Subject: [PATCH] addition of @@enable_system_settings in TestSelectSystemVariables Signed-off-by: Florent Poinsard --- go/vt/vtgate/executor_select_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/go/vt/vtgate/executor_select_test.go b/go/vt/vtgate/executor_select_test.go index d5783b070ce..48945d68c6f 100644 --- a/go/vt/vtgate/executor_select_test.go +++ b/go/vt/vtgate/executor_select_test.go @@ -327,7 +327,7 @@ func TestSelectSystemVariables(t *testing.T) { logChan := QueryLogger.Subscribe("Test") defer QueryLogger.Unsubscribe(logChan) - sql := "select @@autocommit, @@client_found_rows, @@skip_query_plan_cache, " + + sql := "select @@autocommit, @@client_found_rows, @@skip_query_plan_cache, @@enable_system_settings, " + "@@sql_select_limit, @@transaction_mode, @@workload, @@read_after_write_gtid, " + "@@read_after_write_timeout, @@session_track_gtids, @@ddl_strategy" @@ -337,6 +337,7 @@ func TestSelectSystemVariables(t *testing.T) { {Name: "@@autocommit", Type: sqltypes.Int32}, {Name: "@@client_found_rows", Type: sqltypes.Int32}, {Name: "@@skip_query_plan_cache", Type: sqltypes.Int32}, + {Name: "@@enable_system_settings", Type: sqltypes.Int32}, {Name: "@@sql_select_limit", Type: sqltypes.Int64}, {Name: "@@transaction_mode", Type: sqltypes.VarBinary}, {Name: "@@workload", Type: sqltypes.VarBinary}, @@ -351,6 +352,7 @@ func TestSelectSystemVariables(t *testing.T) { sqltypes.NULL, sqltypes.NULL, sqltypes.NULL, + sqltypes.NULL, sqltypes.NewInt64(0), sqltypes.NewVarBinary("UNSPECIFIED"), sqltypes.NewVarBinary(""),