summaryrefslogtreecommitdiff
path: root/storage/tokudb/mysql-test/tokudb/t/fast_update_binlog_row.test
blob: 6a8342eb4d92076f60b556618669384c5b20cc93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
source include/have_binlog_format_row.inc;
source include/have_tokudb.inc;

set default_storage_engine='tokudb';
create table tt (id int primary key, x int);

set session tokudb_disable_slow_upsert=1;

insert noar into tt values (1,0);

replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
insert noar into tt values (1,0) on duplicate key update x=x+1;

replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
insert noar into tt values (2,0) on duplicate key update x=x+1;

set session tokudb_disable_slow_update=1;

replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar tt set x=x+1 where id=1;

replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar tt set x=x+1 where id=2;

drop table tt;