From e14a1adb3497b708dfe2694840dba568b6e8ddb8 Mon Sep 17 00:00:00 2001 From: Rohan Yadav Date: Wed, 1 Jul 2020 14:18:11 -0400 Subject: [PATCH] mutations: remove session variable setting from postgres mutator Fixes #48087. This PR ensures that SQLSmith doesn't send session variable setting statements to Postgres in various comparison tests. Release note: None --- pkg/sql/mutations/mutations.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/sql/mutations/mutations.go b/pkg/sql/mutations/mutations.go index d10f61846cf7..bda017afb470 100644 --- a/pkg/sql/mutations/mutations.go +++ b/pkg/sql/mutations/mutations.go @@ -536,7 +536,7 @@ func postgresMutator(rng *rand.Rand, q string) string { var postgresStatementMutator MultiStatementMutation = func(rng *rand.Rand, stmts []tree.Statement) (mutated []tree.Statement, changed bool) { for _, stmt := range stmts { switch stmt := stmt.(type) { - case *tree.SetClusterSetting: + case *tree.SetClusterSetting, *tree.SetVar: continue case *tree.CreateTable: if stmt.Interleave != nil {