mirror of
https://gitee.com/wangbin579/cetus.git
synced 2024-12-02 03:47:41 +08:00
Limit sql output size for show connectionlist command
This commit is contained in:
parent
a0c775a1d0
commit
70c5d40563
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user