Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zanmato1984 committed Aug 14, 2024
1 parent af91e1d commit 3c4129c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tpch/workload.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func (w *Workloader) CheckPrepare(ctx context.Context, threadID int) error {
}

func (w *Workloader) setQueryTuningVars(ctx context.Context) error {
if w.cfg.QueryTuningConfig.Enable && w.cfg.Driver != "mysql" {
if w.cfg.QueryTuningConfig.Enable && w.cfg.Driver == "mysql" {
conn := w.getState(ctx).Conn
for _, v := range w.cfg.QueryTuningConfig.Vars {
if _, err := conn.ExecContext(ctx, fmt.Sprintf("SET @@session.%s", v)); err != nil {
Expand Down

0 comments on commit 3c4129c

Please sign in to comment.