mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 10:22:10 +00:00
a8098db25d
Semantics are unchanged. Some special case handling was changed to early-out, because of that the indentation changed but the logic is the same as before.
26 lines
462 B
C++
26 lines
462 B
C++
#include "FunctionsStringSearch.h"
|
|
#include "FunctionFactory.h"
|
|
#include "MatchImpl.h"
|
|
|
|
namespace DB
|
|
{
|
|
namespace
|
|
{
|
|
|
|
struct NameNotLike
|
|
{
|
|
static constexpr auto name = "notLike";
|
|
};
|
|
|
|
using NotLikeImpl = MatchImpl<NameNotLike, MatchTraits::Syntax::Like, MatchTraits::Case::Sensitive, MatchTraits::Result::Negate>;
|
|
using FunctionNotLike = FunctionsStringSearch<NotLikeImpl>;
|
|
|
|
}
|
|
|
|
REGISTER_FUNCTION(NotLike)
|
|
{
|
|
factory.registerFunction<FunctionNotLike>();
|
|
}
|
|
|
|
}
|