mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +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();
|
||||
|
||||
/// 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);
|
||||
|
||||
/// 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