MySQL 4.1.x compatibility for list of initials
This commit is contained in:
@@ -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
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user