Details
Description
I have found the following bug:
> set @xxx= JSON_INSERT('{}', '$.C', NULL); |
> select @xxx |
+-------------+
|
| @xxx | |
+-------------+
|
| {"C": null} | |
+-------------+
|
1 row in set (0.001 sec){quote} |
 |
> select nvl(json_value(@xxx, '$.C'),'NVL-NULL-VALUE'); |
+-----------------------------------------------+
|
| nvl(json_value(@xxx, '$.C'),'NVL-NULL-VALUE') | |
+-----------------------------------------------+
|
| null | |
+-----------------------------------------------+
|
1 row in set (0.001 sec) |
I was expecting
> select nvl(json_value(@xxx, '$.C'),'NVL-NULL-VALUE'); |
+-----------------------------------------------+
|
| nvl(json_value(@xxx, '$.C'),'NVL-NULL-VALUE') | |
+-----------------------------------------------+
|
| NVL-NULL-VALUE |
|
+-----------------------------------------------+
|
1 row in set (0.001 sec) |
Attachments
Issue Links
- is duplicated by
-
MDEV-27151 JSON_VALUE() does not parse NULL properties properly
- Closed