Skip to content

Commit

Permalink
mutations: remove session variable setting from postgres mutator
Browse files Browse the repository at this point in the history
Fixes #48087.

This PR ensures that SQLSmith doesn't send session variable setting
statements to Postgres in various comparison tests.

Release note: None
  • Loading branch information
rohany committed Jul 1, 2020
1 parent 51807b6 commit e14a1ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sql/mutations/mutations.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e14a1ad

Please sign in to comment.