Changing a table's charset changed the charset of all fields (MySQL >= 4.1.1).

This commit is contained in:
Alexander M. Turek
2004-01-05 13:29:09 +00:00
parent b7ad9c1119
commit 2155a0981c
2 changed files with 5 additions and 1 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2004-01-05 Alexander M. Turek <rumors@derrabus.de>
* tbl_properties_operations.php: Changing a table's charset changed the
charset of all fields (MySQL >= 4.1.1).
2004-01-04 Alexander M. Turek <beggaronabeachofgold@derrabus.de> 2004-01-04 Alexander M. Turek <beggaronabeachofgold@derrabus.de>
* libraries/config_import.lib.php: Added missing compatibility code for * libraries/config_import.lib.php: Added missing compatibility code for
$cfg['RecodingEngine']. $cfg['RecodingEngine'].

View File

@@ -38,7 +38,7 @@ if (isset($submittype)) {
$message = $strSuccess; $message = $strSuccess;
} }
if (isset($submitcharset)) { if (isset($submitcharset)) {
$sql_query = 'ALTER TABLE ' . PMA_backquote($table) . ' CHARACTER SET = ' . $tbl_charset; $sql_query = 'ALTER TABLE ' . PMA_backquote($table) . ' DEFAULT CHARACTER SET = ' . $tbl_charset;
$result = PMA_mysql_query($sql_query, $userlink) or PMA_mysqlDie(PMA_mysql_error($userlink), $sql_query, '', $err_url); $result = PMA_mysql_query($sql_query, $userlink) or PMA_mysqlDie(PMA_mysql_error($userlink), $sql_query, '', $err_url);
$message = $strSuccess; $message = $strSuccess;
} }