mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
326d75bd41
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
22 lines
816 B
Text
22 lines
816 B
Text
-- 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;
|