Commit 19b95c06 authored by unknown's avatar unknown

Drop all tables before test case ends

parent 8402740a
...@@ -491,4 +491,4 @@ select * from t2 order by id; ...@@ -491,4 +491,4 @@ select * from t2 order by id;
id id
3 3
drop trigger kaboom; drop trigger kaboom;
drop table t1; drop table t1, t2;
use test; drop table if exists t1,t2;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9,t10;
create table t1 (a int key, b int unique, c int) engine ndb; create table t1 (a int key, b int unique, c int) engine ndb;
ERROR HY000: Can't create table 'test.t1' (errno: 299) ERROR HY000: Can't create table 'test.t1' (errno: 299)
CREATE LOGFILE GROUP lg1 CREATE LOGFILE GROUP lg1
...@@ -85,6 +84,7 @@ update t1 set b=b+100 where a > 7; ...@@ -85,6 +84,7 @@ update t1 set b=b+100 where a > 7;
delete from t1; delete from t1;
insert into t1 select * from t2; insert into t1 select * from t2;
create unique index new_index on t1 (b,c); create unique index new_index on t1 (b,c);
drop table t2;
drop table t1; drop table t1;
ERROR 42S02: Unknown table 't1' ERROR 42S02: Unknown table 't1'
create index new_index_fail on t1 (c); create index new_index_fail on t1 (c);
......
...@@ -337,4 +337,4 @@ delete from t1 where id in (1,2); ...@@ -337,4 +337,4 @@ delete from t1 where id in (1,2);
select * from t2 order by id; select * from t2 order by id;
drop trigger kaboom; drop trigger kaboom;
drop table t1; drop table t1, t2;
...@@ -3,8 +3,7 @@ ...@@ -3,8 +3,7 @@
-- source include/not_embedded.inc -- source include/not_embedded.inc
--disable_warnings --disable_warnings
use test; drop table if exists t1,t2;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9,t10;
--enable_warnings --enable_warnings
# operations allowed while cluster is in single user mode # operations allowed while cluster is in single user mode
...@@ -103,6 +102,8 @@ insert into t1 select * from t2; ...@@ -103,6 +102,8 @@ insert into t1 select * from t2;
# - prior to bugfix this would fail # - prior to bugfix this would fail
create unique index new_index on t1 (b,c); create unique index new_index on t1 (b,c);
drop table t2;
# test some sql on other mysqld # test some sql on other mysqld
--connection server2 --connection server2
--error 1051 --error 1051
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment