mirror of
https://github.com/astaxie/beego.git
synced 2024-11-26 12:11:28 +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,
|
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())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user