mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 02:41:59 +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);
|
|
}
|
|
}
|