Skip to content

Commit

Permalink
Update executor/insert_common.go
Browse files Browse the repository at this point in the history
Co-authored-by: you06 <[email protected]>
  • Loading branch information
zyguan and you06 authored Mar 14, 2023
1 parent d487490 commit b4cda16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion executor/insert_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -1244,7 +1244,7 @@ func (e *InsertValues) batchCheckAndInsert(ctx context.Context, rows [][]types.D
// If duplicate keys were found in BatchGet, mark row = nil.
e.ctx.GetSessionVars().StmtCtx.AppendWarning(uk.dupErr)
if txnCtx := e.ctx.GetSessionVars().TxnCtx; txnCtx.IsPessimistic {
// lock duplicated unique key on insert-ingore
// lock duplicated unique key on insert-ignore
txnCtx.AddUnchangedRowKey(uk.newKey)
}
skip = true
Expand Down

0 comments on commit b4cda16

Please sign in to comment.