Limit sql output size for show connectionlist command

This commit is contained in:
lazio579 2019-01-23 17:39:42 +08:00
parent a0c775a1d0
commit 70c5d40563

View File

@ -602,7 +602,7 @@ void admin_show_connectionlist(network_mysqld_con *con, int show_count)
if (con->state == ST_READ_QUERY) {
g_ptr_array_add(row, NULL);
} else {
g_ptr_array_add(row, g_strdup(con->orig_sql->str));
g_ptr_array_add(row, g_strndup(con->orig_sql->str, 1024));
}
} else {
g_ptr_array_add(row, NULL);