~skinny.moey/drizzle/branch-rev

« back to all changes in this revision

Viewing changes to mysql-test/suite/binlog/r/binlog_row_insert_select.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
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 'a'
 
9
show binlog events from <binlog_start>;
 
10
Log_name        Pos     Event_type      Server_id       End_log_pos     Info
 
11
master-bin.000001       #       Query   #       #       use `test`; BEGIN
 
12
master-bin.000001       #       Table_map       #       #       table_id: # (test.t1)
 
13
master-bin.000001       #       Write_rows      #       #       table_id: # flags: STMT_END_F
 
14
master-bin.000001       #       Query   #       #       use `test`; ROLLBACK
 
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 'a'
 
25
show binlog events from <binlog_start>;
 
26
Log_name        Pos     Event_type      Server_id       End_log_pos     Info
 
27
drop table t1;