~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/r/rpl_mixed_ddl_dml.result

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
stop slave;
 
2
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
3
reset master;
 
4
reset slave;
 
5
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
6
start slave;
 
7
create table t1 (n int auto_increment primary key);
 
8
set insert_id = 2000;
 
9
insert into t1 values (NULL),(NULL),(NULL);
 
10
select * from t1;
 
11
n
 
12
2000
 
13
2001
 
14
2002
 
15
show slave hosts;
 
16
Server_id       Host    Port    Rpl_recovery_rank       Master_id
 
17
2       127.0.0.1       9999    0       1
 
18
drop table t1;
 
19
stop slave;
 
20
create table t2(id int auto_increment primary key, created datetime);
 
21
set timestamp=12345;
 
22
insert into t2 set created=now();
 
23
select * from t2;
 
24
id      created
 
25
1       1970-01-01 06:25:45
 
26
create table t3 like t2;
 
27
create temporary table t4 like t2;
 
28
create table t5 select * from t4;
 
29
start slave;
 
30
select * from t2;
 
31
id      created
 
32
1       1970-01-01 06:25:45
 
33
show create table t3;
 
34
Table   Create Table
 
35
t3      CREATE TABLE `t3` (
 
36
  `id` int(11) NOT NULL AUTO_INCREMENT,
 
37
  `created` datetime DEFAULT NULL,
 
38
  PRIMARY KEY (`id`)
 
39
) ENGINE=MyISAM DEFAULT CHARSET=latin1
 
40
show create table t5;
 
41
Table   Create Table
 
42
t5      CREATE TABLE `t5` (
 
43
  `id` int(11) NOT NULL DEFAULT '0',
 
44
  `created` datetime DEFAULT NULL
 
45
) ENGINE=MyISAM DEFAULT CHARSET=latin1
 
46
drop table t2,t3,t5;