Skip to content

Commit

Permalink
Change bool to int64.
Browse files Browse the repository at this point in the history
  • Loading branch information
zxylvlp committed Mar 11, 2016
1 parent b8547f5 commit 65fd9a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/types/datum.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 65fd9a7

Please sign in to comment.