bug #2983065 Error when changing from Maria to MyISAM engine

This commit is contained in:
Marc Delisle
2010-04-25 07:09:39 -04:00
parent acdf39e95b
commit e9ee6cf1d1
2 changed files with 11 additions and 2 deletions

View File

@@ -157,8 +157,16 @@ if (isset($_REQUEST['submitoptions'])) {
$reread_info = true;
unset($table_alters);
foreach (PMA_DBI_get_warnings() as $warning) {
$warning_messages[] = $warning['Level'] . ': #' . $warning['Code']
. ' ' . $warning['Message'];
// In MariaDB 5.1.44, when altering a table from Maria to MyISAM
// and if TRANSACTIONAL was set, the system reports an error;
// I discussed with a Maria developer and he agrees that this
// should not be reported with a Level of Error, so here
// I just ignore it. But there are other 1478 messages
// that it's better to show.
if (! ($_REQUEST['new_tbl_type'] == 'MyISAM' && $warning['Code'] == '1478' && $warning['Level'] == 'Error')) {
$warning_messages[] = $warning['Level'] . ': #' . $warning['Code']
. ' ' . $warning['Message'];
}
}
}
}