From d5b3228b986af90cbb73329e1776e57332c967f4 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Fri, 15 Nov 2024 16:47:01 +0100 Subject: [PATCH] Miscellaneous --- src/Parsers/ExpressionElementParsers.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Parsers/ExpressionElementParsers.cpp b/src/Parsers/ExpressionElementParsers.cpp index ad062d27a37..23623c9169e 100644 --- a/src/Parsers/ExpressionElementParsers.cpp +++ b/src/Parsers/ExpressionElementParsers.cpp @@ -1309,13 +1309,11 @@ bool ParserCollectionOfLiterals::parseImpl(Pos & pos, ASTPtr & node, { if (pos->type == closing_bracket) { - std::shared_ptr literal; - /// Parse one-element tuples (e.g. (1)) later as single values for backward compatibility. if (std::is_same_v && layers.back().arr.size() == 1) return false; - literal = std::make_shared(std::move(layers.back().arr)); + std::shared_ptr literal = std::make_shared(std::move(layers.back().arr)); literal->begin = layers.back().literal_begin; literal->end = ++pos;