bug 1225635, cannot change table's collation under MySQL 5.0.4

This commit is contained in:
Marc Delisle
2005-06-28 11:00:38 +00:00
parent 755bc18e61
commit fac9071975
2 changed files with 8 additions and 0 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2005-06-28 Marc Delisle <lem9@users.sourceforge.net>
* tbl_properties_operations.php: bug #1225635,
cannot change table's collation under MySQL 5.0.4
2005-06-27 Michal Čihař <michal@cihar.com> 2005-06-27 Michal Čihař <michal@cihar.com>
* config.inc.php: Better comments describing multi server setup (patch * config.inc.php: Better comments describing multi server setup (patch
#1226666). #1226666).

View File

@@ -42,6 +42,10 @@ if (isset($submittype)) {
$message = $strSuccess; $message = $strSuccess;
} }
if (isset($submitcollation)) { if (isset($submitcollation)) {
// since something modifies $tbl_collation between the moment it is
// set from $_POST and this point, need to restore it
// (bug seen in MySQL 5.0.4)
$tbl_collation = $_POST['tbl_collation'];
$sql_query = 'ALTER TABLE ' . PMA_backquote($table) . ' DEFAULT' . PMA_generateCharsetQueryPart($tbl_collation); $sql_query = 'ALTER TABLE ' . PMA_backquote($table) . ' DEFAULT' . PMA_generateCharsetQueryPart($tbl_collation);
$result = PMA_DBI_query($sql_query); $result = PMA_DBI_query($sql_query);
$message = $strSuccess; $message = $strSuccess;