[MDEV-31958] JSON_OBJECT() doesn't honour datatype in function Created: 2023-08-18 Updated: 2023-10-06 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | JSON |
| Affects Version/s: | 10.10 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Martín Alfano | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Linux |
||
| Attachments: |
|
| Description |
|
Also happens with json_array()
Everything is a string:
--------------- In 10.3 in the other hand, the results are different:
|
| Comments |
| Comment by Sergei Golubchik [ 2023-09-05 ] | ||||||||||||||||||||||||
|
I cannot repeat it, I'm getting
may be there's some important detail I'm missing? but simply creating the function as you provided and running it as you provided gives me the correct result as above | ||||||||||||||||||||||||
| Comment by Martín Alfano [ 2023-09-05 ] | ||||||||||||||||||||||||
|
Strange... some unknown factor is changing the result then... I've just copy/pasted it again and the result is the same, I'll add a screenshot. Let me know if you want me to try something else. | ||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2023-09-05 ] | ||||||||||||||||||||||||
|
What do you get for
| ||||||||||||||||||||||||
| Comment by Martín Alfano [ 2023-09-05 ] | ||||||||||||||||||||||||
|
|