[MDEV-14619] VIEW and GROUP_CONCAT Created: 2017-12-11  Updated: 2017-12-16  Resolved: 2017-12-16

Status: Closed
Project: MariaDB Server
Component/s: Views
Affects Version/s: 5.5, 10.0, 10.1, 10.2.11, 10.2
Fix Version/s: 5.5.59, 10.0.34, 10.1.30, 10.2.12, 10.3.3

Type: Bug Priority: Minor
Reporter: Sergii Volikov Assignee: Oleksandr Byelkin
Resolution: Fixed Votes: 0
Labels: upstream-fixed


 Description   

GROUP_CONCAT with backslash separator doesn't work consistently inside VIEW
How to repeat:

mysql> CREATE TABLE test_1 (str text);
mysql> INSERT INTO `test_1` VALUES ("My"),("SQL");
mysql> 
CREATE VIEW my_view AS SELECT GROUP_CONCAT(str  SEPARATOR  '\\') FROM `test_1`
;
Query OK, 0 rows affected (0.01 sec)
 
mysql> SELECT * FROM my_view;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '\\')` from `data`.`test_1`' at line 1
mysql> SHOW CREATE VIEW my_view;ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '\\')` from `data`.`test_1`' at line 1

No bug MySql 5.7.19.



 Comments   
Comment by Elena Stepanova [ 2017-12-12 ]

Thanks for the report.

Also reproducible with MySQL 5.6, but apparently fixed in MySQL 5.7.

Generated at Thu Feb 08 08:14:58 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.