Details
-
Bug
-
Status: Confirmed (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.11, 11.4, 11.8, 12.3, 13.1
Description
Hi,
I found that the JSON_KEYS function can accept an invalid function and return a result:
SELECT JSON_VALID('{"a":1} trailing'); -- 0 |
SELECT JSON_TYPE('{"a":1} trailing'); -- NULL |
SHOW WARNINGS; -- Warning 4038 Syntax error in JSON text in argument 1 to function 'json_type' at position 9 |
 |
SELECT JSON_KEYS('{"a":1} trailing');-- ["a"] |