correct off-by-one error in CONCAT

CONCAT_WS didn't have it
This commit is contained in:
Sergei Golubchik 2020-04-28 21:41:49 +02:00
parent e8e67bd4a4
commit 69bd73173d

View file

@ -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: