use PMA_DBI_try_query to catch the error
This commit is contained in:
@@ -9,6 +9,8 @@ $Source$
|
||||
* main.php: bug 984136, wrong alignment in RTL languages
|
||||
* lang/arabic-utf-8, lang/sync_lang.sh: bug 984176, wrong encoding
|
||||
for arabic UTF-8. sync with --iconv works.
|
||||
* tbl_relation.php: use PMA_DBI_try_query() to be able to catch the
|
||||
missing index error (InnoDB) and give appropriate advice
|
||||
|
||||
2004-07-06 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* libraries/export/xls.php: enable user to specify './tmp' as the
|
||||
|
@@ -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";
|
||||
}
|
||||
|
Reference in New Issue
Block a user