From c6a3671e6c8ebf1cec401d22bfccb42be75fa3cd Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Fri, 28 Aug 2015 08:19:40 -0400 Subject: [PATCH] Fixes #11434 Class 'SqlParser\Lexer' not found Signed-off-by: Marc Delisle --- libraries/DatabaseInterface.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/DatabaseInterface.class.php b/libraries/DatabaseInterface.class.php index 495ca55f2f..e2fb9c4700 100644 --- a/libraries/DatabaseInterface.class.php +++ b/libraries/DatabaseInterface.class.php @@ -1839,7 +1839,10 @@ class PMA_DatabaseInterface /* Detect Drizzle - it does not support charsets */ $charset_result = $this->query( - "SHOW VARIABLES LIKE 'character_set_results'", + // The following does not work in MySQL 5.7: + //"SHOW VARIABLES LIKE 'character_set_results'", + // so a workaround was implemented: + "SELECT @@character_set_results", $link ); if ($this->numRows($charset_result) == 0) {