Code

Applied patch by James Byers <jbyers@jbyers.com> to the MySQL plugin. It works now...
authorocto <octo>
Sun, 2 Apr 2006 06:44:52 +0000 (06:44 +0000)
committerocto <octo>
Sun, 2 Apr 2006 06:44:52 +0000 (06:44 +0000)
src/mysql.c

index 9a1398694b3ac1476ad94401d94373bc3839a5f7..822c6cce7ece8a0c68d5bf78d49e97b7249279d2 100644 (file)
@@ -366,6 +366,9 @@ static void mysql_read (void)
                return;
 
        query = "SHOW STATUS";
+       if (mysql_get_server_version (con) >= 50002)
+               query = "SHOW GLOBAL STATUS";
+
        query_len = strlen (query);
 
        if (mysql_real_query (con, query, query_len))