mariadb/mysql-test/suite/tokudb.fast_update/r/tokudb_update_key.result
Rich Prohaska d2118c28b9 refs #5254 add fast update mysql tests
git-svn-id: file:///svn/mysql/tests/mysql-test@50365 c7de825b-a66e-492c-adef-691d508d4ae1
2012-11-27 15:44:45 +00:00

33 lines
1.5 KiB
Text

set default_storage_engine='tokudb';
drop table if exists t;
set tokudb_enable_fast_update=1;
set tokudb_disable_slow_update=1;
create table t (ida int not null, idb bigint not null, idc tinyint unsigned not null, x bigint);
update t set x=x+1 where ida=1;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
drop table t;
create table t (ida int not null, idb bigint not null, idc tinyint unsigned not null, x bigint, clustering key(ida,idb,idc));
update t set x=x+1 where ida=1;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
drop table t;
create table t (ida int not null, idb bigint not null, idc tinyint unsigned not null, x bigint, primary key(ida,idb,idc), key(x));
update t set x=x+1 where ida=1;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
drop table t;
create table t (ida int not null, idb bigint not null, idc tinyint unsigned not null, x bigint, primary key(ida,idb,idc));
insert into t values (1,2,3,0);
update t set x=x+1 where ida=1;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
update t set x=x+1 where ida=1 and idb=2;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
update t set x=x+1 where ida=1 and idb=2 or idc=3;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
update t set x=x+1 where ida=1 and idb=2 and idc=3;
select * from t;
ida idb idc x
1 2 3 1
update t set x=x+1 where idc=3 and ida=1 and idb=2;
select * from t;
ida idb idc x
1 2 3 2
drop table t;