summaryrefslogtreecommitdiff
path: root/sql-bench
diff options
context:
space:
mode:
authorHakan Kuecuekyilmaz <hakan@askmonty.org>2011-05-23 15:56:43 +0200
committerHakan Kuecuekyilmaz <hakan@askmonty.org>2011-05-23 15:56:43 +0200
commitc102ab13bce5931e0e40aef4f74ef7d2da42b5b1 (patch)
tree73d0812d8a0b03d941be44d222dd3e05f437800c /sql-bench
parentc9a0d7338cb5c12ba8775f7b8fbfc7951bf9db4e (diff)
downloadmariadb-git-c102ab13bce5931e0e40aef4f74ef7d2da42b5b1.tar.gz
Enable PBXT to be a transactional engine for sql-bench.
HEAP is deprecated in favor of MEMORY.
Diffstat (limited to 'sql-bench')
-rw-r--r--sql-bench/server-cfg.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/sql-bench/server-cfg.sh b/sql-bench/server-cfg.sh
index 76334d76108..de92fd80a40 100644
--- a/sql-bench/server-cfg.sh
+++ b/sql-bench/server-cfg.sh
@@ -179,12 +179,23 @@ sub new
{
$limits{'working_blobs'} = 0; # HEAP tables can't handle BLOB's
}
+ # HEAP is deprecated in favor of MEMORY
+ if (defined($main::opt_create_options) &&
+ $main::opt_create_options =~ /engine=memory/i)
+ {
+ $limits{'working_blobs'} = 0; # MEMORY tables can't handle BLOB's
+ }
if (defined($main::opt_create_options) &&
$main::opt_create_options =~ /engine=innodb/i)
{
$self->{'transactions'} = 1; # Transactions enabled
}
if (defined($main::opt_create_options) &&
+ $main::opt_create_options =~ /engine=pbxt/i)
+ {
+ $self->{'transactions'} = 1; # Transactions enabled
+ }
+ if (defined($main::opt_create_options) &&
$main::opt_create_options =~ /engine=ndb/i)
{
$self->{'transactions'} = 1; # Transactions enabled