[MDEV-26167] JSON_OBJECT value is truncated under some condition Created: 2021-07-16 Updated: 2023-04-27 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | JSON |
| Affects Version/s: | 10.5.11, 10.6.3, 10.2, 10.3, 10.4, 10.5, 10.6 |
| Fix Version/s: | 10.4, 10.5, 10.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Vincent Guinaudeau | Assignee: | Rucha Deodhar |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
linux, docker |
||
| Description |
| Comments |
| Comment by Alice Sherepa [ 2021-07-19 ] | ||||||||||||||||||
|
Thank you! I repeated on 10.2-10.6:
| ||||||||||||||||||
| Comment by Adrian [ 2022-11-23 ] | ||||||||||||||||||
|
tested versions: SELECT if i make only the select is working WHERE doesn't seem to impact anything working meaning the JSON_SET('{}',"$.key1",IF(JSON_VALUE(tabl1.col2), "$.key2")< 100, 1, 0)) returns correct json( {"key1": 0}), not truncated ({"key" | ||||||||||||||||||
| Comment by Janez Resnik [ 2022-11-23 ] | ||||||||||||||||||
|
In ver. 10.3 and 10.7.7, https://onecompiler.com/mariadb/3yptrhewz JSON_COMPACT fix seems to work:
|