From f5b9713a8e6cecd41b5bb5383d7b66e475a4f0c3 Mon Sep 17 00:00:00 2001 From: ciscoxll Date: Wed, 5 Sep 2018 14:38:31 +0800 Subject: [PATCH] update function comment --- model/model.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/model/model.go b/model/model.go index 9f514e68db7c1..83dff84a0575c 100644 --- a/model/model.go +++ b/model/model.go @@ -94,8 +94,9 @@ func (c *ColumnInfo) IsGenerated() bool { func (c *ColumnInfo) SetDefaultValue(value interface{}) error { c.DefaultValue = value if c.Tp == mysql.TypeBit { - // For mysql.TypeBit type, the default value storage format must be a string, default value is null supported. + // For mysql.TypeBit type, the default value storage format must be a string. // Other value such as int must convert to string format first. + // For mysql.TypeBit type, default value is null is supported. if value == nil { return nil }