Skip to content

Commit

Permalink
Use Exec vs Query because no rows expected
Browse files Browse the repository at this point in the history
  • Loading branch information
timvaillancourt authored Dec 9, 2023
1 parent 2f70faf commit b1282d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/logic/applier.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (this *Applier) setOptimizerSwitch() error {
return nil
}
optimizerString := fmt.Sprintf("SET SESSION optimizer_switch=%q", this.migrationContext.OptimizerSwitch)
_, err := this.db.Query(optimizerString)
_, err := this.db.Exec(optimizerString)
return err
}

Expand Down

0 comments on commit b1282d9

Please sign in to comment.