提交 7a876fdd 编写于 作者: A Alexey Milovidov

Attempt to fix build with gcc 6 [#CLICKHOUSE-2].

上级 e29604b7
......@@ -609,7 +609,7 @@ struct NameToString { static constexpr auto name = "toString"; };
struct NameToInterval ## INTERVAL_KIND \
{ \
static constexpr auto name = "toInterval" #INTERVAL_KIND; \
static constexpr auto kind = DataTypeInterval::INTERVAL_KIND; \
static constexpr int kind = DataTypeInterval::INTERVAL_KIND; \
};
DEFINE_NAME_TO_INTERVAL(Second)
......@@ -826,7 +826,7 @@ private:
+ toString(arguments.size()) + ", should be 1.",
ErrorCodes::NUMBER_OF_ARGUMENTS_DOESNT_MATCH);
return std::make_shared<DataTypeInterval>(Name::kind);
return std::make_shared<DataTypeInterval>(DataTypeInterval::Kind(Name::kind));
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册