~stewart/drizzle/embedded-innodb-create-select-transaction-arrgh

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/t/rpl_drop_db.test

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# test case for BUG#4680 -- if there are extra files in the db directory
 
2
# dropping the db on the master causes replication problems
 
3
 
 
4
-- source include/master-slave.inc
 
5
connection master;
 
6
 
 
7
--disable_warnings
 
8
drop database if exists mysqltest1;
 
9
--enable_warnings
 
10
create database mysqltest1;
 
11
create table mysqltest1.t1 (n int);
 
12
insert into mysqltest1.t1 values (1);
 
13
select * from mysqltest1.t1 into outfile 'mysqltest1/f1.txt';
 
14
create table mysqltest1.t2 (n int);
 
15
create table mysqltest1.t3 (n int);
 
16
--replace_result \\ /
 
17
--error 1010
 
18
drop database mysqltest1;
 
19
use mysqltest1;
 
20
show tables;
 
21
 
 
22
# test the branch of the code that deals with the query buffer overflow
 
23
 
 
24
--disable_query_log
 
25
let $1=50;
 
26
while ($1)
 
27
{
 
28
  eval create table mysqltest1.mysqltest_long_table_name$1 (n int);
 
29
  dec $1;
 
30
}
 
31
--enable_query_log
 
32
 
 
33
--replace_result \\ /
 
34
--error 1010
 
35
drop database mysqltest1;
 
36
use mysqltest1;
 
37
show tables;
 
38
use test;
 
39
create table t1 (n int);
 
40
insert into t1 values (1234);
 
41
sync_slave_with_master;
 
42
 
 
43
connection slave;
 
44
use mysqltest1;
 
45
show tables;
 
46
use test;
 
47
select * from t1;
 
48
 
 
49
#cleanup
 
50
connection slave;
 
51
stop slave;
 
52
drop database mysqltest1;
 
53
 
 
54
connection master;
 
55
# Remove the "extra" file created above
 
56
--remove_file $MYSQLTEST_VARDIR/master-data/mysqltest1/f1.txt
 
57
drop database mysqltest1;
 
58
 
 
59
use test;
 
60
drop table t1;
 
61