mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Merge branch '10.0' into 10.1
This commit is contained in:
@@ -4798,10 +4798,11 @@ com_status(String *buffer __attribute__((unused)),
|
||||
tee_fprintf(stdout, "Protocol:\t\tCompressed\n");
|
||||
#endif
|
||||
|
||||
if ((status_str= mysql_stat(&mysql)) && !mysql_error(&mysql)[0])
|
||||
const char *pos;
|
||||
if ((status_str= mysql_stat(&mysql)) && !mysql_error(&mysql)[0] &&
|
||||
(pos= strchr(status_str,' ')))
|
||||
{
|
||||
ulong sec;
|
||||
const char *pos= strchr(status_str,' ');
|
||||
/* print label */
|
||||
tee_fprintf(stdout, "%.*s\t\t\t", (int) (pos-status_str), status_str);
|
||||
if ((status_str= str2int(pos,10,0,LONG_MAX,(long*) &sec)))
|
||||
|
Reference in New Issue
Block a user