mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
b044d44fef
- introduced class MatchTraits with enums that replace bool template parameters - (minor: made negation the last template parameters because negation executes last during evaluation)
26 lines
481 B
C++
26 lines
481 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, MatchTraits::Syntax::Like, MatchTraits::Case::Insensitive, MatchTraits::Result::DontNegate>;
|
|
using FunctionILike = FunctionsStringSearch<ILikeImpl>;
|
|
|
|
}
|
|
|
|
void registerFunctionILike(FunctionFactory & factory)
|
|
{
|
|
factory.registerFunction<FunctionILike>();
|
|
}
|
|
|
|
}
|