diff options
Diffstat (limited to 'sql-bench/test-insert.sh')
-rwxr-xr-x | sql-bench/test-insert.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql-bench/test-insert.sh b/sql-bench/test-insert.sh index cdefcaf414f..b38d132d356 100755 --- a/sql-bench/test-insert.sh +++ b/sql-bench/test-insert.sh @@ -224,7 +224,7 @@ if ($limits->{'unique_index'}) $tmpvar^= ((($tmpvar + 63) + $i)*3 % $opt_loop_count); $tmp=$tmpvar % ($total_rows); $tmpquery = "$query ($tmp,1,2,'D')"; - if ($dbh->do($tmpquery)) + if (!$dbh->do($tmpquery)) { die "Didn't get an error when inserting duplicate record $tmp\n"; } |