mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 15:24:16 +01:00
2f83aed670
git-svn-id: file:///svn/mysql/tests/mysql-test@55030 c7de825b-a66e-492c-adef-691d508d4ae1
37 lines
862 B
Text
37 lines
862 B
Text
source include/have_tokudb.inc;
|
|
|
|
set default_storage_engine='tokudb';
|
|
|
|
disable_warnings;
|
|
drop table if exists t;
|
|
enable_warnings;
|
|
|
|
set tokudb_disable_slow_update=1;
|
|
|
|
let $default_sql_mode = `select @@session.sql_mode`;
|
|
|
|
create table t (id int primary key, x int not null);
|
|
insert into t values (1,0);
|
|
update noar t set x=42 where id=1;
|
|
update noar t set x=x+1 where id=1;
|
|
update noar 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 noar t set x=42 where id=1;
|
|
|
|
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
|
|
error ER_UNSUPPORTED_EXTENSION;
|
|
update noar t set x=x+1 where id=1;
|
|
|
|
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
|
|
error ER_UNSUPPORTED_EXTENSION;
|
|
update noar t set x=x-1 where id=1;
|
|
|
|
eval set session sql_mode="$default_sql_mode";
|
|
|
|
drop table t;
|
|
|
|
|