From f0f386e97b5b072c48d8fbfc05856459d05e835e Mon Sep 17 00:00:00 2001 From: ceshihao Date: Thu, 3 Aug 2017 18:19:35 +0800 Subject: [PATCH] fix null.Int64 when it is signed --- bdb/drivers/mysql.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bdb/drivers/mysql.go b/bdb/drivers/mysql.go index a9d98c8..c2ee423 100644 --- a/bdb/drivers/mysql.go +++ b/bdb/drivers/mysql.go @@ -306,7 +306,7 @@ func (m *MySQLDriver) TranslateColumnType(c bdb.Column) bdb.Column { if unsigned { c.Type = "null.Uint64" } else { - c.Type = "null.Uint64" + c.Type = "null.Int64" } case "float": c.Type = "null.Float32"