MDEV-6134 SUBSTRING_INDEX returns wrong result for 8bit character sets when delimiter is not found

This commit is contained in:
Alexander Barkov 2014-04-21 10:13:38 +04:00
commit cfa4548ba5
11 changed files with 188 additions and 0 deletions

View file

@ -1404,6 +1404,8 @@ String *Item_func_substr_index::val_str(String *str)
break;
}
}
if (count)
return res; // Didn't find, return org string
}
}
/*