Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.11, 11.4, 11.8, 12.3
-
Unexpected results
Description
In a hardcoded error message in innobase_update_foreign_cache(), there is a missing space after the word "with":
ib::error()
|
<< "Failed to load table " |
<< table_name_t(const_cast<char*>(f)) |
<< " which has a foreign key constraint with" |
<< user_table->name;
|
It looks like this message is suppressed in the test innodb.alter_foreign_crash, but we fail to check for the exact message, so the incorrect formatting does not appear in any .result file.
While we are changing this, I would replace the call with sql_print_error(). It would seem to be easiest to fix this starting with the 11.8 release series, which is the first one to include MDEV-21978. Use the format string "%.*sQ.%sQ" for pretty-printing table names. Please test with table names that contain a non-alphanumeric character, such as $.
This typo was originally noticed by monty in MDEV-25292.
Attachments
Issue Links
- split from
-
MDEV-25292 Atomic CREATE OR REPLACE TABLE
-
- In Testing
-