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

insert on duplicate with global index report key not exists #53711

Closed
Defined2014 opened this issue May 31, 2024 · 0 comments · Fixed by #53717
Closed

insert on duplicate with global index report key not exists #53711

Defined2014 opened this issue May 31, 2024 · 0 comments · Fixed by #53717
Assignees
Labels
component/tablepartition This issue is related to Table Partition of TiDB. feature/developing the related feature is in development fuzz/randomtest severity/major type/bug The issue is confirmed as a bug.

Comments

@Defined2014
Copy link
Contributor

Defined2014 commented May 31, 2024

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create table t(a int, b int, unique index idx(a)) partition by hash(b) partitions 5;

Run SQL below

insert into t values (1, 1), (1, 2) on duplicate key update a=1, b=3;

Or

insert into t values (1, 1);
insert into t values (1, 2) on duplicate key update a=1, b=3;

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

no error

3. What did you see instead (Required)

report ERROR 8021 (HY000): Error: key not exist

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/tablepartition This issue is related to Table Partition of TiDB. feature/developing the related feature is in development fuzz/randomtest severity/major type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant