Skip to content

Commit

Permalink
add logger
Browse files Browse the repository at this point in the history
  • Loading branch information
lichunzhu authored and ti-chi-bot committed Apr 19, 2023
1 parent 3328069 commit 723a159
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions table/column.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,10 @@ func CastValue(ctx sessionctx.Context, val types.Datum, col *model.ColumnInfo, r
if returnErr && err != nil {
return casted, err
}
if err != nil {
logutil.BgLogger().Warn("[debug] ConvertTo FieldType failed", zap.Stringer("FieldType", &col.FieldType),
zap.Stringer("Datum", val), zap.Error(err))
}
if err != nil && types.ErrTruncated.Equal(err) && col.GetType() != mysql.TypeSet && col.GetType() != mysql.TypeEnum {
str, err1 := val.ToString()
if err1 != nil {
Expand Down

0 comments on commit 723a159

Please sign in to comment.