2017-04-01 09:19:00 +00:00
|
|
|
#include <IO/ReadBufferFromString.h>
|
2016-12-12 07:24:56 +00:00
|
|
|
|
2017-05-23 18:24:43 +00:00
|
|
|
#include <Interpreters/Context.h>
|
2017-04-01 09:19:00 +00:00
|
|
|
#include <Interpreters/executeQuery.h>
|
|
|
|
#include <Interpreters/InterpreterShowProcesslistQuery.h>
|
2016-12-12 07:24:56 +00:00
|
|
|
|
2017-04-01 09:19:00 +00:00
|
|
|
#include <Parsers/ASTQueryWithOutput.h>
|
|
|
|
#include <Parsers/ASTIdentifier.h>
|
2016-12-12 07:24:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
BlockIO InterpreterShowProcesslistQuery::execute()
|
|
|
|
{
|
2017-05-23 18:24:43 +00:00
|
|
|
return executeQuery("SELECT * FROM system.processes", context, true);
|
2016-12-12 07:24:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|