mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
Drop all tables before test case ends
This commit is contained in:
parent
8402740acd
commit
19b95c0621
4 changed files with 7 additions and 6 deletions
|
@ -491,4 +491,4 @@ select * from t2 order by id;
|
|||
id
|
||||
3
|
||||
drop trigger kaboom;
|
||||
drop table t1;
|
||||
drop table t1, t2;
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
use test;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9,t10;
|
||||
drop table if exists t1,t2;
|
||||
create table t1 (a int key, b int unique, c int) engine ndb;
|
||||
ERROR HY000: Can't create table 'test.t1' (errno: 299)
|
||||
CREATE LOGFILE GROUP lg1
|
||||
|
@ -85,6 +84,7 @@ update t1 set b=b+100 where a > 7;
|
|||
delete from t1;
|
||||
insert into t1 select * from t2;
|
||||
create unique index new_index on t1 (b,c);
|
||||
drop table t2;
|
||||
drop table t1;
|
||||
ERROR 42S02: Unknown table 't1'
|
||||
create index new_index_fail on t1 (c);
|
||||
|
|
|
@ -337,4 +337,4 @@ delete from t1 where id in (1,2);
|
|||
select * from t2 order by id;
|
||||
|
||||
drop trigger kaboom;
|
||||
drop table t1;
|
||||
drop table t1, t2;
|
||||
|
|
|
@ -3,8 +3,7 @@
|
|||
-- source include/not_embedded.inc
|
||||
|
||||
--disable_warnings
|
||||
use test;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9,t10;
|
||||
drop table if exists t1,t2;
|
||||
--enable_warnings
|
||||
|
||||
# operations allowed while cluster is in single user mode
|
||||
|
@ -103,6 +102,8 @@ insert into t1 select * from t2;
|
|||
# - prior to bugfix this would fail
|
||||
create unique index new_index on t1 (b,c);
|
||||
|
||||
drop table t2;
|
||||
|
||||
# test some sql on other mysqld
|
||||
--connection server2
|
||||
--error 1051
|
||||
|
|
Loading…
Add table
Reference in a new issue