Skip to content

Commit

Permalink
fix(benchmark): fix sql for target and workload
Browse files Browse the repository at this point in the history
  • Loading branch information
ijsong committed Dec 16, 2022
1 parent f5abc7d commit cdc1268
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/benchmark/model/macro/target/target.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func Get(ctx context.Context, db *sql.DB, name string) (ret Target, err error) {
defer func() {
_ = stmt.Close()
}()
err = stmt.QueryRowContext(ctx, name).Scan(&ret.ID, &ret.ID, &ret.Name)
err = stmt.QueryRowContext(ctx, name).Scan(&ret.ID, &ret.Name)
if err != nil {
return ret, fmt.Errorf("macrobenchmark_target: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/benchmark/model/macro/workload/workload.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func Get(ctx context.Context, db *sql.DB, name string) (ret Workload, err error)
defer func() {
_ = stmt.Close()
}()
err = stmt.QueryRowContext(ctx, name).Scan(&ret.ID, &ret.ID, &ret.Name)
err = stmt.QueryRowContext(ctx, name).Scan(&ret.ID, &ret.Name)
if err != nil {
return ret, fmt.Errorf("macrobenchmark_workload: %w", err)
}
Expand Down

0 comments on commit cdc1268

Please sign in to comment.