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