mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
Fix error
This commit is contained in:
parent
f9e76ae380
commit
a564f70b66
@ -9,8 +9,6 @@
|
||||
#include <Parsers/ParserRefreshStrategy.h>
|
||||
#include <Parsers/ParserSelectWithUnionQuery.h>
|
||||
#include <Parsers/ParserSetQuery.h>
|
||||
#include <Parsers/ASTIdentifier.h>
|
||||
#include <Parsers/ASTIndexDeclaration.h>
|
||||
#include <Parsers/ASTAlterQuery.h>
|
||||
#include <Parsers/ASTLiteral.h>
|
||||
#include <Parsers/parseDatabaseAndTableName.h>
|
||||
|
@ -21,7 +21,7 @@ bool ParserCreateIndexDeclaration::parseImpl(Pos & pos, ASTPtr & node, Expected
|
||||
ParserToken close_p(TokenType::ClosingRoundBracket);
|
||||
ParserOrderByExpressionList order_list_p;
|
||||
|
||||
ParserDataType data_type_p;
|
||||
ParserFunction type_p;
|
||||
ParserExpression expression_p;
|
||||
ParserUnsignedInteger granularity_p;
|
||||
|
||||
@ -68,7 +68,7 @@ bool ParserCreateIndexDeclaration::parseImpl(Pos & pos, ASTPtr & node, Expected
|
||||
|
||||
if (s_type.ignore(pos, expected))
|
||||
{
|
||||
if (!data_type_p.parse(pos, type, expected))
|
||||
if (!type_p.parse(pos, type, expected))
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -179,7 +179,7 @@ bool ParserIndexDeclaration::parseImpl(Pos & pos, ASTPtr & node, Expected & expe
|
||||
ParserKeyword s_granularity(Keyword::GRANULARITY);
|
||||
|
||||
ParserIdentifier name_p;
|
||||
ParserDataType data_type_p;
|
||||
ParserFunction type_p;
|
||||
ParserExpression expression_p;
|
||||
ParserUnsignedInteger granularity_p;
|
||||
|
||||
@ -197,7 +197,7 @@ bool ParserIndexDeclaration::parseImpl(Pos & pos, ASTPtr & node, Expected & expe
|
||||
if (!s_type.ignore(pos, expected))
|
||||
return false;
|
||||
|
||||
if (!data_type_p.parse(pos, type, expected))
|
||||
if (!type_p.parse(pos, type, expected))
|
||||
return false;
|
||||
|
||||
if (s_granularity.ignore(pos, expected))
|
||||
|
Loading…
Reference in New Issue
Block a user