diff --git a/types/datum.go b/types/datum.go index 2cf482f565d9c..7118531652c40 100644 --- a/types/datum.go +++ b/types/datum.go @@ -1218,8 +1218,7 @@ func (d *Datum) convertToMysqlBit(sc *stmtctx.StatementContext, target *FieldTyp case KindInt64: // if input kind is int64 (signed), when trans to bit, we need to treat it as unsigned d.k = KindUint64 - uintDatum, err1 := d.convertToUint(sc, target) - uintValue, err = uintDatum.GetUint64(), err1 + fallthrough default: uintDatum, err1 := d.convertToUint(sc, target) uintValue, err = uintDatum.GetUint64(), err1