mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
Fix build
This commit is contained in:
parent
b2d1e08dd6
commit
733e34f890
@ -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>();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user