2012-11-27 15:44:45 +00:00
|
|
|
source include/have_tokudb.inc;
|
2012-12-03 20:45:34 +00:00
|
|
|
source include/have_innodb.inc;
|
2012-11-27 15:44:45 +00:00
|
|
|
|
|
|
|
set default_storage_engine='tokudb';
|
|
|
|
|
|
|
|
disable_warnings;
|
|
|
|
drop table if exists tt, ti;
|
|
|
|
enable_warnings;
|
|
|
|
|
|
|
|
set tokudb_enable_fast_upsert=1;
|
|
|
|
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;
|
|
|
|
|
|
|
|
insert into tt values (1,null,null) on duplicate key update c='hi';
|
|
|
|
insert into ti values (1,null,null) on duplicate key update c='hi';
|
|
|
|
let $diff_tables = test.tt, test.ti;
|
|
|
|
source include/diff_tables.inc;
|
|
|
|
|
|
|
|
insert into tt values (1,null,null) on duplicate key update c='there';
|
|
|
|
insert into ti values (1,null,null) on duplicate key update c='there';
|
|
|
|
let $diff_tables = test.tt, test.ti;
|
|
|
|
source include/diff_tables.inc;
|
|
|
|
|
|
|
|
insert into tt values (1,null,null) on duplicate key update b='you';
|
|
|
|
insert into ti values (1,null,null) on duplicate key update b='you';
|
|
|
|
let $diff_tables = test.tt, test.ti;
|
|
|
|
source include/diff_tables.inc;
|
|
|
|
|
|
|
|
insert into tt values (1,null,null) on duplicate key update b='people';
|
|
|
|
insert into ti values (1,null,null) on duplicate key update b='people';
|
|
|
|
let $diff_tables = test.tt, test.ti;
|
|
|
|
source include/diff_tables.inc;
|
|
|
|
|
|
|
|
drop table tt, ti;
|
|
|
|
|