[MDEV-25741] Wrong warning on duplicate keys Created: 2021-05-20  Updated: 2021-05-20  Resolved: 2021-05-20

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - Aria, Storage Engine - MyISAM
Affects Version/s: 10.5.10
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Marc Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None

Attachments: File testTable.sql    
Issue Links:
Duplicate
duplicates MDEV-23507 Wrong duplicate key value printed in ... Open

 Description   

See the attached simple table.
Adding a primary index on the table via

ALTER TABLE `test` ADD PRIMARY KEY(`ID`);

results in
ERROR 1062 (23000): Duplicate entry '34843' for key 'PRIMARY'

which is totally wrong - the key which is duplicate is 16564 and 16741

This is totally misleading.



 Comments   
Comment by Alice Sherepa [ 2021-05-20 ]

Thanks! This is the same bug as MDEV-23507

Generated at Thu Feb 08 09:40:00 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.