From daab514238287c6bc2c7ec39d13de6d44aedb8fc Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Thu, 28 Mar 2013 15:34:31 +0530 Subject: [PATCH] Bug #3858 Incomplete error message when creating a foreign key constraint --- tbl_relation.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tbl_relation.php b/tbl_relation.php index 638e8c680f..6854d22c0d 100644 --- a/tbl_relation.php +++ b/tbl_relation.php @@ -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(