Skip to content

Commit b1282d9

Browse files
Use Exec vs Query because no rows expected
1 parent 2f70faf commit b1282d9

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) setOptimizerSwitch() error {
5353
return nil
5454
}
5555
optimizerString := fmt.Sprintf("SET SESSION optimizer_switch=%q", this.migrationContext.OptimizerSwitch)
56-
_, err := this.db.Query(optimizerString)
56+
_, err := this.db.Exec(optimizerString)
5757
return err
5858
}
5959

0 commit comments

Comments
 (0)