mariadb/mysql-test/suite
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
atomic
binlog MDEV-28461 semisync-slave server recovery fails to rollback prepared transaction 2022-05-18 09:48:57 +02:00
binlog_encryption Merge branch '10.5' into 10.6 2022-05-10 14:01:23 +02:00
client
compat Merge branch '10.5' into 10.6 2022-05-18 10:30:47 +02:00
csv
encryption MDEV-18976 fixup: encryption.innodb-redo-nokeys 2022-06-28 12:29:30 +03:00
engines
federated
funcs_1 Merge 10.5 into 10.6 2022-06-30 19:41:07 +03:00
funcs_2
galera Merge 10.5 into 10.6 2022-06-27 10:59:31 +03:00
galera_3nodes Merge branch '10.5' into 10.6 2022-05-18 10:30:47 +02:00
galera_3nodes_sr
galera_sr Merge 10.5 into 10.6 2022-05-25 14:39:42 +03:00
gcol MDEV-28806 Assertion `flag == 1' failure in row_build_index_entry_low upon concurrent ALTER and UPDATE 2022-06-30 15:28:24 +05:30
handler Merge branch '10.5' into 10.6 2022-05-10 14:01:23 +02:00
heap
innodb MDEV-26294 Duplicate entries in unique index not detected when changing collation 2022-07-04 16:13:04 +03:00
innodb_fts Merge 10.5 into 10.6 2022-07-01 15:24:50 +03:00
innodb_gis Merge 10.5 into 10.6 2022-06-30 19:41:07 +03:00
innodb_i_s
innodb_zip MDEV-13542: Crashing on corrupted page is unhelpful 2022-06-06 14:03:22 +03:00
jp
json MDEV-25875: JSON_TABLE: extract document fragment into JSON column 2022-05-31 12:09:11 +05:30
large_tests
maria Fix ./mtr --embedded 2022-06-10 08:59:23 +03:00
mariabackup Merge 10.5 into 10.6 2022-06-09 13:34:52 +03:00
mtr/t
mtr2
multi_source Merge 10.5 into 10.6 2022-07-01 15:24:50 +03:00
optimizer_unfixed_bugs
parts Merge 10.5 into 10.6 2022-07-01 15:24:50 +03:00
perfschema Merge branch '10.5' into 10.6 2022-05-10 14:01:23 +02:00
perfschema_stress
period
plugins Merge branch '10.5' into 10.6 2022-05-10 14:01:23 +02:00
roles Merge branch '10.5' into 10.6 2022-05-10 14:01:23 +02:00
rpl Merge 10.5 into 10.6 2022-06-27 10:59:31 +03:00
s3
sql_sequence
storage_engine
stress
sys_vars Merge branch '10.5' into 10.6 2022-05-18 10:30:47 +02:00
sysschema MDEV-28342: sys.create_synonym_db fails when a temporary table masks a base table 2022-05-12 10:28:13 -05:00
unit
vcol Merge branch '10.5' into 10.6 2022-05-10 14:01:23 +02:00
versioning Merge branch '10.5' into 10.6 2022-05-18 10:30:47 +02:00
wsrep Merge branch '10.5' into 10.6 2022-05-10 14:01:23 +02:00