Commit 462b3965 authored by Rich Prohaska's avatar Rich Prohaska

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
parent 494871b7
...@@ -14,6 +14,18 @@ create table t (ida int not null, idb bigint not null, idc tinyint unsigned not ...@@ -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; update t set x=x+1 where ida=1;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
drop table t; 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)); 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); insert into t values (1,2,3,0);
update t set x=x+1 where ida=1; update t set x=x+1 where ida=1;
......
...@@ -18,3 +18,7 @@ create table t (id int primary key, a int, b char(32), c varchar(32), d blob, ke ...@@ -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; 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 ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
drop table t; 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;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment