~linuxjedi/drizzle/trunk-bug-667053

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/t/rpl_mixed_ddl_dml.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
# Mixed DDL-DML (CREATE ... SELECT ...) statements can only be
 
2
# replicated properly in statement-based replication.
 
3
# Currently statement based due to bug 12345
 
4
--source include/have_binlog_format_mixed_or_statement.inc
 
5
 
 
6
source include/master-slave.inc;
 
7
 
 
8
# Test replication of auto_increment
 
9
 
 
10
create table t1 (n int auto_increment primary key);
 
11
set insert_id = 2000;
 
12
insert into t1 values (NULL),(NULL),(NULL);
 
13
sync_slave_with_master;
 
14
select * from t1;
 
15
connection master;
 
16
--replace_result $SLAVE_MYPORT 9999
 
17
show slave hosts;
 
18
drop table t1;
 
19
sync_slave_with_master;
 
20
stop slave;
 
21
connection master;
 
22
 
 
23
# Test replication of timestamp
 
24
 
 
25
create table t2(id int auto_increment primary key, created datetime);
 
26
set timestamp=12345;
 
27
insert into t2 set created=now();
 
28
select * from t2;
 
29
 
 
30
# Test replication of CREATE .. LIKE (Bug #2557)
 
31
 
 
32
create table t3 like t2;
 
33
create temporary table t4 like t2;
 
34
create table t5 select * from t4;
 
35
save_master_pos;
 
36
connection slave;
 
37
start slave;
 
38
sync_with_master;
 
39
select * from t2;
 
40
show create table t3;
 
41
show create table t5;
 
42
connection master;
 
43
drop table t2,t3,t5;
 
44
sync_slave_with_master;
 
45
 
 
46
# End of 4.1 tests