mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 08:52:06 +00:00
26 lines
428 B
C++
26 lines
428 B
C++
#include "FunctionsStringSearch.h"
|
|
#include "FunctionFactory.h"
|
|
#include "MatchImpl.h"
|
|
|
|
namespace DB
|
|
{
|
|
namespace
|
|
{
|
|
|
|
struct NameILike
|
|
{
|
|
static constexpr auto name = "ilike";
|
|
};
|
|
|
|
using ILikeImpl = MatchImpl<true, false, /*case-insensitive*/true>;
|
|
using FunctionILike = FunctionsStringSearch<ILikeImpl, NameILike>;
|
|
|
|
}
|
|
|
|
void registerFunctionILike(FunctionFactory & factory)
|
|
{
|
|
factory.registerFunction<FunctionILike>();
|
|
}
|
|
|
|
}
|