summaryrefslogtreecommitdiff
path: root/sql-bench/crash-me.sh
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2001-06-05 04:05:33 +0300
committerunknown <monty@hundin.mysql.fi>2001-06-05 04:05:33 +0300
commitb1e00c96809479e5de09aa97509883ea96274b57 (patch)
treeb952b185420f1578799b95526a1c2eeb16a583b9 /sql-bench/crash-me.sh
parent9d77fddc79b6d1d19ea81aa15f4214dc46d72374 (diff)
downloadmariadb-git-b1e00c96809479e5de09aa97509883ea96274b57.tar.gz
Updated benchmarks and crash-me for postgreSQL 7.1.1
Fixed option for symlinks Docs/manual.texi: Updated symlink handling. sql-bench/Comments/postgres.benchmark: Updated benchmark text sql-bench/Makefile.am: Added graph-compare-results sql-bench/compare-results.sh: Don't reset the cmp option. sql-bench/crash-me.sh: Updated transaction testing. sql-bench/limits/mysql-3.23.cfg: Updated benchmark run sql-bench/limits/mysql.cfg: Updated benchmark run sql-bench/limits/pg.cfg: Updated benchmark run sql-bench/server-cfg.sh: Don't do vacuum too often. sql-bench/test-insert.sh: Don't do vacuum too often. sql/mysqld.cc: Changed skip-symlinks to skip-symlink
Diffstat (limited to 'sql-bench/crash-me.sh')
-rw-r--r--sql-bench/crash-me.sh39
1 files changed, 25 insertions, 14 deletions
diff --git a/sql-bench/crash-me.sh b/sql-bench/crash-me.sh
index badbcc85288..f6985adc5c0 100644
--- a/sql-bench/crash-me.sh
+++ b/sql-bench/crash-me.sh
@@ -38,7 +38,7 @@
# as such, and clarify ones such as "mediumint" with comments such as
# "3-byte int" or "same as xxx".
-$version="1.56";
+$version="1.57";
use DBI;
use Getopt::Long;
@@ -1539,12 +1539,24 @@ report("insert INTO ... SELECT ...","insert_select",
"insert into crash_q (a) SELECT crash_me.a from crash_me",
"drop table crash_q $drop_attr");
-report_trans("transactions","transactions",
- [create_table("crash_q",["a integer not null"],[]),
- "insert into crash_q values (1)"],
- "select * from crash_q",
- "drop table crash_q $drop_attr"
- );
+if (!defined($limits{"transactions"}))
+{
+ my ($limit,$type);
+ $limit="transactions";
+ print "$limit: ";
+ foreach $type (('', 'type=bdb', 'type=innodb', 'type=gemini'))
+ {
+ undef($limits{$limit});
+ last if (!report_trans($limit,
+ [create_table("crash_q",["a integer not null"],[],
+ $type),
+ "insert into crash_q values (1)"],
+ "select * from crash_q",
+ "drop table crash_q $drop_attr"
+ ));
+ }
+ print "$limits{$limit}\n";
+}
report("atomic updates","atomic_updates",
create_table("crash_q",["a integer not null"],["primary key (a)"]),
@@ -2500,8 +2512,7 @@ sub report_result
sub report_trans
{
- my ($prompt,$limit,$queries,$check,$clear)=@_;
- print "$prompt: ";
+ my ($limit,$queries,$check,$clear)=@_;
if (!defined($limits{$limit}))
{
eval {undef($dbh->{AutoCommit})};
@@ -2518,7 +2529,6 @@ sub report_trans
safe_query($clear);
} else {
$dbh->{AutoCommit} = 1;
- safe_query($clear);
save_config_data($limit,"error",$prompt);
}
} else {
@@ -2532,8 +2542,7 @@ sub report_trans
}
safe_query($clear);
}
- print "$limits{$limit}\n";
- return $limits{$limit} ne "no";
+ return $limits{$limit} ne "yes";
}
@@ -2961,9 +2970,11 @@ sub sql_concat
sub create_table
{
- my($table_name,$fields,$index) = @_;
+ my($table_name,$fields,$index,$extra) = @_;
my($query,$nr,$parts,@queries,@index);
+ $extra="" if (!defined($extra));
+
$query="create table $table_name (";
$nr=0;
foreach $field (@$fields)
@@ -3015,7 +3026,7 @@ sub create_table
}
}
chop($query);
- $query.= ')';
+ $query.= ") $extra";
unshift(@queries,$query);
return @queries;
}