ClickHouse/src/Interpreters/InterpreterShowPrivilegesQuery.cpp
2020-05-14 14:12:20 +03:00

19 lines
408 B
C++

#include <Interpreters/InterpreterShowPrivilegesQuery.h>
#include <Interpreters/executeQuery.h>
namespace DB
{
InterpreterShowPrivilegesQuery::InterpreterShowPrivilegesQuery(const ASTPtr & query_ptr_, Context & context_)
: query_ptr(query_ptr_), context(context_)
{
}
BlockIO InterpreterShowPrivilegesQuery::execute()
{
return executeQuery("SELECT * FROM system.privileges", context, true);
}
}