Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
Signed-off-by: xiongjiwei <[email protected]>
  • Loading branch information
xiongjiwei committed Sep 14, 2022
1 parent 0f5365f commit b6eb75e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions parser/types/field_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ func (ft *FieldType) Equal(other *FieldType) bool {

// PartialEqual checks whether two FieldType objects are equal.
// If unsafe is true and the objects is string type, PartialEqual will ignore flen.
// See https://github.com/pingcap/tidb/issues/35490#issuecomment-1211658886 for more detail.
func (ft *FieldType) PartialEqual(other *FieldType, unsafe bool) bool {
if !unsafe || ft.EvalType() != ETString || other.EvalType() != ETString {
return ft.Equal(other)
Expand Down

0 comments on commit b6eb75e

Please sign in to comment.