summaryrefslogtreecommitdiff
path: root/storage/tokudb/mysql-test/tokudb/r/fast_upsert_sqlmode.result
blob: 9b1fd60d691c8afcd76b71f20dbe2fd44a26dbab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
set default_storage_engine='tokudb';
drop table if exists t;
set tokudb_disable_slow_upsert=1;
create table t (id int primary key, x int not null);
insert noar into t values (1,0);
insert noar into t values (1,0) on duplicate key update x=42;
insert noar into t values (1,0) on duplicate key update x=x+1;
insert noar into t values (1,0) on duplicate key update x=x-1;
set session sql_mode="NO_ENGINE_SUBSTITUTION,traditional";
insert noar 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 noar 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 noar 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;