From 5f3ca025903dad501aeec7a8cc7b21c4aec559fc Mon Sep 17 00:00:00 2001 From: xiongjiwei Date: Thu, 13 Oct 2022 11:58:51 +0800 Subject: [PATCH] add pk id Signed-off-by: xiongjiwei --- store/mockstore/unistore/cophandler/cop_handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/mockstore/unistore/cophandler/cop_handler.go b/store/mockstore/unistore/cophandler/cop_handler.go index 5f375f2bfdc30..2b32c168329bd 100644 --- a/store/mockstore/unistore/cophandler/cop_handler.go +++ b/store/mockstore/unistore/cophandler/cop_handler.go @@ -401,7 +401,7 @@ func newRowDecoder(columnInfos []*tipb.ColumnInfo, fieldTps []*types.FieldType, if primaryCols != nil { pkCols = primaryCols } else { - pkCols = []int64{0} + pkCols = []int64{-1} } } def := func(i int, chk *chunk.Chunk) error {