From d247bbb236a1033e49c6a214c8136876fb2d1b11 Mon Sep 17 00:00:00 2001 From: octo Date: Sun, 2 Apr 2006 06:44:52 +0000 Subject: [PATCH] Applied patch by James Byers to the MySQL plugin. It works now with MySQL >= 5.0.2, too. --- src/mysql.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mysql.c b/src/mysql.c index 9a139869..822c6cce 100644 --- a/src/mysql.c +++ b/src/mysql.c @@ -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)) -- 2.30.2