mariadb/storage
Marko Mäkelä f8240a2723 MDEV-26294 Duplicate entries in unique index not detected when changing collation
Problem:
=======
ALTER TABLE in InnoDB fails to detect duplicate entries
for the unique index when the character set or collation of
an indexed column is changed in such a way that the character
encoding is compatible with the old table definition.
In this case, any secondary indexes on the changed columns
would be rebuilt (DROP INDEX, ADD INDEX).

Solution:
========
During ALTER TABLE, InnoDB keeps track of columns whose collation
changed, and will fill in the correct metadata when sorting the
index records, or applying changes from concurrent DML.
This metadata will be allocated in the dict_index_t::heap of
the being-created secondary indexes.

The fix was developed by Thirunarayanan Balathandayuthapani
and simplified by me.
2022-07-04 16:13:04 +03:00
..
archive Cleanup: Remove IF_VALGRIND 2022-04-25 09:40:40 +03:00
blackhole
columnstore columnstore-6.3.1-1 2022-04-30 15:21:59 +02:00
connect Merge 10.5 into 10.6 2022-06-27 10:59:31 +03:00
csv
example Merge 10.4 into 10.5 2022-02-22 10:35:16 +03:00
federated Merge branch '10.5' into 10.6 2022-02-03 17:01:31 +01:00
federatedx Merge 10.5 into 10.6 2022-04-06 12:08:30 +03:00
heap
innobase MDEV-26294 Duplicate entries in unique index not detected when changing collation 2022-07-04 16:13:04 +03:00
maria Improve error reporting in Aria 2022-06-07 20:43:11 +03:00
mroonga Merge branch '10.5' into 10.6 2022-02-03 17:01:31 +01:00
myisam Merge 10.5 into 10.6 2022-03-14 10:59:46 +02:00
myisammrg
oqgraph Merge 10.5 into 10.6 2022-01-18 12:59:50 +02:00
perfschema MDEV-28836 fixup 2022-06-22 08:23:32 +03:00
rocksdb Merge branch '10.5' into 10.6 2022-05-18 10:30:47 +02:00
sequence
sphinx
spider Merge 10.5 into 10.6 2022-07-01 15:24:50 +03:00
test_sql_discovery Merge 10.5 into 10.6 2021-10-28 09:08:58 +03:00