diff options
author | monty@donna.mysql.com <> | 2000-10-17 23:57:26 +0300 |
---|---|---|
committer | monty@donna.mysql.com <> | 2000-10-17 23:57:26 +0300 |
commit | ee763533f237bbe8a2bca890a2355d62617268f0 (patch) | |
tree | eb0ea06c5f8bc368cbf64d32b74a6249d38c9530 /sql-bench | |
parent | 828bff9195ac194a10752a009f24a4e7e56f5d36 (diff) | |
download | mariadb-git-ee763533f237bbe8a2bca890a2355d62617268f0.tar.gz |
Fixed benchmarks and compare of NULL with <>
Diffstat (limited to 'sql-bench')
-rwxr-xr-x | sql-bench/test-insert.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sql-bench/test-insert.sh b/sql-bench/test-insert.sh index a6161781ba9..e6690b043f1 100755 --- a/sql-bench/test-insert.sh +++ b/sql-bench/test-insert.sh @@ -867,6 +867,10 @@ if ($server->small_rollback_segment()) if ($limits->{'insert_select'}) { + if ($opt_lock_tables) + { + $sth = $dbh->do("UNLOCK TABLES") || die $DBI::errstr; + } print "\nTesting INSERT INTO ... SELECT\n"; do_many($dbh,$server->create("bench2", ["id int NOT NULL", @@ -911,6 +915,10 @@ if ($limits->{'insert_select'}) $dbh->disconnect; # close connection $dbh = $server->connect(); } + if ($opt_lock_tables) + { + $sth = $dbh->do("LOCK TABLES bench1 WRITE") || die $DBI::errstr; + } } |