mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 21:51:57 +00:00
22 lines
435 B
C++
22 lines
435 B
C++
|
#include <DataTypes/DataTypeString.h>
|
||
|
#include <Functions/FunctionFactory.h>
|
||
|
#include <Functions/FunctionStringToString.h>
|
||
|
#include <Functions/LowerUpperImpl.h>
|
||
|
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
|
||
|
struct NameUpper
|
||
|
{
|
||
|
static constexpr auto name = "upper";
|
||
|
};
|
||
|
using FunctionUpper = FunctionStringToString<LowerUpperImpl<'a', 'z'>, NameUpper>;
|
||
|
|
||
|
void registerFunctionUpper(FunctionFactory & factory)
|
||
|
{
|
||
|
factory.registerFunction<FunctionUpper>();
|
||
|
}
|
||
|
|
||
|
}
|