ClickHouse/src/Functions/position.cpp
Robert Schulze 349894fc2b
Fixes #61051
2024-03-10 13:13:59 +00:00

25 lines
419 B
C++

#include "FunctionsStringSearch.h"
#include "FunctionFactory.h"
#include "PositionImpl.h"
namespace DB
{
namespace
{
struct NamePosition
{
static constexpr auto name = "position";
};
using FunctionPosition = FunctionsStringSearch<PositionImpl<NamePosition, PositionCaseSensitiveASCII>>;
}
REGISTER_FUNCTION(Position)
{
factory.registerFunction<FunctionPosition>({}, FunctionFactory::CaseInsensitive);
}
}