mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 00:52:02 +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<NameILike, true, false, /*case-insensitive*/true>;
|
|
using FunctionILike = FunctionsStringSearch<ILikeImpl>;
|
|
|
|
}
|
|
|
|
void registerFunctionILike(FunctionFactory & factory)
|
|
{
|
|
factory.registerFunction<FunctionILike>();
|
|
}
|
|
|
|
}
|