#include "FunctionsStringSearch.h" #include "FunctionFactory.h" #include "PositionImpl.h" namespace DB { struct NamePosition { static constexpr auto name = "position"; }; using FunctionPosition = FunctionsStringSearch, NamePosition>; void registerFunctionPosition(FunctionFactory & factory) { factory.registerFunction(FunctionFactory::CaseInsensitive); factory.registerAlias("locate", NamePosition::name, FunctionFactory::CaseInsensitive); } }