summaryrefslogtreecommitdiff
path: root/storage/tokudb/mysql-test/tokudb/r/fast_upsert_sqlmode.result
blob: 30a6448b0a26fffb7a292cf79f05ba0b8a2f2143 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
set tokudb_enable_fast_upsert=1;
set session sql_mode=(select replace(@@sql_mode,'STRICT_TRANS_TABLES',''));
set session sql_mode=(select replace(@@sql_mode,'STRICT_ALL_TABLES',''));
create table t (id int primary key, x int not null) engine = tokudb;
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
drop table t;