Debian Codegraph @

mysql-test/suite/binlog_nogtid/r/binlog_row_insert_select.result

raw
1 drop table if exists t1,t2;
2 create table t1(a int, unique(a));
3 insert into t1 values(2);
4 create table t2(a int);
5 insert into t2 values(1),(2);
6 reset master;
7 insert into t1 select * from t2;
8 ERROR 23000: Duplicate entry '2' for key 't1.a'
9 include/show_binlog_events.inc
10 Log_name Pos Event_type Server_id End_log_pos Info
11 binlog.000001 # Query # # BEGIN
12 binlog.000001 # Table_map # # table_id: # (test.t1)
13 binlog.000001 # Write_rows # # table_id: # flags: STMT_END_F
14 binlog.000001 # Query # # COMMIT
15 select * from t1;
16 a
17 1
18 2
19 drop table t1, t2;
20 create table t1(a int);
21 insert into t1 values(1),(1);
22 reset master;
23 create table t2(unique(a)) select a from t1;
24 ERROR 23000: Duplicate entry '1' for key 't2.a'
25 include/show_binlog_events.inc
26 Log_name Pos Event_type Server_id End_log_pos Info
27 drop table t1;