set default_storage_engine='tokudb'; drop table if exists t; set tokudb_enable_fast_upsert=1; set tokudb_disable_slow_upsert=1; create table t (id int primary key, x int not null); insert into t values (1,0); insert into t values (1,0) on duplicate key update x=42; insert into t values (1,0) on duplicate key update x=x+1; insert into t values (1,0) on duplicate key update x=x-1; set session sql_mode="NO_ENGINE_SUBSTITUTION,traditional"; insert into t values (1,0) on duplicate key update x=42; ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version insert into t values (1,0) on duplicate key update x=x+1; ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version insert into t values (1,0) on duplicate key update x=x-1; ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version set session sql_mode="NO_ENGINE_SUBSTITUTION"; drop table t;