[MDEV-11440] JSON has become a reserved word in MariaDB Created: 2016-12-01  Updated: 2016-12-05  Resolved: 2016-12-05

Status: Closed
Project: MariaDB Server
Component/s: JSON
Affects Version/s: 10.2
Fix Version/s: 10.2.3

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Alexey Botchkov
Resolution: Fixed Votes: 0
Labels: json-10.2

Issue Links:
Relates
relates to MDEV-9143 JSON_xxx functions Closed

 Description   

In MySQL, JSON is not a reserved word, but in MariaDB it is.

MySQL 5.7

MariaDB [test]> CREATE TABLE json (j INT);
Query OK, 0 rows affected (0.54 sec)
 
MariaDB [test]> CREATE TABLE j (json INT);
Query OK, 0 rows affected (0.37 sec)

MariaDB 10.2

MariaDB [test]> CREATE TABLE json (j INT);
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'json (j INT)' at line 1
MariaDB [test]> CREATE TABLE j (json INT);
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'json INT)' at line 1



 Comments   
Comment by Alexey Botchkov [ 2016-12-05 ]

http://lists.askmonty.org/pipermail/commits/2016-December/010211.html

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