Fix comma in the switch, fix wronf function name
Showing
1 changed file
with
2 additions
and
2 deletions
| ... | @@ -266,14 +266,14 @@ func getColumnDefault(fi *fieldInfo) string { | ... | @@ -266,14 +266,14 @@ func getColumnDefault(fi *fieldInfo) string { |
| 266 | 266 | ||
| 267 | case TypeBooleanField, TypeBitField, TypeSmallIntegerField, TypeIntegerField, | 267 | case TypeBooleanField, TypeBitField, TypeSmallIntegerField, TypeIntegerField, |
| 268 | TypeBigIntegerField, TypePositiveBitField, TypePositiveSmallIntegerField, | 268 | TypeBigIntegerField, TypePositiveBitField, TypePositiveSmallIntegerField, |
| 269 | TypePositiveIntegerField, TypePositiveBigIntegerField, TypeFloatField: | 269 | TypePositiveIntegerField, TypePositiveBigIntegerField, TypeFloatField, |
| 270 | TypeDecimalField: | 270 | TypeDecimalField: |
| 271 | d = "0" | 271 | d = "0" |
| 272 | } | 272 | } |
| 273 | 273 | ||
| 274 | if fi.colDefault { | 274 | if fi.colDefault { |
| 275 | if !fi.initial.Exist() { | 275 | if !fi.initial.Exist() { |
| 276 | v = fmt.Srintf(t, "") | 276 | v = fmt.Sprintf(t, "") |
| 277 | } else { | 277 | } else { |
| 278 | v = fmt.Sprintf(t, fi.initial.String()) | 278 | v = fmt.Sprintf(t, fi.initial.String()) |
| 279 | } | 279 | } | ... | ... |
-
Please register or sign in to post a comment