Fix build

This commit is contained in:
Alexey Milovidov 2020-06-20 14:33:09 +03:00
parent b2d1e08dd6
commit 733e34f890
2 changed files with 6 additions and 4 deletions

View File

@ -12,13 +12,13 @@ namespace DB
/** buildId() - returns the compiler build id of the running binary.
*/
class FunctionVersion : public IFunction
class FunctionBuildId : public IFunction
{
public:
static constexpr auto name = "buildId";
static FunctionPtr create(const Context &)
{
return std::make_shared<FunctionVersion>();
return std::make_shared<FunctionBuildId>();
}
String getName() const override
@ -43,9 +43,9 @@ public:
};
void registerFunctionVersion(FunctionFactory & factory)
void registerFunctionBuildId(FunctionFactory & factory)
{
factory.registerFunction<FunctionVersion>();
factory.registerFunction<FunctionBuildId>();
}
}

View File

@ -38,6 +38,7 @@ void registerFunctionIsNaN(FunctionFactory &);
void registerFunctionIfNotFinite(FunctionFactory &);
void registerFunctionThrowIf(FunctionFactory &);
void registerFunctionVersion(FunctionFactory &);
void registerFunctionBuildId(FunctionFactory &);
void registerFunctionUptime(FunctionFactory &);
void registerFunctionTimeZone(FunctionFactory &);
void registerFunctionRunningAccumulate(FunctionFactory &);
@ -94,6 +95,7 @@ void registerFunctionsMiscellaneous(FunctionFactory & factory)
registerFunctionIfNotFinite(factory);
registerFunctionThrowIf(factory);
registerFunctionVersion(factory);
registerFunctionBuildId(factory);
registerFunctionUptime(factory);
registerFunctionTimeZone(factory);
registerFunctionRunningAccumulate(factory);