mirror of
https://github.com/MariaDB/server.git
synced 2025-01-24 07:44:22 +01:00
d2118c28b9
git-svn-id: file:///svn/mysql/tests/mysql-test@50365 c7de825b-a66e-492c-adef-691d508d4ae1
18 lines
915 B
Text
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;
|