mirror of
https://github.com/MariaDB/server.git
synced 2025-05-05 16:59:35 +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
23 lines
816 B
Plaintext
23 lines
816 B
Plaintext
-- source include/have_innodb_plugin.inc
|
|
|
|
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;
|