ClickHouse/src/Functions/ilike.cpp

26 lines
428 B
C++
Raw Normal View History

#include "FunctionsStringSearch.h"
#include "FunctionFactory.h"
#include "MatchImpl.h"
namespace DB
{
2020-09-07 18:00:37 +00:00
namespace
{
struct NameILike
{
static constexpr auto name = "ilike";
};
2020-09-07 18:00:37 +00:00
using ILikeImpl = MatchImpl<true, false, /*case-insensitive*/true>;
using FunctionILike = FunctionsStringSearch<ILikeImpl, NameILike>;
2020-09-07 18:00:37 +00:00
}
void registerFunctionILike(FunctionFactory & factory)
{
factory.registerFunction<FunctionILike>();
}
2020-09-07 18:00:37 +00:00
}