Fix error

This commit is contained in:
Alexey Milovidov 2024-07-22 08:09:39 +02:00
parent f9e76ae380
commit a564f70b66
3 changed files with 4 additions and 6 deletions

View File

@ -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>

View File

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

View File

@ -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))