mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 18:10:54 +00:00
Fix comma in the switch, fix wronf function name
This commit is contained in:
parent
04431a7a15
commit
ab28edaf25
@ -266,14 +266,14 @@ func getColumnDefault(fi *fieldInfo) string {
|
||||
|
||||
case TypeBooleanField, TypeBitField, TypeSmallIntegerField, TypeIntegerField,
|
||||
TypeBigIntegerField, TypePositiveBitField, TypePositiveSmallIntegerField,
|
||||
TypePositiveIntegerField, TypePositiveBigIntegerField, TypeFloatField:
|
||||
TypePositiveIntegerField, TypePositiveBigIntegerField, TypeFloatField,
|
||||
TypeDecimalField:
|
||||
d = "0"
|
||||
}
|
||||
|
||||
if fi.colDefault {
|
||||
if !fi.initial.Exist() {
|
||||
v = fmt.Srintf(t, "")
|
||||
v = fmt.Sprintf(t, "")
|
||||
} else {
|
||||
v = fmt.Sprintf(t, fi.initial.String())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user