mariadb/mysql-test/suite/vcol/inc
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
..
vcol_cleanup.inc The main commit of Andrey Zhakov's patch introducing vurtual(computed) columns. 2009-10-16 15:57:48 -07:00
vcol_column_def_options.inc MDEV-20729 Fix REFERENCES constraint in column definition 2019-11-20 13:18:54 +03:00
vcol_dependancies_on_vcol.inc Fix typos in mysql-test/ 2025-04-29 13:53:16 +10:00
vcol_handler.inc The main commit of Andrey Zhakov's patch introducing vurtual(computed) columns. 2009-10-16 15:57:48 -07:00
vcol_init_vars.pre The main commit of Andrey Zhakov's patch introducing vurtual(computed) columns. 2009-10-16 15:57:48 -07:00
vcol_ins_upd.inc MDEV-28933: Per-table unique FOREIGN KEY constraint names 2025-07-08 12:30:27 +03:00
vcol_keys.inc cleanup: generalize ER_SPATIAL_CANT_HAVE_NULL 2024-11-05 14:00:48 -08:00
vcol_non_stored_columns.inc MDEV-11066 use MySQL terminology for "virtual columns" 2016-12-12 20:35:51 +01:00
vcol_partition.inc bugfix: non-deterministic vcols in partitioning 2016-12-12 20:35:50 +01:00
vcol_select.inc MDEV-18650: Options deprecated in previous versions - storage_engine 2020-02-13 13:42:01 +02:00
vcol_supported_sql_funcs.inc MDEV-7635: Update tests to adapt to the new default sql_mode 2017-02-10 06:30:42 -05:00
vcol_trigger_sp.inc MDEV-31003: Second execution for ps-protocol 2023-07-26 17:15:00 +07:00
vcol_unsupported_storage_engines.inc MDEV-11066 use MySQL terminology for "virtual columns" 2016-12-12 20:35:51 +01:00
vcol_view.inc Made the optimizer switch flags 'outer_join_with_cache', 'semijoin_with_cache' 2011-12-15 00:21:15 -08:00