forked from pingcap/tidb
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executor: fix a bug of 'insert on duplicate update' statement on part…
…itioned table (pingcap#11204) In this statement: insert into t1 set a=1,b=1 on duplicate key update a=1,b=1 Batch checker find a=1,b=1 is duplicated, then in the "on duplicate update" step, it uses the non-partitioned table to get the old row, which is a bug. getOldRow returns this error: (1105, u'can not be duplicated row, due to old row not found. handle 1 not found')
- Loading branch information
1 parent
26afeda
commit 6cbbcea
Showing
3 changed files
with
22 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters