-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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 error caused by using duplicate key #28078
Comments
stack trace:
Line 359 in 7b79dd1
|
simplified repro: drop table if exists ccd;
drop table if exists cm1;
create table ccd (s int, b int, p int);
create table cm1 (p int);
insert into ccd (p) select 3 from cm1 on duplicate key update p = cm1.p;
-- ERROR 1105 (HY000): runtime error: slice bounds out of range [3:2] |
Will this bug be fixed in the next small version? |
@aytrack We'd better upgrade the severity of the problem to critical, because it's troublesome to bypass the problem, and it's best to cherry pick all branches. |
As early as a month ago, I mentioned a pr for this bug to fix this problem, but I haven't gotten a reply yet. |
Thank you for your contributation. And you can ask for review by commenting |
Get it, thanks~ |
dup with #30224, fixed already |
Please check whether the issue should be labeled with 'affects-x.y' or 'fixes-x.y.z', and then remove 'needs-more-info' label. |
As this is a blocking issue, raise the severity to critical. |
Please check whether the issue should be labeled with 'affects-x.y' or 'fixes-x.y.z', and then remove 'needs-more-info' label. |
@zyguan |
We can close a issue once all cherry-pick PRs are created. |
Please check whether the issue should be labeled with 'affects-x.y' or 'fixes-x.y.z', and then remove 'needs-more-info' label. |
Hello @Orion7r ! I am doing research CIPS and clearly understand that I need help. In this topic I found that you know CIPS. If you can help me with some question please write me on email vksyuha1311@gmail.com. |
Bug Report
1. Minimal reproduce step (Required)
When I was executing this sql statement, this error appeared, but it was normal in mysql. And, when I removed on duplicate key update, the remaining SQL statements can also be executed normally.
in tidb v5.1.0
in tidb v5.1.0 without duplicate key update
in mysql 5.7.14
2. What did you expect to see? (Required)
I expect to see the same result as mysql 5.7
3. What did you see instead (Required)
ERROR 1105 (HY000): runtime error: slice bounds out of range [26:25]
4. What is your TiDB version? (Required)
v5.1.0
5.Others
The text was updated successfully, but these errors were encountered: