mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 01:22:04 +00:00
--amend fixed string LIKE: initial implementation
This commit is contained in:
parent
c08fce3e60
commit
d5b17893fc
@ -277,14 +277,16 @@ struct MatchImpl
|
||||
next_pos += n;
|
||||
++i;
|
||||
}
|
||||
next_pos += n;
|
||||
|
||||
/// We check that the entry does not pass through the boundaries of strings.
|
||||
if (pos + strstr_pattern.size() < next_pos)
|
||||
if (pos + strstr_pattern.size() <= next_pos)
|
||||
res[i] = !revert;
|
||||
else
|
||||
res[i] = revert;
|
||||
|
||||
pos = next_pos;
|
||||
++i;
|
||||
}
|
||||
}
|
||||
|
||||
@ -355,8 +357,9 @@ struct MatchImpl
|
||||
next_pos += n;
|
||||
++i;
|
||||
}
|
||||
next_pos += n;
|
||||
|
||||
if (pos + strstr_pattern.size() < next_pos)
|
||||
if (pos + strstr_pattern.size() <= next_pos)
|
||||
{
|
||||
/// And if it does not, if necessary, we check the regexp.
|
||||
|
||||
@ -390,6 +393,7 @@ struct MatchImpl
|
||||
res[i] = revert;
|
||||
|
||||
pos = next_pos;
|
||||
++i;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user