mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-01 06:00:49 +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 NameLower
|
||
|
{
|
||
|
static constexpr auto name = "lower";
|
||
|
};
|
||
|
using FunctionLower = FunctionStringToString<LowerUpperImpl<'A', 'Z'>, NameLower>;
|
||
|
|
||
|
void registerFunctionLower(FunctionFactory & factory)
|
||
|
{
|
||
|
factory.registerFunction<FunctionLower>();
|
||
|
}
|
||
|
|
||
|
}
|