mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-371 Unique Index for long columns
post-merge fixes
This commit is contained in:
@ -1,11 +1,19 @@
|
||||
--source include/have_innodb.inc
|
||||
|
||||
#
|
||||
# MDEV-371 Unique indexes for blobs
|
||||
#
|
||||
|
||||
create table t1(a blob unique) engine= InnoDB;
|
||||
insert into t1 values('RUC');
|
||||
--error ER_DUP_ENTRY
|
||||
insert into t1 values ('RUC');
|
||||
drop table t1;
|
||||
|
||||
create table t1 (a blob unique , c int unique) engine=innodb;
|
||||
show create table t1;
|
||||
drop table t1;
|
||||
|
||||
--echo #test for concurrent insert of long unique in innodb
|
||||
create table t1(a blob unique) engine= InnoDB;
|
||||
show create table t1;
|
||||
@ -33,7 +41,6 @@ insert into t1 values('RC');
|
||||
commit;
|
||||
set transaction isolation level READ COMMITTED;
|
||||
start transaction;
|
||||
--error ER_DUP_ENTRY
|
||||
--error ER_LOCK_WAIT_TIMEOUT
|
||||
insert into t1 values ('RC');
|
||||
commit;
|
||||
@ -47,7 +54,6 @@ insert into t1 values('RR');
|
||||
commit;
|
||||
set transaction isolation level REPEATABLE READ;
|
||||
start transaction;
|
||||
--error ER_DUP_ENTRY
|
||||
--error ER_LOCK_WAIT_TIMEOUT
|
||||
insert into t1 values ('RR');
|
||||
|
||||
@ -60,7 +66,6 @@ insert into t1 values('S');
|
||||
commit;
|
||||
set transaction isolation level SERIALIZABLE;
|
||||
start transaction;
|
||||
--error ER_DUP_ENTRY
|
||||
--error ER_LOCK_WAIT_TIMEOUT
|
||||
insert into t1 values ('S');
|
||||
commit;
|
||||
|
Reference in New Issue
Block a user