[MDEV-28075] JSON_VALUE returns first value from array not from range Created: 2022-03-16 Updated: 2022-04-12 Resolved: 2022-04-12 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | JSON |
| Affects Version/s: | 10.9 |
| Fix Version/s: | 10.9.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Lena Startseva | Assignee: | Rucha Deodhar |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
Test:
Expected result:
Actual result:
The same behavior when json contains only arrays:
"1.1" is the first value in array not first in the specified range. |
| Comments |
| Comment by Lena Startseva [ 2022-03-16 ] | ||||||||||||||||||||||||||
|
JSON_QUERY has the same behavior:
"[17, 18]' is incorrect result it is expected "[13, 14]" | ||||||||||||||||||||||||||
| Comment by Rucha Deodhar [ 2022-03-21 ] | ||||||||||||||||||||||||||
|
Patch: https://github.com/MariaDB/server/commit/a2c85b42079d45b05534526abb2fb52c486176cc | ||||||||||||||||||||||||||
| Comment by Alexey Botchkov [ 2022-04-12 ] | ||||||||||||||||||||||||||
|
ok to push. | ||||||||||||||||||||||||||
| Comment by Rucha Deodhar [ 2022-04-12 ] | ||||||||||||||||||||||||||
|
Pushed to https://github.com/MariaDB/server/tree/bb-10.9-MDEV-27911 |