You've already forked phpmyadmin
mirror of
https://github.com/phpmyadmin/phpmyadmin.git
synced 2026-10-29 21:24:44 +03:00
Bug #3858 Incomplete error message when creating a foreign key constraint
This commit is contained in:
@@ -210,12 +210,16 @@ if (isset($_REQUEST['destination_foreign'])) {
|
||||
if (substr($tmp_error_create, 1, 4) == '1216'
|
||||
|| substr($tmp_error_create, 1, 4) == '1452'
|
||||
) {
|
||||
ob_start();
|
||||
PMA_Util::mysqlDie(
|
||||
$tmp_error_create, $create_query, false, '', false
|
||||
);
|
||||
$html_output .= ob_get_contents();
|
||||
ob_end_clean();
|
||||
$html_output .= PMA_Util::showMySQLDocu(
|
||||
'manual_Table_types', 'InnoDB_foreign_key_constraints'
|
||||
) . "\n";
|
||||
$shown_error = true;
|
||||
}
|
||||
if (substr($tmp_error_create, 1, 4) == '1005') {
|
||||
$message = PMA_Message::error(
|
||||
|
||||
Reference in New Issue
Block a user