Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ciscoxll committed Sep 4, 2018
1 parent 50a49b2 commit 96c9f8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ 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.
// For mysql.TypeBit type, the default value storage format must be a string, default value is null supported.
// Other value such as int must convert to string format first.
if value == nil {
return nil
Expand Down

0 comments on commit 96c9f8a

Please sign in to comment.