summaryrefslogtreecommitdiff
path: root/sql/item_sum.cc
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@sanjaLaptopT>2017-12-17 00:01:55 +0100
committerOleksandr Byelkin <sanja@sanjaLaptopT>2017-12-17 00:01:55 +0100
commit273591df0c9917a93bc2d695f61d9f35fa7b1f5c (patch)
tree28162b11eaa2727d526fb0b72fad1ba3b6a5a21f /sql/item_sum.cc
parent20089f5a39fa8f6f08113f12ed87c34e844c4fc6 (diff)
downloadmariadb-git-273591df0c9917a93bc2d695f61d9f35fa7b1f5c.tar.gz
MDEV-14619: VIEW and GROUP_CONCAT
Correctly print separator string in single quotes.
Diffstat (limited to 'sql/item_sum.cc')
-rw-r--r--sql/item_sum.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_sum.cc b/sql/item_sum.cc
index 9a2e2e6cd4c..709c2b6f7b5 100644
--- a/sql/item_sum.cc
+++ b/sql/item_sum.cc
@@ -3656,7 +3656,7 @@ void Item_func_group_concat::print(String *str, enum_query_type query_type)
}
}
str->append(STRING_WITH_LEN(" separator \'"));
- str->append(*separator);
+ str->append_for_single_quote(separator->ptr(), separator->length());
str->append(STRING_WITH_LEN("\')"));
}