ClickHouse/src/Functions/notLike.cpp
Robert Schulze a8098db25d
Minor cleanups
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.
2022-11-07 14:03:46 +00:00

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>();
}
}