1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Bug#32754 - InnoDB tests do not prepare or clean up correctly

Some test cases were missing preparation to deal with failed
predecessor test cases.

Added preparation (drop table if exists) to some test cases.
This commit is contained in:
istruewing@stella.local
2007-11-27 09:25:45 +01:00
parent 7fcf494018
commit 13f317c565
7 changed files with 18 additions and 0 deletions

View File

@ -2,6 +2,10 @@
# Bug #24200: Provide backwards compatibility mode for 4.x "rollback on # Bug #24200: Provide backwards compatibility mode for 4.x "rollback on
# transaction timeout" # transaction timeout"
# #
--disable_warnings
drop table if exists t1;
--enable_warnings
show variables like 'innodb_rollback_on_timeout'; show variables like 'innodb_rollback_on_timeout';
create table t1 (a int unsigned not null primary key) engine = innodb; create table t1 (a int unsigned not null primary key) engine = innodb;
insert into t1 values (1); insert into t1 values (1);

View File

@ -1,3 +1,4 @@
drop table if exists t1;
set session transaction isolation level read committed; set session transaction isolation level read committed;
create table t1(a int not null) engine=innodb DEFAULT CHARSET=latin1; create table t1(a int not null) engine=innodb DEFAULT CHARSET=latin1;
insert into t1 values (1),(2),(3),(4),(5),(6),(7); insert into t1 values (1),(2),(3),(4),(5),(6),(7);

View File

@ -1,3 +1,4 @@
drop table if exists t1, t2;
create table t1 ( create table t1 (
a int, b char(10), c char(10), filler char(10), primary key(a, b(2)), unique key (a, c(2)) a int, b char(10), c char(10), filler char(10), primary key(a, b(2)), unique key (a, c(2))
) character set utf8 engine = innodb; ) character set utf8 engine = innodb;

View File

@ -389,6 +389,7 @@ id select_type table type possible_keys key key_len ref rows Extra
SELECT DISTINCT t1.name, t1.dept FROM t1 WHERE t1.name='rs5'; SELECT DISTINCT t1.name, t1.dept FROM t1 WHERE t1.name='rs5';
name dept name dept
DROP TABLE t1; DROP TABLE t1;
drop table if exists t1;
show variables like 'innodb_rollback_on_timeout'; show variables like 'innodb_rollback_on_timeout';
Variable_name Value Variable_name Value
innodb_rollback_on_timeout OFF innodb_rollback_on_timeout OFF
@ -451,6 +452,7 @@ tes 1234
drop table test; drop table test;
set global query_cache_type=@save_qcache_type; set global query_cache_type=@save_qcache_type;
set global query_cache_size=@save_qcache_size; set global query_cache_size=@save_qcache_size;
drop table if exists t1;
show variables like 'innodb_rollback_on_timeout'; show variables like 'innodb_rollback_on_timeout';
Variable_name Value Variable_name Value
innodb_rollback_on_timeout OFF innodb_rollback_on_timeout OFF
@ -775,6 +777,7 @@ EXPLAIN SELECT SQL_BIG_RESULT b, SUM(c) FROM t1 GROUP BY b;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL 128 Using filesort 1 SIMPLE t1 ALL NULL NULL NULL NULL 128 Using filesort
DROP TABLE t1; DROP TABLE t1;
drop table if exists t1;
show variables like 'innodb_rollback_on_timeout'; show variables like 'innodb_rollback_on_timeout';
Variable_name Value Variable_name Value
innodb_rollback_on_timeout OFF innodb_rollback_on_timeout OFF

View File

@ -1,3 +1,4 @@
drop table if exists t1;
show variables like 'innodb_rollback_on_timeout'; show variables like 'innodb_rollback_on_timeout';
Variable_name Value Variable_name Value
innodb_rollback_on_timeout ON innodb_rollback_on_timeout ON

View File

@ -1,6 +1,10 @@
-- source include/not_embedded.inc -- source include/not_embedded.inc
-- source include/have_innodb.inc -- source include/have_innodb.inc
--disable_warnings
drop table if exists t1;
--enable_warnings
# basic tests of semi-consistent reads # basic tests of semi-consistent reads
connect (a,localhost,root,,); connect (a,localhost,root,,);

View File

@ -1,6 +1,10 @@
-- source include/have_innodb.inc -- source include/have_innodb.inc
-- source include/have_ucs2.inc -- source include/have_ucs2.inc
--disable_warnings
drop table if exists t1, t2;
--enable_warnings
# #
# BUG 14056 Column prefix index on UTF-8 primary key column causes: Can't find record.. # BUG 14056 Column prefix index on UTF-8 primary key column causes: Can't find record..
# #