From a60912fac56ee0169062ec73a8c74b084ea2334d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Mon, 9 Nov 2015 23:16:28 +0000 Subject: [PATCH] Fixed datatypes for #428 --- lib/MySQL_Thread.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/MySQL_Thread.cpp b/lib/MySQL_Thread.cpp index 596c41634..7ed22b948 100644 --- a/lib/MySQL_Thread.cpp +++ b/lib/MySQL_Thread.cpp @@ -1860,21 +1860,21 @@ SQLite3_result * MySQL_Threads_Handler::SQL3_GlobalStatus() { { // Connections pta[0]=(char *)"Server_Connections_aborted"; - sprintf(buf,"%d",MyHGM->status.server_connections_aborted); + sprintf(buf,"%lu",MyHGM->status.server_connections_aborted); pta[1]=buf; result->add_row(pta); } { // Connections pta[0]=(char *)"Server_Connections_connected"; - sprintf(buf,"%d",MyHGM->status.server_connections_connected); + sprintf(buf,"%lu",MyHGM->status.server_connections_connected); pta[1]=buf; result->add_row(pta); } { // Connections pta[0]=(char *)"Server_Connections_created"; - sprintf(buf,"%d",MyHGM->status.server_connections_created); + sprintf(buf,"%lu",MyHGM->status.server_connections_created); pta[1]=buf; result->add_row(pta); }