diff options
-rw-r--r-- | sql/item_strfunc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc index f8f3d913cd8..5fdb1745068 100644 --- a/sql/item_strfunc.cc +++ b/sql/item_strfunc.cc @@ -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: |