mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Fix SHOW PROCESSLIST segfault. [#CLICKHOUSE-2120]
This commit is contained in:
parent
4ae2bed9b6
commit
9f8a967e6c
@ -193,7 +193,7 @@ static std::tuple<ASTPtr, BlockIO> executeQueryImpl(
|
|||||||
res = interpreter->execute();
|
res = interpreter->execute();
|
||||||
|
|
||||||
/// Delayed initialization of query streams (required for KILL QUERY purposes)
|
/// Delayed initialization of query streams (required for KILL QUERY purposes)
|
||||||
if (!internal)
|
if (!internal && nullptr == typeid_cast<const ASTShowProcesslistQuery *>(&*ast))
|
||||||
(*process_list_entry)->setQueryStreams(res);
|
(*process_list_entry)->setQueryStreams(res);
|
||||||
|
|
||||||
/// Hold element of process list till end of query execution.
|
/// Hold element of process list till end of query execution.
|
||||||
|
5
dbms/tests/queries/0_stateless/00419_show_sql_queries.sh
Executable file
5
dbms/tests/queries/0_stateless/00419_show_sql_queries.sh
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
clickhouse-client -q "SHOW PROCESSLIST" &>/dev/null
|
||||||
|
clickhouse-client -q "SHOW DATABASES" &>/dev/null
|
||||||
|
clickhouse-client -q "SHOW TABLES" &>/dev/null
|
Loading…
Reference in New Issue
Block a user