Commit 69bd7317 authored by Sergei Golubchik's avatar Sergei Golubchik

correct off-by-one error in CONCAT

CONCAT_WS didn't have it
parent e8e67bd4
......@@ -539,7 +539,7 @@ String *Item_func_concat::val_str(String *str)
use_as_buff=str; // Put next arg here
}
else if (tmp_value.is_alloced() && res2->ptr() >= tmp_value.ptr() &&
res2->ptr() <= tmp_value.ptr() + tmp_value.alloced_length())
res2->ptr() < tmp_value.ptr() + tmp_value.alloced_length())
{
/*
This happens really seldom:
......
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