Addition to prev. revision [#CLICKHOUSE-2]

This commit is contained in:
Alexey Milovidov 2018-09-02 06:43:31 +03:00
parent 66afebc498
commit afe3973325

View File

@ -351,6 +351,9 @@ struct MatchImpl
const std::string & pattern,
PaddedPODArray<UInt8> & res)
{
if (offsets.empty())
return;
String strstr_pattern;
/// A simple case where the LIKE expression reduces to finding a substring in a string
if (like && likePatternIsStrstr(pattern, strstr_pattern))