From b4cda16c5a01b1a0691ed25980a2b45901547cec Mon Sep 17 00:00:00 2001 From: zyguan Date: Tue, 14 Mar 2023 18:52:08 +0800 Subject: [PATCH] Update executor/insert_common.go Co-authored-by: you06 --- executor/insert_common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/executor/insert_common.go b/executor/insert_common.go index 4af75f886a9b0..7c166c94244aa 100644 --- a/executor/insert_common.go +++ b/executor/insert_common.go @@ -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