mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 01:22:04 +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.
|
/** 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>();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user