mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 19:12:03 +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;
|
||
|
}
|
||
|
|
||
|
}
|