~ubuntu-branches/ubuntu/lucid/mysql-dfsg-5.1/lucid-security

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 22:33:55 UTC
  • mto: (1.2.1) (37.1.1 lucid-security)
  • mto: This revision was merged to the branch mainline in revision 36.
  • Revision ID: package-import@ubuntu.com-20120222223355-ku1tb4r70osci6v2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
include/master-slave.inc
 
2
[connection master]
 
3
CREATE TABLE t1 (
 
4
a INT UNSIGNED NOT NULL PRIMARY KEY
 
5
) ENGINE=innodb;
 
6
CREATE TABLE t2 (
 
7
a INT UNSIGNED
 
8
) ENGINE=innodb;
 
9
INSERT INTO t1 VALUES (1);
 
10
INSERT INTO t2 VALUES (1);
 
11
INSERT INTO t1 SELECT t2.a FROM t2 ORDER BY t2.a ON DUPLICATE KEY UPDATE t1.a= t1.a;
 
12
include/assert.inc [Sum of elements in t1 should be 1.]
 
13
include/assert.inc [In SBR or MIXED modes, the event in the binlog should be the same that was executed. In RBR mode, binlog position should stay unchanged.]
 
14
include/diff_tables.inc [master:test.t1 , slave:test.t1]
 
15
drop table t1, t2;
 
16
CREATE TABLE t1 (
 
17
a INT UNSIGNED NOT NULL PRIMARY KEY
 
18
) ENGINE=myisam;
 
19
CREATE TABLE t2 (
 
20
a INT UNSIGNED
 
21
) ENGINE=myisam;
 
22
INSERT INTO t1 VALUES (1);
 
23
INSERT INTO t2 VALUES (1);
 
24
INSERT INTO t1 SELECT t2.a FROM t2 ORDER BY t2.a ON DUPLICATE KEY UPDATE t1.a= t1.a;
 
25
include/assert.inc [Sum of elements in t1 should be 1.]
 
26
include/assert.inc [In SBR or MIXED modes, the event in the binlog should be the same that was executed. In RBR mode, binlog position should stay unchanged.]
 
27
include/diff_tables.inc [master:test.t1 , slave:test.t1]
 
28
drop table t1, t2;
 
29
include/rpl_end.inc