diff options
Diffstat (limited to 'sql-bench/test-ATIS.sh')
-rw-r--r-- | sql-bench/test-ATIS.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sql-bench/test-ATIS.sh b/sql-bench/test-ATIS.sh index 77e0e7d79bf..fa66dadd03e 100644 --- a/sql-bench/test-ATIS.sh +++ b/sql-bench/test-ATIS.sh @@ -106,6 +106,12 @@ if (!$opt_skip_create) } else { + if ($opt_fast && $server->{transactions}) + { + $dbh->{AutoCommit} = 0; + print "Transactions enabled\n" if ($opt_debug); + } + for ($ti = 0; $ti <= $#table_names; $ti++) { my $table_name = $table_names[$ti]; @@ -128,8 +134,14 @@ if (!$opt_skip_create) $row_count++; } } + if ($opt_fast && $server->{transactions}) + { + $dbh->commit; + $dbh->{AutoCommit} = 1; + } close(DATA); } + if ($opt_lock_tables) { $dbh->do("UNLOCK TABLES"); |