summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dddd6ea)
raw | patch | inline | side by side (parent: dddd6ea)
author | octo <octo> | |
Sun, 2 Apr 2006 08:33:42 +0000 (08:33 +0000) | ||
committer | octo <octo> | |
Sun, 2 Apr 2006 08:33:42 +0000 (08:33 +0000) |
src/mysql.c | patch | blob | history |
diff --git a/src/mysql.c b/src/mysql.c
index ac65f75a30ebf6b54d3b1158ea03b500387437f7..4342dea0211fb2d862ee4fc5e999dd4aa9d28a09 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))