diff options
author | Sergei Golubchik <serg@mariadb.org> | 2020-04-28 21:41:49 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2020-04-30 10:13:21 +0200 |
commit | 69bd73173d041a06504161a0b93bb529737f2c84 (patch) | |
tree | 0eb620489c17ea0f77cd89800673c0f4b111a8f5 | |
parent | e8e67bd4a4cabaae98dcbfac79c1d4b84066bf1c (diff) | |
download | mariadb-git-69bd73173d041a06504161a0b93bb529737f2c84.tar.gz |
correct off-by-one error in CONCAT
CONCAT_WS didn't have it
-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: |