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

extra double quotes for result of json_search #25579

Closed
Tracked by #36993
guo-shaoge opened this issue Jun 19, 2021 · 0 comments · Fixed by #37375
Closed
Tracked by #36993

extra double quotes for result of json_search #25579

guo-shaoge opened this issue Jun 19, 2021 · 0 comments · Fixed by #37375
Assignees
Labels
component/json severity/major sig/execution SIG execution type/bug The issue is confirmed as a bug.

Comments

@guo-shaoge
Copy link
Collaborator

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

select json_search('{"one potato": "food"}', "all", "food");

2. What did you expect to see? (Required)

mysql> select json_search('{"one potato": "food"}', "all", "food");
+------------------------------------------------------+
| json_search('{"one potato": "food"}', "all", "food") |
+------------------------------------------------------+
| "$.\"one potato\""                                   |
+------------------------------------------------------+
1 row in set (0.00 sec)

3. What did you see instead (Required)

mysql> select json_search('{"one potato": "food"}', "all", "food");
+------------------------------------------------------+
| json_search('{"one potato": "food"}', "all", "food") |
+------------------------------------------------------+
| "$.one potato"                                       |
+------------------------------------------------------+
1 row in set (0.00 sec)

4. What is your TiDB version? (Required)

master

@guo-shaoge guo-shaoge added the type/bug The issue is confirmed as a bug. label Jun 19, 2021
@bb7133 bb7133 added sig/execution SIG execution and removed sig/sql-infra SIG: SQL Infra labels Aug 18, 2021
@xiongjiwei xiongjiwei assigned xiongjiwei and unassigned bb7133 Aug 9, 2022
@ti-chi-bot ti-chi-bot added may-affects-4.0 This bug maybe affects 4.0.x versions. may-affects-5.0 This bug maybe affects 5.0.x versions. may-affects-5.1 This bug maybe affects 5.1.x versions. may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.0 may-affects-6.1 may-affects-6.2 labels Aug 17, 2022
@xiongjiwei xiongjiwei removed may-affects-4.0 This bug maybe affects 4.0.x versions. may-affects-5.1 This bug maybe affects 5.1.x versions. may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-5.0 This bug maybe affects 5.0.x versions. may-affects-6.0 may-affects-6.1 may-affects-6.2 labels Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/json severity/major sig/execution SIG execution type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants