summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 86d0107)
raw | patch | inline | side by side (parent: 86d0107)
author | octo <octo> | |
Sun, 2 Apr 2006 06:44:52 +0000 (06:44 +0000) | ||
committer | octo <octo> | |
Sun, 2 Apr 2006 06:44:52 +0000 (06:44 +0000) |
src/mysql.c | patch | blob | history |
diff --git a/src/mysql.c b/src/mysql.c
index 9a1398694b3ac1476ad94401d94373bc3839a5f7..822c6cce7ece8a0c68d5bf78d49e97b7249279d2 100644 (file)
--- a/src/mysql.c
+++ b/src/mysql.c
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))