MDEV-14619: VIEW and GROUP_CONCAT

Correctly print separator string in single quotes.
This commit is contained in:
Oleksandr Byelkin 2017-12-17 00:01:55 +01:00
commit 273591df0c
3 changed files with 27 additions and 1 deletions

View file

@ -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("\')"));
}