mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
Added function aliases for 'trunc' [#CLICKHOUSE-2].
This commit is contained in:
parent
c2595934f1
commit
5224345c03
@ -9,10 +9,15 @@ void registerFunctionsRound(FunctionFactory & factory)
|
||||
factory.registerFunction<FunctionRoundToExp2>();
|
||||
factory.registerFunction<FunctionRoundDuration>();
|
||||
factory.registerFunction<FunctionRoundAge>();
|
||||
factory.registerFunction<FunctionRound>();
|
||||
factory.registerFunction<FunctionCeil>();
|
||||
factory.registerFunction<FunctionFloor>();
|
||||
factory.registerFunction<FunctionTrunc>();
|
||||
|
||||
factory.registerFunction("round", FunctionRound::create, FunctionFactory::CaseInsensitive);
|
||||
factory.registerFunction("floor", FunctionFloor::create, FunctionFactory::CaseInsensitive);
|
||||
factory.registerFunction("ceil", FunctionCeil::create, FunctionFactory::CaseInsensitive);
|
||||
factory.registerFunction("trunc", FunctionTrunc::create, FunctionFactory::CaseInsensitive);
|
||||
|
||||
/// Compatibility aliases.
|
||||
factory.registerFunction("ceiling", FunctionCeil::create, FunctionFactory::CaseInsensitive);
|
||||
factory.registerFunction("truncate", FunctionTrunc::create, FunctionFactory::CaseInsensitive);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user