From 65fd9a77c67e1c2c19be29c2b5091bcd3b888aa7 Mon Sep 17 00:00:00 2001 From: zhaoxingyu Date: Fri, 11 Mar 2016 20:27:01 +0800 Subject: [PATCH] Change bool to int64. --- util/types/datum.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/types/datum.go b/util/types/datum.go index ef7d807848..e9290795c0 100644 --- a/util/types/datum.go +++ b/util/types/datum.go @@ -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]