mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 13:02:00 +00:00
25 lines
431 B
C++
25 lines
431 B
C++
|
#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>();
|
||
|
}
|
||
|
}
|