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. /** buildId() - returns the compiler build id of the running binary.
*/ */
class FunctionVersion : public IFunction class FunctionBuildId : public IFunction
{ {
public: public:
static constexpr auto name = "buildId"; static constexpr auto name = "buildId";
static FunctionPtr create(const Context &) static FunctionPtr create(const Context &)
{ {
return std::make_shared<FunctionVersion>(); return std::make_shared<FunctionBuildId>();
} }
String getName() const override 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 registerFunctionIfNotFinite(FunctionFactory &);
void registerFunctionThrowIf(FunctionFactory &); void registerFunctionThrowIf(FunctionFactory &);
void registerFunctionVersion(FunctionFactory &); void registerFunctionVersion(FunctionFactory &);
void registerFunctionBuildId(FunctionFactory &);
void registerFunctionUptime(FunctionFactory &); void registerFunctionUptime(FunctionFactory &);
void registerFunctionTimeZone(FunctionFactory &); void registerFunctionTimeZone(FunctionFactory &);
void registerFunctionRunningAccumulate(FunctionFactory &); void registerFunctionRunningAccumulate(FunctionFactory &);
@ -94,6 +95,7 @@ void registerFunctionsMiscellaneous(FunctionFactory & factory)
registerFunctionIfNotFinite(factory); registerFunctionIfNotFinite(factory);
registerFunctionThrowIf(factory); registerFunctionThrowIf(factory);
registerFunctionVersion(factory); registerFunctionVersion(factory);
registerFunctionBuildId(factory);
registerFunctionUptime(factory); registerFunctionUptime(factory);
registerFunctionTimeZone(factory); registerFunctionTimeZone(factory);
registerFunctionRunningAccumulate(factory); registerFunctionRunningAccumulate(factory);