diff options
author | Sergei Golubchik <serg@mariadb.org> | 2019-10-21 19:00:42 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2019-10-23 15:55:23 +0200 |
commit | 790a74d22beeadbd75dcc84dca03b3b450acd8bf (patch) | |
tree | b5a778ac8b3d5e63c9dea27780e1c224e9b6e3ac /sql/sql_show.cc | |
parent | ae702d76438d15c84e0e113031366b0a8da47b9f (diff) | |
parent | 719ac0ad4af0dd1e20dbc94eff8f8c9f786b3393 (diff) | |
download | mariadb-git-790a74d22beeadbd75dcc84dca03b3b450acd8bf.tar.gz |
Merge branch 'github/5.5' into 10.1
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r-- | sql/sql_show.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc index c154f5da472..d8f65c74448 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -2646,8 +2646,12 @@ void mysqld_list_processes(THD *thd,const char *user, bool verbose) else protocol->store_null(); protocol->store(thd_info->state_info, system_charset_info); - protocol->store(thd_info->query_string.str(), - thd_info->query_string.charset()); + if (thd_info->query_string.length()) + protocol->store(thd_info->query_string.str(), + thd_info->query_string.length(), + thd_info->query_string.charset()); + else + protocol->store_null(); if (!thd->variables.old_mode && !(thd->variables.old_behavior & OLD_MODE_NO_PROGRESS_INFO)) protocol->store(thd_info->progress, 3, &store_buffer); |