ClickHouse/src/Parsers/ParserShowPrivilegesQuery.cpp
2020-05-14 14:12:20 +03:00

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;
}
}