Skip to content

Commit 9f305b7

Browse files
Update go/logic/applier.go
Co-authored-by: Tim Vaillancourt <[email protected]>
1 parent 71df3e8 commit 9f305b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/logic/applier.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func (this *Applier) setOptimizer(tx *gosql.Tx) error {
5353
if this.migrationContext.OptimizerSwitch == "" {
5454
return nil
5555
}
56-
optimizerString := fmt.Sprintf("set session optimizer_switch=%q", this.migrationContext.OptimizerSwitch)
56+
optimizerString := fmt.Sprintf("SET SESSION optimizer_switch=%q", this.migrationContext.OptimizerSwitch)
5757
_, err := tx.Query(optimizerString)
5858
return err
5959
}

0 commit comments

Comments
 (0)