mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
A fix for a crashing bug #7101, which occures when the
expression involving LEFT() function is used in GROUP BY field. mysql-test/r/func_str.result: A result for bug #7101 test case mysql-test/t/func_str.test: Test case for bug #7101
This commit is contained in:
@ -955,8 +955,9 @@ String *Item_func_left::val_str(String *str)
|
||||
if (res->length() <= (uint) length ||
|
||||
res->length() <= (char_pos= res->charpos(length)))
|
||||
return res;
|
||||
str_value.set(*res, 0, char_pos);
|
||||
return &str_value;
|
||||
|
||||
tmp_value.set(*res, 0, char_pos);
|
||||
return &tmp_value;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user