Skip to content

Commit

Permalink
randgen: fix postgres mutator for session vars
Browse files Browse the repository at this point in the history
Release note: None
  • Loading branch information
rafiss committed Jun 7, 2022
1 parent 02cc393 commit ab9529f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/sql/randgen/mutator.go
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,7 @@ var postgresStatementMutator MultiStatementMutation = func(rng *rand.Rand, stmts
for _, stmt := range stmts {
switch stmt := stmt.(type) {
case *tree.SetClusterSetting, *tree.SetVar, *tree.AlterTenantSetClusterSetting:
changed = true
continue
case *tree.CreateTable:
if stmt.PartitionByTable != nil {
Expand Down Expand Up @@ -832,6 +833,8 @@ func postgresCreateTableMutator(
}
}
stmt.Defs = newdefs
case *tree.SetVar:

}
}
return mutated, changed
Expand Down

0 comments on commit ab9529f

Please sign in to comment.