|
|
|
@ -30,6 +30,26 @@ error ER_UNSUPPORTED_EXTENSION; |
|
|
|
update t set x=x+1 where ida=1; |
|
|
|
drop table t; |
|
|
|
|
|
|
|
# must have no unique keys |
|
|
|
create table t (ida int not null, idb bigint not null, idc tinyint unsigned not null, x bigint, primary key(ida), unique key (idb)); |
|
|
|
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/; |
|
|
|
error ER_UNSUPPORTED_EXTENSION; |
|
|
|
update t set x=x+1 where ida=1; |
|
|
|
drop table t; |
|
|
|
|
|
|
|
# must have no pk prefixed |
|
|
|
create table t (id char(32), x bigint, primary key(id(1))); |
|
|
|
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/; |
|
|
|
error ER_UNSUPPORTED_EXTENSION; |
|
|
|
update t set x=x+1 where id='hi'; |
|
|
|
drop table t; |
|
|
|
|
|
|
|
create table t (id varchar(32), x bigint, primary key(id(1))); |
|
|
|
replace_regex /MariaDB/XYZ/ /MySQL/XYZ/; |
|
|
|
error ER_UNSUPPORTED_EXTENSION; |
|
|
|
update t set x=x+1 where id='hi'; |
|
|
|
drop table t; |
|
|
|
|
|
|
|
# test for point updates on compound keys |
|
|
|
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); |
|
|
|
@ -52,7 +72,6 @@ select * from t; |
|
|
|
update t set x=x+1 where idc=3 and ida=1 and idb=2; |
|
|
|
select * from t; |
|
|
|
|
|
|
|
|
|
|
|
drop table t; |
|
|
|
|
|
|
|
|
|
|
|
|