ab28edaf by supar

Fix comma in the switch, fix wronf function name

1 parent 04431a7a
...@@ -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 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!