mirror of
https://github.com/MariaDB/server.git
synced 2025-11-03 14:33:32 +03:00
Bugfix for 53290, fast unique index creation fails on duplicate null values
Summary:
Bug in the fast index creation code incorrectly considers null
values to be duplicates during block merging. Innodb policy is that
multiple null values are allowed in a unique index. Null duplicates
were correctly ignored while sorting individual blocks and with slow
index creation.
Test Plan:
mtr, including new test, load dbs using deferred index creation
DiffCamp Revision: 110840
Reviewed By: mcallaghan
CC: mcallaghan, mysql-devel@lists
Revert Plan:
OK
18 lines
771 B
Plaintext
18 lines
771 B
Plaintext
create table bug53290 (x bigint) engine=innodb;
|
|
insert into bug53290 () values (),(),(),(),(),(),(),(),(),(),(),();
|
|
insert into bug53290 select * from bug53290;
|
|
insert into bug53290 select * from bug53290;
|
|
insert into bug53290 select * from bug53290;
|
|
insert into bug53290 select * from bug53290;
|
|
insert into bug53290 select * from bug53290;
|
|
insert into bug53290 select * from bug53290;
|
|
insert into bug53290 select * from bug53290;
|
|
insert into bug53290 select * from bug53290;
|
|
insert into bug53290 select * from bug53290;
|
|
insert into bug53290 select * from bug53290;
|
|
insert into bug53290 select * from bug53290;
|
|
insert into bug53290 select * from bug53290;
|
|
insert into bug53290 select * from bug53290;
|
|
alter table bug53290 add unique index `idx` (x);
|
|
drop table bug53290;
|