You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-09-03 23:42:03 +03:00
Merge pull request #470 from mariadb-corporation/MCOL-1390
MCOL-1390 Fix SUBSTRING_INDEX for negative count
This commit is contained in:
@@ -71,6 +71,9 @@ std::string Func_substring_index::getStrVal(rowgroup::Row& row,
|
|||||||
if ( count > (int64_t) end )
|
if ( count > (int64_t) end )
|
||||||
return str;
|
return str;
|
||||||
|
|
||||||
|
if (( count < 0 ) && ((count * -1) > end))
|
||||||
|
return str;
|
||||||
|
|
||||||
string value = str;
|
string value = str;
|
||||||
|
|
||||||
if ( count > 0 ) {
|
if ( count > 0 ) {
|
||||||
|
Reference in New Issue
Block a user