diff --git a/ChangeLog b/ChangeLog index 593f9f4d2..6c5f920e7 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - Changelog $Id$ $Source$ +2003-09-01 Michal Cihar + * libraries/mysql_charsets.lib.php3: Name of column is sometimes Default + (bug #798426). + 2003-08-31 Marc Delisle * libraries/sqlparser.lib.php3: extract ON DELETE, ON UPDATE for FOREIGN KEYs * libraries/relation.lib.php3: populate $foreign with ON DELETE, ON UPDATE diff --git a/libraries/mysql_charsets.lib.php3 b/libraries/mysql_charsets.lib.php3 index 6c6f266bf..c08519012 100644 --- a/libraries/mysql_charsets.lib.php3 +++ b/libraries/mysql_charsets.lib.php3 @@ -35,7 +35,7 @@ if (!defined('PMA_MYSQL_CHARSETS_LIB_INCLUDED')){ } else { $mysql_collations[$row['Charset']][] = $row['Collation']; } - if ($row['D'] == 'Y') { + if ((isset($row['D']) && $row['D'] == 'Y') || (isset($row['Default']) && $row['Default'] == 'Yes')) { $mysql_default_collations[$row['Charset']] = $row['Collation']; } }