[MDEV-12312] JSON_CONTAINS_PATH does not detect invalid path and returns TRUE Created: 2017-03-20  Updated: 2017-10-06  Resolved: 2017-10-06

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

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

Issue Links:
Relates
Sprint: 10.2.10

 Description   

10.2

MariaDB [test]> select json_contains_path('{"foo":"bar"}', 'one', '$[]');
+---------------------------------------------------+
| json_contains_path('{"foo":"bar"}', 'one', '$[]') |
+---------------------------------------------------+
|                                                 1 |
+---------------------------------------------------+
1 row in set (0.00 sec)

MySQL 5.7

MySQL [test]> select json_contains_path('{"foo":"bar"}', 'one', '$[]');
ERROR 3143 (42000): Invalid JSON path expression. The error is around character position 2.



 Comments   
Comment by Alexey Botchkov [ 2017-10-06 ]

http://lists.askmonty.org/pipermail/commits/2017-October/011530.html

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