1
0
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:
unknown
2004-12-10 00:17:43 +02:00
parent ac96a2bbcb
commit 41a61e84d7
4 changed files with 18 additions and 2 deletions

View File

@ -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;
}