Debian Codegraph @

mysql-test/suite/group_replication/r/gr_DML_error.result

raw
1 include/group_replication.inc
2 Warnings:
3 Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
4 Note #### Storing MySQL user name or password information in the connection metadata repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START REPLICA; see the 'START REPLICA Syntax' in the MySQL Manual for more information.
5 [connection server1]
6 # Verify the statements can be binlogged correctly when error happens
7 CREATE TABLE t1(c1 INT PRIMARY KEY) ENGINE=innodb;
8 CREATE TABLE t2(c1 INT PRIMARY KEY) ENGINE=innodb;
9 INSERT INTO t1 VALUES(1);
10 INSERT INTO t2 VALUES(1);
11
12 # Nothing is inserted.
13 INSERT INTO t1 VALUES(1),(2);
14 ERROR 23000: Duplicate entry '1' for key 't1.PRIMARY'
15 include/show_binlog_events.inc
16 include/assert.inc [No new row inserted in the table]
17 include/rpl_sync.inc
18 include/diff_tables.inc [server1:test.t1, server2:test.t1]
19
20 # Nothing is inserted.
21 INSERT INTO t1 SELECT 1 UNION SELECT 2;
22 ERROR 23000: Duplicate entry '1' for key 't1.PRIMARY'
23 include/show_binlog_events.inc
24 include/assert.inc [The row count will still be 1]
25 # 2 rows are inserted.
26 INSERT INTO t1 SELECT 3 UNION SELECT 2;
27 include/rpl_sync.inc
28 include/assert.inc [A row is inserted in the table t1]
29 include/diff_tables.inc [server1:test.t1, server2:test.t1]
30
31 # Nothing is updated.
32 UPDATE t1 SET c1=4;
33 ERROR 23000: Duplicate entry '4' for key 't1.PRIMARY'
34 include/rpl_sync.inc
35 include/diff_tables.inc [server1:test.t1, server2:test.t1]
36 include/show_binlog_events.inc
37
38 # Nothing is updated.
39 UPDATE t1, t2 SET t1.c1= 5, t2.c1=5;
40 ERROR 23000: Duplicate entry '5' for key 't1.PRIMARY'
41 include/rpl_sync.inc
42 include/diff_tables.inc [server1:test.t1, server2:test.t1]
43 include/show_binlog_events.inc
44 DROP TABLE t1, t2;
45 include/group_replication_end.inc