mariadb/mysql-test/suite/tokudb.fast_update/r/tokudb_upsert_sqlmode.result
Rich Prohaska d2118c28b9 refs #5254 add fast update mysql tests
git-svn-id: file:///svn/mysql/tests/mysql-test@50365 c7de825b-a66e-492c-adef-691d508d4ae1
2012-11-27 15:44:45 +00:00

18 lines
915 B
Text

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;