ClickHouse/src/Parsers/ParserShowPrivilegesQuery.cpp

22 lines
426 B
C++
Raw Normal View History

2020-05-12 21:46:14 +00:00
#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;
}
}