Field charset information got lost when changing fields.

This commit is contained in:
Alexander M. Turek
2004-04-17 02:14:29 +00:00
parent 8bf3a0688f
commit 4f2be967ed
2 changed files with 4 additions and 2 deletions

View File

@@ -6,8 +6,10 @@ $Id$
$Source$
2004-04-17 Alexander M. Turek <me@derrabus.de>
* db_create.php, main.php, libraries/mysql_charsets.lib.php:
* db_create.php, db_details_structure.php, db_details_common.php, main.php,
libraries/mysql_charsets.lib.php:
Added ability to set / alter collations on database level.
* tbl_alter.php: Charset information got lost when changing fields.
2004-04-16 Marc Delisle <lem9@users.sourceforge.net>
* lang/french update

View File

@@ -174,7 +174,7 @@ if ($abort == FALSE) {
} else {
$field = PMA_sqlAddslashes($selected[$i], TRUE);
}
$result = PMA_DBI_query('SHOW FIELDS FROM ' . PMA_backquote($table) . ' FROM ' . PMA_backquote($db) . ' LIKE \'' . $field . '\';');
$result = PMA_DBI_query('SHOW FULL FIELDS FROM ' . PMA_backquote($table) . ' FROM ' . PMA_backquote($db) . ' LIKE \'' . $field . '\';');
$fields_meta[] = PMA_DBI_fetch_assoc($result);
PMA_DBI_free_result($result);
}