mirror of https://github.com/go-gorm/gorm.git
Convert auto_increment's value to lower case when checking its value
This commit is contained in:
parent
2940c553eb
commit
c6ce739b2a
|
@ -40,7 +40,7 @@ func (commonDialect) Quote(key string) string {
|
|||
|
||||
func (s *commonDialect) fieldCanAutoIncrement(field *StructField) bool {
|
||||
if value, ok := field.TagSettings["AUTO_INCREMENT"]; ok {
|
||||
return value != "FALSE"
|
||||
return strings.ToLower(value) != "false"
|
||||
}
|
||||
return field.IsPrimaryKey
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue