ClickHouse/src/Interpreters/InterpreterShowPrivilegesQuery.cpp
2021-05-31 17:49:02 +03:00

19 lines
416 B
C++

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