mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
22 lines
426 B
C++
22 lines
426 B
C++
#include <Parsers/ParserShowPrivilegesQuery.h>
|
|
#include <Parsers/CommonParsers.h>
|
|
#include <Parsers/ASTShowPrivilegesQuery.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
bool ParserShowPrivilegesQuery::parseImpl(Pos & pos, ASTPtr & node, Expected & expected)
|
|
{
|
|
auto query = std::make_shared<ASTShowPrivilegesQuery>();
|
|
|
|
if (!ParserKeyword("SHOW PRIVILEGES").ignore(pos, expected))
|
|
return false;
|
|
|
|
node = query;
|
|
|
|
return true;
|
|
}
|
|
|
|
}
|