Change bool to int64.

This commit is contained in:
zhaoxingyu
2016-03-11 20:27:01 +08:00
parent b8547f5734
commit 65fd9a77c6

View File

@ -1031,7 +1031,7 @@ func (d *Datum) ToBool() (int64, error) {
return 1, nil
}
// ToInt64 converts to a bool.
// ToInt64 converts to a int64.
func (d *Datum) ToInt64() (int64, error) {
tp := mysql.TypeLonglong
lowerBound := signedLowerBound[tp]