Skip to content

Commit 9e64fa3

Browse files
committed
opt: fix sysbench-update-non-index benchmark
The `sysbench-update-non-index` optimizer benchmark would previously fail with the error `variable sub-expressions are not allowed in...` because the placeholder string value was not correctly quoted. This has been fixed. Release note: None
1 parent 70acc70 commit 9e64fa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/sql/opt/bench/bench_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ var queries = [...]benchQuery{
407407
{
408408
name: "sysbench-update-non-index",
409409
query: `UPDATE sbtest SET c=$2 WHERE id=$1`,
410-
args: []interface{}{10, "foo"},
410+
args: []interface{}{10, "'foo'"},
411411
},
412412

413413
// 1. Table with many columns.

0 commit comments

Comments
 (0)