MySQL 4.1.x compatibility for list of initials

This commit is contained in:
Marc Delisle
2004-11-02 11:42:01 +00:00
parent 8a251a8f3f
commit 9c027b859f
2 changed files with 4 additions and 1 deletions

View File

@@ -6,6 +6,9 @@ $Id$
$Source$ $Source$
2004-11-02 Marc Delisle <lem9@users.sourceforge.net>
* server_privileges.php: MySQL 4.1.x compatibility for list of initials
2004-11-01 Marc Delisle <lem9@users.sourceforge.net> 2004-11-01 Marc Delisle <lem9@users.sourceforge.net>
* main.php: for MySQL 4.1.2+ a non-privileged user can do * main.php: for MySQL 4.1.2+ a non-privileged user can do
a simple SHOW GRANTS to fetch current privileges, so we no longer a simple SHOW GRANTS to fetch current privileges, so we no longer

View File

@@ -980,7 +980,7 @@ if (empty($adduser) && empty($checkprivs)) {
$array_initials[chr($letter_counter + 64)] = FALSE; $array_initials[chr($letter_counter + 64)] = FALSE;
} }
$initials = PMA_DBI_try_query('SELECT DISTINCT UPPER(LEFT(`User`,1)) FROM `user` ORDER BY `User` ASC', NULL, PMA_DBI_QUERY_STORE); $initials = PMA_DBI_try_query('SELECT DISTINCT UPPER(LEFT(' . PMA_convert_using('User') . ',1)) FROM `user` ORDER BY `User` ASC', NULL, PMA_DBI_QUERY_STORE);
while (list($tmp_initial) = PMA_DBI_fetch_row($initials)) { while (list($tmp_initial) = PMA_DBI_fetch_row($initials)) {
$array_initials[$tmp_initial] = TRUE; $array_initials[$tmp_initial] = TRUE;
} }