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

Bug Report: JSON SQL marshaling does not escape keys properly #14065

Closed
dbussink opened this issue Sep 21, 2023 · 0 comments · Fixed by #14066
Closed

Bug Report: JSON SQL marshaling does not escape keys properly #14065

dbussink opened this issue Sep 21, 2023 · 0 comments · Fixed by #14066

Comments

@dbussink
Copy link
Contributor

Overview of the Issue

Marshalling the following JSON document to SQL doesn't escape the key properly:

{"key with ' in it": []}

Leads to:

JSON_OBJECT(_utf8mb4'key with ' in it', JSON_ARRAY())

instead of:

JSON_OBJECT(_utf8mb4'key with \' in it', JSON_ARRAY())

Reproduction Steps

Binary Version

-

Operating System and Environment details

-

Log Fragments

No response

@dbussink dbussink added Type: Bug Needs Triage This issue needs to be correctly labelled and triaged Component: VReplication and removed Needs Triage This issue needs to be correctly labelled and triaged labels Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant