From ab28edaf258e4cf100cba5f114a4573ac80e6cb1 Mon Sep 17 00:00:00 2001 From: supar Date: Fri, 17 Oct 2014 13:02:18 +0400 Subject: [PATCH] Fix comma in the switch, fix wronf function name --- orm/cmd_utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/orm/cmd_utils.go b/orm/cmd_utils.go index fbe9f1b2..cabd957c 100644 --- a/orm/cmd_utils.go +++ b/orm/cmd_utils.go @@ -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()) }