1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

MCOL-4099 fix range check

This commit is contained in:
David Hall
2020-08-28 13:46:21 -05:00
parent de3b2452a1
commit e44d487011

View File

@ -84,7 +84,7 @@ std::string Func_insert::getStrVal(rowgroup::Row& row,
int64_t strLen = cs->numchars(pos, end);
// Return the original string if start isn't within the string.
if ((start < 0) || start > strLen)
if ((start < 0) || start >= strLen)
return src;
if ((length < 0) || (length > strLen))