2012-11-27 15:44:45 +00:00
|
|
|
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);
|
2013-01-04 22:03:31 +00:00
|
|
|
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;
|
2012-11-27 15:44:45 +00:00
|
|
|
|
|
|
|
eval set session sql_mode="$default_sql_mode,traditional";
|
|
|
|
|
|
|
|
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
|
|
|
|
error ER_UNSUPPORTED_EXTENSION;
|
2013-01-04 22:03:31 +00:00
|
|
|
update noar t set x=42 where id=1;
|
2012-11-27 15:44:45 +00:00
|
|
|
|
|
|
|
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
|
|
|
|
error ER_UNSUPPORTED_EXTENSION;
|
2013-01-04 22:03:31 +00:00
|
|
|
update noar t set x=x+1 where id=1;
|
2012-11-27 15:44:45 +00:00
|
|
|
|
|
|
|
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
|
|
|
|
error ER_UNSUPPORTED_EXTENSION;
|
2013-01-04 22:03:31 +00:00
|
|
|
update noar t set x=x-1 where id=1;
|
2012-11-27 15:44:45 +00:00
|
|
|
|
|
|
|
eval set session sql_mode="$default_sql_mode";
|
|
|
|
|
|
|
|
drop table t;
|
|
|
|
|
|
|
|
|