mirror of
https://github.com/MariaDB/server.git
synced 2026-05-02 21:25:36 +02:00
MDEV-6134 SUBSTRING_INDEX returns wrong result for 8bit character sets when delimiter is not found
This commit is contained in:
parent
8db600f951
commit
cfa4548ba5
11 changed files with 188 additions and 0 deletions
|
|
@ -1404,6 +1404,8 @@ String *Item_func_substr_index::val_str(String *str)
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (count)
|
||||
return res; // Didn't find, return org string
|
||||
}
|
||||
}
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue