[MDEV-17850] json_extract returns null is any (even nested) data contains 0 written in scientific notation (0E-10) Created: 2018-11-27 Updated: 2023-04-27 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | JSON |
| Affects Version/s: | 10.3.11, 10.2, 10.3 |
| Fix Version/s: | 10.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Tomas Lamr | Assignee: | Rucha Deodhar |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Hi, the scientific notation handling was partially fixed in But this still fails
although this works
|
| Comments |
| Comment by Tomas Lamr [ 2018-11-27 ] | ||||||||||||||||||||||||
|
I know that the zero encoded in scientific notation seems to be strange, but it is just how one of the most used json library works by default. This is what Oracle 18c returns
| ||||||||||||||||||||||||
| Comment by Tomas Lamr [ 2018-11-27 ] | ||||||||||||||||||||||||
|
ah, it just seems to be json_extract specific, json_value work also on mariadb
| ||||||||||||||||||||||||
| Comment by Alice Sherepa [ 2018-11-27 ] | ||||||||||||||||||||||||
|
repeatable on 10.2,10.3
MySQL 8.0.12
| ||||||||||||||||||||||||
| Comment by Tomas Lamr [ 2018-11-27 ] | ||||||||||||||||||||||||
|
Thanks a lot for such quick feedback! |