mariadb/storage/myisammrg
Marko Mäkelä cffbb17480 MDEV-28933: Per-table unique FOREIGN KEY constraint names
Before MySQL 4.0.18, user-specified constraint names were ignored.
Starting with MySQL 4.0.18, the specified constraint name was
prepended with the schema name and '/'.  Now we are transforming
into a format where the constraint name is prepended with the
dict_table_t::name and the impossible UTF-8 sequence 0xff.
Generated constraint names will be ASCII decimal numbers.

On upgrade, old FOREIGN KEY constraint names will be displayed
without any schema name prefix. They will be updated to the new
format on DDL operations.

dict_foreign_t::sql_id(): Return the SQL constraint name
without any schemaname/tablename\377 or schemaname/ prefix.

row_rename_table_for_mysql(), dict_table_rename_in_cache():
Simplify the logic: Just rename constraints to the new format.

dict_table_get_foreign_id(): Replaces dict_table_get_highest_foreign_id().

innobase_get_foreign_key_info(): Let my_error() refer to erroneous
anonymous constraints as "(null)".

row_delete_constraint(): Try to drop all 3 constraint name variants.

Reviewed by: Thirunarayanan Balathandayuthapani
Tested by: Matthias Leich
2025-07-08 12:30:27 +03:00
..
mysql-test/storage_engine MDEV-28933: Per-table unique FOREIGN KEY constraint names 2025-07-08 12:30:27 +03:00
CMakeLists.txt Update FSF Address 2019-05-11 21:29:06 +03:00
ha_myisammrg.cc Fix typos in C comments inside storage/ 2025-03-26 16:56:50 +04:00
ha_myisammrg.h Fix typos in C comments inside storage/ 2025-03-26 16:56:50 +04:00
myrg_close.c Update FSF Address 2019-05-11 21:29:06 +03:00
myrg_create.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
myrg_def.h perfschema memory related instrumentation changes 2020-03-10 19:24:22 +01:00
myrg_delete.c Update FSF Address 2019-05-11 21:29:06 +03:00
myrg_extra.c Fix typos in C comments inside storage/ 2025-03-26 16:56:50 +04:00
myrg_info.c MDEV-28351: Assertion `this->file->children_attached' failed in ha_myisammrg::info 2023-08-11 19:36:22 +02:00
myrg_locking.c Update FSF Address 2019-05-11 21:29:06 +03:00
myrg_open.c MDEV-31083 ASAN use-after-poison in myrg_attach_children 2023-05-23 09:16:36 +03:00
myrg_panic.c Update FSF Address 2019-05-11 21:29:06 +03:00
myrg_queue.c MDEV-34348: Consolidate cmp function declarations 2024-11-23 08:14:22 -07:00
myrg_range.c Added page_range to records_in_range() to improve range statistics 2020-03-27 03:54:45 +02:00
myrg_records.c Update FSF Address 2019-05-11 21:29:06 +03:00
myrg_rfirst.c Update FSF Address 2019-05-11 21:29:06 +03:00
myrg_rkey.c Update FSF Address 2019-05-11 21:29:06 +03:00
myrg_rlast.c Update FSF Address 2019-05-11 21:29:06 +03:00
myrg_rnext.c Update FSF Address 2019-05-11 21:29:06 +03:00
myrg_rnext_same.c Update FSF Address 2019-05-11 21:29:06 +03:00
myrg_rprev.c Update FSF Address 2019-05-11 21:29:06 +03:00
myrg_rrnd.c Update FSF Address 2019-05-11 21:29:06 +03:00
myrg_rsame.c Update FSF Address 2019-05-11 21:29:06 +03:00
myrg_static.c cleanup: CREATE_TYPELIB_FOR() helper 2024-11-05 14:00:47 -08:00
myrg_update.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
myrg_write.c MDEV-19955 make argument of handler::ha_write_row() const 2019-07-05 13:14:19 +03:00