mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 09:52:38 +00:00
19 lines
416 B
C++
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);
|
|
}
|
|
|
|
}
|