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

« back to all changes in this revision

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

  • 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
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
set @old_global_binlog_format = @@global.binlog_format;
 
8
set @@global.binlog_format = row;
 
9
CREATE SCHEMA IF NOT EXISTS mysqlslap;
 
10
USE mysqlslap;
 
11
select @@global.binlog_format;
 
12
@@global.binlog_format
 
13
ROW
 
14
CREATE TABLE t1 (id INT primary key auto_increment, name VARCHAR(64));
 
15
FLUSH TABLE t1;
 
16
SELECT COUNT(*) FROM t1;
 
17
COUNT(*)
 
18
5000
 
19
use mysqlslap;
 
20
SELECT COUNT(*) FROM t1;
 
21
COUNT(*)
 
22
5000
 
23
truncate table t1;
 
24
insert delayed into t1 values(10, "my name");
 
25
insert delayed into t1 values(10, "is Bond"), (20, "James Bond");
 
26
flush table t1;
 
27
select * from t1;
 
28
id      name
 
29
10      my name
 
30
20      James Bond
 
31
select * from t1;
 
32
id      name
 
33
10      my name
 
34
20      James Bond
 
35
delete from t1 where id!=10;
 
36
insert delayed into t1 values(20, "is Bond"), (10, "James Bond");
 
37
flush table t1;
 
38
select * from t1;
 
39
id      name
 
40
10      my name
 
41
20      is Bond
 
42
select * from t1;
 
43
id      name
 
44
10      my name
 
45
20      is Bond
 
46
USE test;
 
47
DROP SCHEMA mysqlslap;
 
48
use test;
 
49
CREATE TABLE t1(a int, UNIQUE(a));
 
50
INSERT DELAYED IGNORE INTO t1 VALUES(1);
 
51
INSERT DELAYED IGNORE INTO t1 VALUES(1);
 
52
flush table t1;
 
53
select * from t1;
 
54
a
 
55
1
 
56
On slave
 
57
select * from t1;
 
58
a
 
59
1
 
60
drop table t1;
 
61
End of 5.0 tests
 
62
set @@global.binlog_format = @old_global_binlog_format;