mariadb/mysql-test/suite
Thirunarayanan Balathandayuthapani 5f09b53bdb MDEV-31086 MODIFY COLUMN can break FK constraints, and lead to unrestorable dumps
- When foreign_key_check is disabled, allowing to modify the
column which is part of foreign key constraint can lead to
refusal of TRUNCATE TABLE, OPTIMIZE TABLE later. So it make
sense to block the column modify operation when foreign key
is involved irrespective of foreign_key_check variable.

Correct way to modify the charset of the column when fk is involved:

SET foreign_key_checks=OFF;
ALTER TABLE child DROP FOREIGN KEY fk, MODIFY m VARCHAR(200) CHARSET utf8mb4;
ALTER TABLE parent MODIFY m VARCHAR(200) CHARSET utf8mb4;
ALTER TABLE child ADD CONSTRAINT FOREIGN KEY (m) REFERENCES PARENT(m);
SET foreign_key_checks=ON;

fk_check_column_changes(): Remove the FOREIGN_KEY_CHECKS while
checking the column change for foreign key constraint. This
is the partial revert of commit 5f1f2fc0e4
and it changes the behaviour of copy alter algorithm

ha_innobase::prepare_inplace_alter_table(): Find the modified
column and check whether it is part of existing and newly
added foreign key constraint.
2023-06-27 16:58:22 +05:30
..
archive Merge 10.3 into 10.4 2022-09-13 16:36:38 +03:00
binlog MDEV-30698 Cover missing test cases for mariadb-binlog options --raw [and] --flashback 2023-03-08 12:26:00 +00:00
binlog_encryption Revert "MDEV-13915: STOP SLAVE takes very long time on a busy system" 2023-06-06 08:11:38 -06:00
compat Merge branch '10.3' into 10.4 2022-10-01 23:07:26 +02:00
csv
encryption MDEV-29692 Assertion `(writeptr + (i * size)) != local_frame' failed upon IMPORT TABLESPACE 2023-03-21 14:33:54 +02:00
engines MDEV-30421 more tests cleaned up 2023-03-23 21:07:32 +03:00
federated MDEV-29624 MDEV-29655 Fix ASAN errors on pushdown of derived table 2022-10-31 19:20:17 +04:00
funcs_1 Merge 10.3 into 10.4 2022-12-13 11:37:33 +02:00
funcs_2 MDEV-30233 DROP DATABASE test fails: Directory not empty 2022-12-15 11:14:23 +02:00
galera Merge branch '10.4' into 10.4.30 2023-06-07 15:08:29 +02:00
galera_3nodes MDEV-25045 : Assertion `client_state_.mode() != wsrep::client_state::m_toi' failed in int wsrep::transaction::before_commit() 2023-03-31 12:48:13 +02:00
galera_3nodes_sr MDEV-27912 Fixing inconsistency w.r.t. expect files in tests. 2023-03-22 11:55:57 +11:00
galera_sr MDEV-30838 Assertion `m_thd == _current_thd()' 2023-05-02 03:42:39 +02:00
gcol MDEV-30597 Assertion `flag == 1' failed in row_build_index_entry_low 2023-02-14 14:28:27 +05:30
handler Merge branch '10.3' into 10.4 2022-05-08 23:03:08 +02:00
heap Merge 10.3 into 10.4 2022-09-13 16:36:38 +03:00
innodb MDEV-31086 MODIFY COLUMN can break FK constraints, and lead to unrestorable dumps 2023-06-27 16:58:22 +05:30
innodb_fts MDEV-27912 Fixing inconsistency w.r.t. expect files in tests. 2023-03-22 11:55:57 +11:00
innodb_gis Merge 10.3 into 10.4 2022-11-08 16:04:01 +02:00
innodb_zip Merge 10.3 into 10.4 2022-12-13 11:37:33 +02:00
jp MDEV-29446 Change SHOW CREATE TABLE to display default collation 2022-09-12 22:10:39 +04:00
json
large_tests MDEV-18187 Aria engine: Redo phase failed with "error 192 when executing record redo_index_new_page" upon startup on a restored datadir 2021-12-15 16:28:01 +02:00
maria Updated some test result for 32 bit systems 2023-05-24 19:22:08 +03:00
mariabackup MDEV-30968 mariadb-backup does not copy Aria logs if aria_log_dir_path is used 2023-04-21 19:08:35 +04:00
mtr/t
mtr2
multi_source
optimizer_unfixed_bugs MDEV-23634: Select query hanged the server and leads to OOM ... 2021-04-08 17:25:02 +03:00
parts Merge 10.3 into 10.4 2023-01-03 16:10:02 +02:00
perfschema MDEV-29091: Correct event_name in PFS for wait caused by FOR UPDATE 2023-02-15 14:36:05 +00:00
perfschema_stress
period reformat the test 2022-11-27 05:11:39 +10:00
plugins Update feedback plugin URL to use feedback.mariadb.org subdomain 2023-03-20 18:15:17 +02:00
roles MDEV-30526 Assertion `rights == merged->cols' failed in update_role_columns 2023-02-21 23:22:56 +01:00
rpl Revert "MDEV-13915: STOP SLAVE takes very long time on a busy system" 2023-06-06 08:11:38 -06:00
sql_sequence Merge 10.3 into 10.4 2022-10-25 10:04:37 +03:00
storage_engine
stress MDEV-29710: Skip some more tests on Valgrind 2022-10-05 20:37:54 +03:00
sys_vars test fixes for 32bit 2023-06-02 17:51:02 +02:00
unit Merge 10.2 into 10.3 2021-10-21 17:39:34 +03:00
vcol Merge 10.3 into 10.4 2023-01-03 16:10:02 +02:00
versioning MDEV-30430: Enabling system versioning on tables without primary key breaks replication 2023-04-24 15:09:40 -06:00
wsrep Merge branch '10.3' into 10.4 2022-05-08 23:03:08 +02:00