Bug #71949 JSON_VALID does not reject invalid documents
| Submitted: | 5 Mar 2014 20:29 | Modified: | 12 Mar 2014 18:12 |
|---|---|---|---|
| Reporter: | Sveta Smirnova | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server: JSON User-defined function ( UDF ) | Severity: | S3 (Non-critical) |
| Version: | 0.3.1 | OS: | Any |
| Assigned to: | CPU Architecture: | Any |
[12 Mar 2014 18:12]
Sveta Smirnova
Posted by developer: Fixed in version 0.3.1
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.037 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.
Description: If there is no separator between array elements JSON_VALID still considers such documents as valid. How to repeat: select json_valid('[1, 2 3]'); json_valid('[1, 2 3]') 1 select json_valid('{"foo": "bar" "baz": "ban"}'); json_valid('{"foo": "bar" "baz": "ban"}') 1 Suggested fix: Should return 0 in both cases.