ClickHouse/src/Functions/ilike.cpp

25 lines
431 B
C++
Raw Normal View History

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