1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 17:50:58 +00:00

Fix comma in the switch, fix wronf function name

This commit is contained in:
supar 2014-10-17 13:02:18 +04:00
parent 04431a7a15
commit ab28edaf25

View File

@ -266,14 +266,14 @@ func getColumnDefault(fi *fieldInfo) string {
case TypeBooleanField, TypeBitField, TypeSmallIntegerField, TypeIntegerField, case TypeBooleanField, TypeBitField, TypeSmallIntegerField, TypeIntegerField,
TypeBigIntegerField, TypePositiveBitField, TypePositiveSmallIntegerField, TypeBigIntegerField, TypePositiveBitField, TypePositiveSmallIntegerField,
TypePositiveIntegerField, TypePositiveBigIntegerField, TypeFloatField: TypePositiveIntegerField, TypePositiveBigIntegerField, TypeFloatField,
TypeDecimalField: TypeDecimalField:
d = "0" d = "0"
} }
if fi.colDefault { if fi.colDefault {
if !fi.initial.Exist() { if !fi.initial.Exist() {
v = fmt.Srintf(t, "") v = fmt.Sprintf(t, "")
} else { } else {
v = fmt.Sprintf(t, fi.initial.String()) v = fmt.Sprintf(t, fi.initial.String())
} }