use PMA_DBI_try_query to catch the error

This commit is contained in:
Marc Delisle
2004-07-07 17:02:53 +00:00
parent ec7e4357de
commit ce969cb209
2 changed files with 3 additions and 1 deletions

View File

@@ -189,7 +189,7 @@ if (isset($submit_rel) && $submit_rel == 'true') {
} // end if... else....
if (isset($upd_query)) {
$upd_rs = PMA_DBI_query($upd_query);
$upd_rs = PMA_DBI_try_query($upd_query);
if (substr(PMA_DBI_getError(), 1, 4) == '1005') {
echo '<p class="warning">' . $strNoIndex . ' (' . $master_field .')</p>' . PMA_showMySQLDocu('manual_Table_types', 'InnoDB_foreign_key_constraints') . "\n";
}