summaryrefslogtreecommitdiff
path: root/storage/tokudb/mysql-test/tokudb/t/fast_update_sqlmode.test
blob: 2740cd6c3160fcc98455a4f7edb694cd506d0789 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
source include/have_tokudb.inc;

set tokudb_enable_fast_update=1;
source ../include/setup_fast_update_upsert.inc;

let $default_sql_mode = `select @@session.sql_mode`;

create table t (id int primary key, x int not null) engine = tokudb;
insert into t values (1,0);
update t set x=42 where id=1;
update t set x=x+1 where id=1;
update t set x=x-1 where id=1;

eval set session sql_mode="$default_sql_mode,traditional";

replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update t set x=42 where id=1;

replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update t set x=x+1 where id=1;

replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update t set x=x-1 where id=1;

drop table t;