Commit 59472975 authored by serg@serg.mylan's avatar serg@serg.mylan

Merge bk-internal:/home/bk/mysql-4.1/

into serg.mylan:/usr/home/serg/Abk/mysql-4.1
parents ea61b788 9b9690df
...@@ -982,6 +982,8 @@ String *Item_func_right::val_str(String *str) ...@@ -982,6 +982,8 @@ String *Item_func_right::val_str(String *str)
never return a value more than "length". never return a value more than "length".
*/ */
uint start=res->numchars()-(uint) length; uint start=res->numchars()-(uint) length;
if (!start)
return res;
start=res->charpos(start); start=res->charpos(start);
tmp_value.set(*res,start,res->length()-start); tmp_value.set(*res,start,res->length()-start);
return &tmp_value; return &tmp_value;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment