Skip to content

Commit

Permalink
mockkv: make pk id = -1 if no primary key column is used (#38443)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiongjiwei authored Oct 13, 2022
1 parent a10bb9e commit f45f497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion store/mockstore/unistore/cophandler/cop_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f45f497

Please sign in to comment.