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

slice bounds out of range for special json path #58896

Closed
YangKeao opened this issue Jan 13, 2025 · 0 comments · Fixed by #58899
Closed

slice bounds out of range for special json path #58896

YangKeao opened this issue Jan 13, 2025 · 0 comments · Fixed by #58899
Labels
component/json severity/minor sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@YangKeao
Copy link
Member

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

select json_extract("{}", "$.\"\\0\\");

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

mysql> select json_extract("{}", "$.\"\\0\\");
ERROR 3143 (42000): Invalid JSON path expression. The error is around character position 6.

3. What did you see instead (Required)

mysql> select json_extract("{}", "$.\"\\0\\");
ERROR 1105 (HY000): runtime error: slice bounds out of range [:7] with length 6

4. What is your TiDB version? (Required)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/json severity/minor sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
1 participant