mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 19:12:03 +00:00
26 lines
580 B
C++
26 lines
580 B
C++
#include "FunctionsStringSearch.h"
|
|
#include "FunctionFactory.h"
|
|
#include "PositionImpl.h"
|
|
|
|
|
|
namespace DB
|
|
{
|
|
namespace
|
|
{
|
|
|
|
struct NamePositionCaseInsensitive
|
|
{
|
|
static constexpr auto name = "positionCaseInsensitive";
|
|
};
|
|
|
|
using FunctionPositionCaseInsensitive = FunctionsStringSearch<PositionImpl<NamePositionCaseInsensitive, PositionCaseInsensitiveASCII>>;
|
|
|
|
}
|
|
|
|
REGISTER_FUNCTION(PositionCaseInsensitive)
|
|
{
|
|
factory.registerFunction<FunctionPositionCaseInsensitive>();
|
|
factory.registerAlias("instr", NamePositionCaseInsensitive::name, FunctionFactory::CaseInsensitive);
|
|
}
|
|
}
|