Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect behaviour of nested JSON_OBJECT functions #2627

Closed
evyalyy opened this issue Jan 16, 2022 · 1 comment
Closed

Incorrect behaviour of nested JSON_OBJECT functions #2627

evyalyy opened this issue Jan 16, 2022 · 1 comment

Comments

@evyalyy
Copy link

evyalyy commented Jan 16, 2022

Following query produces incorrect result:

> select JSON_OBJECT('equipments', JSON_OBJECT('i', 1));
+------------------------------------------------+
| JSON_OBJECT('equipments', JSON_OBJECT('i', 1)) |
+------------------------------------------------+
| {"equipments":{"Val":{"i":1}}}                 |
+------------------------------------------------+

When expected result should be

{"equipments": {"i":1}}
@fulghum fulghum self-assigned this Jan 24, 2022
@jennifersp
Copy link
Contributor

fixed with dolthub/go-mysql-server#741

@fulghum fulghum removed their assignment Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants