mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 04:22:27 +01:00
Merge bk-internal:/home/bk/mysql-4.1/
into serg.mylan:/usr/home/serg/Abk/mysql-4.1
This commit is contained in:
commit
3570044b73
1 changed files with 2 additions and 0 deletions
|
@ -982,6 +982,8 @@ String *Item_func_right::val_str(String *str)
|
|||
never return a value more than "length".
|
||||
*/
|
||||
uint start=res->numchars()-(uint) length;
|
||||
if (!start)
|
||||
return res;
|
||||
start=res->charpos(start);
|
||||
tmp_value.set(*res,start,res->length()-start);
|
||||
return &tmp_value;
|
||||
|
|
Loading…
Reference in a new issue