rename var

This commit is contained in:
Vxider 2022-05-15 11:18:23 +00:00
parent f2ef27e5d6
commit 6c2d78b802

View File

@ -421,8 +421,8 @@ UInt32 StorageWindowView::getCleanupBound()
ASTPtr StorageWindowView::getCleanupQuery() ASTPtr StorageWindowView::getCleanupQuery()
{ {
ASTPtr function_equal; ASTPtr function_less;
function_equal = makeASTFunction( function_less= makeASTFunction(
"less", "less",
std::make_shared<ASTIdentifier>(window_id_name), std::make_shared<ASTIdentifier>(window_id_name),
std::make_shared<ASTLiteral>(getCleanupBound())); std::make_shared<ASTLiteral>(getCleanupBound()));
@ -436,7 +436,7 @@ ASTPtr StorageWindowView::getCleanupQuery()
auto alter_command = std::make_shared<ASTAlterCommand>(); auto alter_command = std::make_shared<ASTAlterCommand>();
alter_command->type = ASTAlterCommand::DELETE; alter_command->type = ASTAlterCommand::DELETE;
alter_command->predicate = function_equal; alter_command->predicate = function_less;
alter_command->children.push_back(alter_command->predicate); alter_command->children.push_back(alter_command->predicate);
alter_query->command_list->children.push_back(alter_command); alter_query->command_list->children.push_back(alter_command);
return alter_query; return alter_query;