mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +01:00
dce337406e
PARENT FOR OTHER ONE Do not try to lookup key_nr'th key in 'table' because there may not be such a key there. key_nr is the number of the key in the _child_ table name, not in the parent table. Instead just print the fields of the record that are covered by the first key defined on the parent table. This bug gets a better fix in MySQL 5.6, which is too risky for 5.1 and 5.5. Approved by: Jon Olav Hauglid (via IM)
2 lines
161 B
Text
2 lines
161 B
Text
SET SESSION foreign_key_checks=0;
|
|
ERROR 23000: Upholding foreign key constraints for table 'bug12661768_1', entry '3-bbb', key 2 would lead to a duplicate entry
|