refs #5727 add update test with pk prefixes and unique keys

git-svn-id: file:///svn/mysql/tests/mysql-test@51053 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Rich Prohaska 2012-12-11 21:13:53 +00:00
parent bb36d8cb1a
commit 060e2ae7a3
2 changed files with 16 additions and 0 deletions

View file

@ -14,6 +14,18 @@ create table t (ida int not null, idb bigint not null, idc tinyint unsigned not
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), unique key (idb));
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 (id char(32), x bigint, primary key(id(1)));
update t set x=x+1 where id='hi';
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
drop table t;
create table t (id varchar(32), x bigint, primary key(id(1)));
update t set x=x+1 where id='hi';
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;

View file

@ -18,3 +18,7 @@ create table t (id int primary key, a int, b char(32), c varchar(32), d blob, ke
insert into t values (1,null,null,null,null) on duplicate key update a=42;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
drop table t;
create table t (id int primary key, a int, b char(32), c varchar(32), d blob, unique key(c));
insert into t values (1,null,null,null,null) on duplicate key update a=42;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
drop table t;