summaryrefslogtreecommitdiff
path: root/mysql-test/t/view.test
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 /mysql-test/t/view.test
parent20089f5a39fa8f6f08113f12ed87c34e844c4fc6 (diff)
downloadmariadb-git-273591df0c9917a93bc2d695f61d9f35fa7b1f5c.tar.gz
MDEV-14619: VIEW and GROUP_CONCAT
Correctly print separator string in single quotes.
Diffstat (limited to 'mysql-test/t/view.test')
-rw-r--r--mysql-test/t/view.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/t/view.test b/mysql-test/t/view.test
index 79991f89683..0fc7cb6adf7 100644
--- a/mysql-test/t/view.test
+++ b/mysql-test/t/view.test
@@ -5578,6 +5578,18 @@ PREPARE stmt FROM 'REPLACE INTO v2 SELECT a FROM t3';
drop view v1,v2;
drop table t3;
+--echo #
+--echo # MDEV-14619: VIEW and GROUP_CONCAT
+--echo #
+
+CREATE TABLE t1 (str text);
+INSERT INTO t1 VALUES ("My"),("SQL");
+CREATE VIEW v1 AS SELECT GROUP_CONCAT(str SEPARATOR '\\') FROM t1;
+SELECT * FROM v1;
+SHOW CREATE VIEW v1;
+drop view v1;
+drop table t1;
+
--echo # -----------------------------------------------------------------
--echo # -- End of 5.5 tests.
--echo # -----------------------------------------------------------------