source include/have_tokudb.inc;

set tokudb_enable_fast_update=1;
source ../include/setup_fast_update_upsert.inc;

let $default_sql_mode = `select @@session.sql_mode`;

create table t (id int primary key, x int not null) engine = tokudb;
insert into t values (1,0);
update t set x=42 where id=1;
update t set x=x+1 where id=1;
update t set x=x-1 where id=1;

eval set session sql_mode="$default_sql_mode,traditional";

replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update t set x=42 where id=1;

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

replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update t set x=x-1 where id=1;

drop table t;


