mariadb/mysql-test/suite/tokudb/t/fast_update_int.test
Rich Prohaska 2f83aed670 refs #6440 move fast update tests
git-svn-id: file:///svn/mysql/tests/mysql-test@55030 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-03 14:23:31 +00:00

647 lines
19 KiB
Text

# generated by tokudb_fast_update_int.py
source include/have_tokudb.inc;
source include/have_innodb.inc;
set default_storage_engine='tokudb';
disable_warnings;
drop table if exists t;
enable_warnings;
create table t (
id tinyint null primary key,
x tinyint null
);
insert into t values (1,0),(2,0),(3,0);
select * from t;
set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2;
select * from t;
update noar t set x=x+1 where id=3;
select * from t;
update noar t set x=x-1 where id=3;
select * from t;
update noar t set x=x+100 where id=3;
select * from t;
update noar t set x=x-100 where id=3;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=1+x where id=1;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=-x where id=1;
update noar t set x=x+1 where id=100;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1 where 1 <= id and id < 100;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1;
drop table t;
create table t (
id tinyint not null primary key,
x tinyint not null
);
insert into t values (1,0),(2,0),(3,0);
select * from t;
set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2;
select * from t;
update noar t set x=x+1 where id=3;
select * from t;
update noar t set x=x-1 where id=3;
select * from t;
update noar t set x=x+100 where id=3;
select * from t;
update noar t set x=x-100 where id=3;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=1+x where id=1;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=-x where id=1;
update noar t set x=x+1 where id=100;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1 where 1 <= id and id < 100;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1;
drop table t;
create table t (
id tinyint unsigned null primary key,
x tinyint unsigned null
);
insert into t values (1,0),(2,0),(3,0);
select * from t;
set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2;
select * from t;
update noar t set x=x+1 where id=3;
select * from t;
update noar t set x=x-1 where id=3;
select * from t;
update noar t set x=x+100 where id=3;
select * from t;
update noar t set x=x-100 where id=3;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=1+x where id=1;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=-x where id=1;
update noar t set x=x+1 where id=100;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1 where 1 <= id and id < 100;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1;
drop table t;
create table t (
id tinyint unsigned not null primary key,
x tinyint unsigned not null
);
insert into t values (1,0),(2,0),(3,0);
select * from t;
set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2;
select * from t;
update noar t set x=x+1 where id=3;
select * from t;
update noar t set x=x-1 where id=3;
select * from t;
update noar t set x=x+100 where id=3;
select * from t;
update noar t set x=x-100 where id=3;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=1+x where id=1;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=-x where id=1;
update noar t set x=x+1 where id=100;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1 where 1 <= id and id < 100;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1;
drop table t;
create table t (
id smallint null primary key,
x smallint null
);
insert into t values (1,0),(2,0),(3,0);
select * from t;
set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2;
select * from t;
update noar t set x=x+1 where id=3;
select * from t;
update noar t set x=x-1 where id=3;
select * from t;
update noar t set x=x+100 where id=3;
select * from t;
update noar t set x=x-100 where id=3;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=1+x where id=1;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=-x where id=1;
update noar t set x=x+1 where id=100;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1 where 1 <= id and id < 100;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1;
drop table t;
create table t (
id smallint not null primary key,
x smallint not null
);
insert into t values (1,0),(2,0),(3,0);
select * from t;
set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2;
select * from t;
update noar t set x=x+1 where id=3;
select * from t;
update noar t set x=x-1 where id=3;
select * from t;
update noar t set x=x+100 where id=3;
select * from t;
update noar t set x=x-100 where id=3;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=1+x where id=1;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=-x where id=1;
update noar t set x=x+1 where id=100;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1 where 1 <= id and id < 100;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1;
drop table t;
create table t (
id smallint unsigned null primary key,
x smallint unsigned null
);
insert into t values (1,0),(2,0),(3,0);
select * from t;
set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2;
select * from t;
update noar t set x=x+1 where id=3;
select * from t;
update noar t set x=x-1 where id=3;
select * from t;
update noar t set x=x+100 where id=3;
select * from t;
update noar t set x=x-100 where id=3;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=1+x where id=1;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=-x where id=1;
update noar t set x=x+1 where id=100;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1 where 1 <= id and id < 100;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1;
drop table t;
create table t (
id smallint unsigned not null primary key,
x smallint unsigned not null
);
insert into t values (1,0),(2,0),(3,0);
select * from t;
set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2;
select * from t;
update noar t set x=x+1 where id=3;
select * from t;
update noar t set x=x-1 where id=3;
select * from t;
update noar t set x=x+100 where id=3;
select * from t;
update noar t set x=x-100 where id=3;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=1+x where id=1;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=-x where id=1;
update noar t set x=x+1 where id=100;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1 where 1 <= id and id < 100;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1;
drop table t;
create table t (
id mediumint null primary key,
x mediumint null
);
insert into t values (1,0),(2,0),(3,0);
select * from t;
set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2;
select * from t;
update noar t set x=x+1 where id=3;
select * from t;
update noar t set x=x-1 where id=3;
select * from t;
update noar t set x=x+100 where id=3;
select * from t;
update noar t set x=x-100 where id=3;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=1+x where id=1;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=-x where id=1;
update noar t set x=x+1 where id=100;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1 where 1 <= id and id < 100;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1;
drop table t;
create table t (
id mediumint not null primary key,
x mediumint not null
);
insert into t values (1,0),(2,0),(3,0);
select * from t;
set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2;
select * from t;
update noar t set x=x+1 where id=3;
select * from t;
update noar t set x=x-1 where id=3;
select * from t;
update noar t set x=x+100 where id=3;
select * from t;
update noar t set x=x-100 where id=3;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=1+x where id=1;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=-x where id=1;
update noar t set x=x+1 where id=100;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1 where 1 <= id and id < 100;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1;
drop table t;
create table t (
id mediumint unsigned null primary key,
x mediumint unsigned null
);
insert into t values (1,0),(2,0),(3,0);
select * from t;
set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2;
select * from t;
update noar t set x=x+1 where id=3;
select * from t;
update noar t set x=x-1 where id=3;
select * from t;
update noar t set x=x+100 where id=3;
select * from t;
update noar t set x=x-100 where id=3;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=1+x where id=1;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=-x where id=1;
update noar t set x=x+1 where id=100;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1 where 1 <= id and id < 100;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1;
drop table t;
create table t (
id mediumint unsigned not null primary key,
x mediumint unsigned not null
);
insert into t values (1,0),(2,0),(3,0);
select * from t;
set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2;
select * from t;
update noar t set x=x+1 where id=3;
select * from t;
update noar t set x=x-1 where id=3;
select * from t;
update noar t set x=x+100 where id=3;
select * from t;
update noar t set x=x-100 where id=3;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=1+x where id=1;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=-x where id=1;
update noar t set x=x+1 where id=100;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1 where 1 <= id and id < 100;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1;
drop table t;
create table t (
id int null primary key,
x int null
);
insert into t values (1,0),(2,0),(3,0);
select * from t;
set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2;
select * from t;
update noar t set x=x+1 where id=3;
select * from t;
update noar t set x=x-1 where id=3;
select * from t;
update noar t set x=x+100 where id=3;
select * from t;
update noar t set x=x-100 where id=3;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=1+x where id=1;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=-x where id=1;
update noar t set x=x+1 where id=100;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1 where 1 <= id and id < 100;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1;
drop table t;
create table t (
id int not null primary key,
x int not null
);
insert into t values (1,0),(2,0),(3,0);
select * from t;
set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2;
select * from t;
update noar t set x=x+1 where id=3;
select * from t;
update noar t set x=x-1 where id=3;
select * from t;
update noar t set x=x+100 where id=3;
select * from t;
update noar t set x=x-100 where id=3;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=1+x where id=1;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=-x where id=1;
update noar t set x=x+1 where id=100;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1 where 1 <= id and id < 100;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1;
drop table t;
create table t (
id int unsigned null primary key,
x int unsigned null
);
insert into t values (1,0),(2,0),(3,0);
select * from t;
set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2;
select * from t;
update noar t set x=x+1 where id=3;
select * from t;
update noar t set x=x-1 where id=3;
select * from t;
update noar t set x=x+100 where id=3;
select * from t;
update noar t set x=x-100 where id=3;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=1+x where id=1;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=-x where id=1;
update noar t set x=x+1 where id=100;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1 where 1 <= id and id < 100;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1;
drop table t;
create table t (
id int unsigned not null primary key,
x int unsigned not null
);
insert into t values (1,0),(2,0),(3,0);
select * from t;
set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2;
select * from t;
update noar t set x=x+1 where id=3;
select * from t;
update noar t set x=x-1 where id=3;
select * from t;
update noar t set x=x+100 where id=3;
select * from t;
update noar t set x=x-100 where id=3;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=1+x where id=1;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=-x where id=1;
update noar t set x=x+1 where id=100;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1 where 1 <= id and id < 100;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1;
drop table t;
create table t (
id bigint null primary key,
x bigint null
);
insert into t values (1,0),(2,0),(3,0);
select * from t;
set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2;
select * from t;
update noar t set x=x+1 where id=3;
select * from t;
update noar t set x=x-1 where id=3;
select * from t;
update noar t set x=x+100 where id=3;
select * from t;
update noar t set x=x-100 where id=3;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=1+x where id=1;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=-x where id=1;
update noar t set x=x+1 where id=100;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1 where 1 <= id and id < 100;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1;
drop table t;
create table t (
id bigint not null primary key,
x bigint not null
);
insert into t values (1,0),(2,0),(3,0);
select * from t;
set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2;
select * from t;
update noar t set x=x+1 where id=3;
select * from t;
update noar t set x=x-1 where id=3;
select * from t;
update noar t set x=x+100 where id=3;
select * from t;
update noar t set x=x-100 where id=3;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=1+x where id=1;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=-x where id=1;
update noar t set x=x+1 where id=100;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1 where 1 <= id and id < 100;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1;
drop table t;
create table t (
id bigint unsigned null primary key,
x bigint unsigned null
);
insert into t values (1,0),(2,0),(3,0);
select * from t;
set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2;
select * from t;
update noar t set x=x+1 where id=3;
select * from t;
update noar t set x=x-1 where id=3;
select * from t;
update noar t set x=x+100 where id=3;
select * from t;
update noar t set x=x-100 where id=3;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=1+x where id=1;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=-x where id=1;
update noar t set x=x+1 where id=100;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1 where 1 <= id and id < 100;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1;
drop table t;
create table t (
id bigint unsigned not null primary key,
x bigint unsigned not null
);
insert into t values (1,0),(2,0),(3,0);
select * from t;
set tokudb_disable_slow_update=1;
update noar t set x=100 where id=2;
select * from t;
update noar t set x=x+1 where id=3;
select * from t;
update noar t set x=x-1 where id=3;
select * from t;
update noar t set x=x+100 where id=3;
select * from t;
update noar t set x=x-100 where id=3;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=1+x where id=1;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=-x where id=1;
update noar t set x=x+1 where id=100;
select * from t;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1 where 1 <= id and id < 100;
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/;
error ER_UNSUPPORTED_EXTENSION;
update noar t set x=x+1;
drop table t;