Bug #3858 Incomplete error message when creating a foreign key constraint
This commit is contained in:
parent
51806056bd
commit
daab514238
@ -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(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user