From 9c027b859f1085cc0e2866a0bbdea3bc0638c594 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Tue, 2 Nov 2004 11:42:01 +0000 Subject: [PATCH] MySQL 4.1.x compatibility for list of initials --- ChangeLog | 3 +++ server_privileges.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 496cfccac..fbb0548ec 100755 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,9 @@ $Id$ $Source$ +2004-11-02 Marc Delisle + * server_privileges.php: MySQL 4.1.x compatibility for list of initials + 2004-11-01 Marc Delisle * 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 diff --git a/server_privileges.php b/server_privileges.php index eeafe21fa..4c028a5a1 100644 --- a/server_privileges.php +++ b/server_privileges.php @@ -980,7 +980,7 @@ if (empty($adduser) && empty($checkprivs)) { $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)) { $array_initials[$tmp_initial] = TRUE; }