Skip to content

Commit

Permalink
addition of @@enable_system_settings in TestSelectSystemVariables
Browse files Browse the repository at this point in the history
Signed-off-by: Florent Poinsard <[email protected]>
  • Loading branch information
frouioui committed Jan 19, 2021
1 parent ebf4d93 commit 4bfaf2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion go/vt/vtgate/executor_select_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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},
Expand All @@ -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(""),
Expand Down

0 comments on commit 4bfaf2d

Please sign in to comment.