From 2155a0981c8efc3cc662c60e508bf546833e1e0a Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Mon, 5 Jan 2004 13:29:09 +0000 Subject: [PATCH] Changing a table's charset changed the charset of all fields (MySQL >= 4.1.1). --- ChangeLog | 4 ++++ tbl_properties_operations.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2660a56e6..30ef4d819 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - Changelog $Id$ $Source$ +2004-01-05 Alexander M. Turek + * 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 * libraries/config_import.lib.php: Added missing compatibility code for $cfg['RecodingEngine']. diff --git a/tbl_properties_operations.php b/tbl_properties_operations.php index 929965487..a22128d69 100644 --- a/tbl_properties_operations.php +++ b/tbl_properties_operations.php @@ -38,7 +38,7 @@ if (isset($submittype)) { $message = $strSuccess; } 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); $message = $strSuccess; }