Bug #3858 Incomplete error message when creating a foreign key constraint

This commit is contained in:
Madhura Jayaratne 2013-03-28 15:34:31 +05:30
parent 51806056bd
commit daab514238

View File

@ -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(