openbsd-ports/databases/mysql/patches/patch-sql_sql_parse_cc
giovanni d6ea53e8e0 Update to 5.1.58
help and ok Brad (Maintainer)
2011-09-05 07:11:23 +00:00

17 lines
843 B
Plaintext

$OpenBSD: patch-sql_sql_parse_cc,v 1.10 2011/09/05 07:11:23 giovanni Exp $
Fix floating point string printing in MySQL status output
(MySQL Bug #61205)
--- sql/sql_parse.cc.orig Tue Apr 12 14:11:38 2011
+++ sql/sql_parse.cc Thu Jun 30 10:57:33 2011
@@ -1572,7 +1572,7 @@ bool dispatch_command(enum enum_server_command command
length= my_snprintf(buff, buff_len - 1,
"Uptime: %lu Threads: %d Questions: %lu "
"Slow queries: %lu Opens: %lu Flush tables: %lu "
- "Open tables: %u Queries per second avg: %u.%u",
+ "Open tables: %u Queries per second avg: %u.%03u",
uptime,
(int) thread_count, (ulong) thd->query_id,
current_global_status_var.long_query_count,