Skip to content

Commit

Permalink
update function comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ciscoxll committed Sep 5, 2018
1 parent 96c9f8a commit f5b9713
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion model/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit f5b9713

Please sign in to comment.