mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
Miscellaneous
This commit is contained in:
parent
e7db91a109
commit
91856dc36c
@ -584,7 +584,7 @@ class FunctionBinaryArithmetic : public IFunction
|
||||
std::string function_name;
|
||||
if (interval_data_type)
|
||||
{
|
||||
function_name = (function_is_plus ? "add" : "subtract") + interval_data_type->getKind().toString() + 's';
|
||||
function_name = String(function_is_plus ? "add" : "subtract") + interval_data_type->getKind().toString() + 's';
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -594,7 +594,7 @@ class FunctionBinaryArithmetic : public IFunction
|
||||
function_name = function_is_plus ? "addSeconds" : "subtractSeconds";
|
||||
}
|
||||
|
||||
return FunctionFactory::instance().get(function_name.str(), context);
|
||||
return FunctionFactory::instance().get(function_name, context);
|
||||
}
|
||||
|
||||
bool isAggregateMultiply(const DataTypePtr & type0, const DataTypePtr & type1) const
|
||||
|
Loading…
Reference in New Issue
Block a user