2012-11-27 15:44:45 +00:00
|
|
|
set default_storage_engine='tokudb';
|
|
|
|
drop table if exists tt, ti;
|
|
|
|
set tokudb_disable_slow_upsert=1;
|
|
|
|
create table tt (id int primary key, c char(32), b binary(32));
|
|
|
|
create table ti like tt;
|
|
|
|
alter table ti engine=innodb;
|
2013-01-04 22:03:31 +00:00
|
|
|
insert noar into tt values (1,null,null) on duplicate key update c='hi';
|
|
|
|
insert noar into ti values (1,null,null) on duplicate key update c='hi';
|
2012-11-27 15:44:45 +00:00
|
|
|
include/diff_tables.inc [test.tt, test.ti]
|
2013-01-04 22:03:31 +00:00
|
|
|
insert noar into tt values (1,null,null) on duplicate key update c='there';
|
|
|
|
insert noar into ti values (1,null,null) on duplicate key update c='there';
|
2012-11-27 15:44:45 +00:00
|
|
|
include/diff_tables.inc [test.tt, test.ti]
|
2013-01-04 22:03:31 +00:00
|
|
|
insert noar into tt values (1,null,null) on duplicate key update b='you';
|
|
|
|
insert noar into ti values (1,null,null) on duplicate key update b='you';
|
2012-11-27 15:44:45 +00:00
|
|
|
include/diff_tables.inc [test.tt, test.ti]
|
2013-01-04 22:03:31 +00:00
|
|
|
insert noar into tt values (1,null,null) on duplicate key update b='people';
|
|
|
|
insert noar into ti values (1,null,null) on duplicate key update b='people';
|
2012-11-27 15:44:45 +00:00
|
|
|
include/diff_tables.inc [test.tt, test.ti]
|
|
|
|
drop table tt, ti;
|