From 04431a7a15e9905409912b6fae16fce65ff97a19 Mon Sep 17 00:00:00 2001 From: supar Date: Fri, 17 Oct 2014 12:59:24 +0400 Subject: [PATCH] Fix function name fmt.Stprintf -> fmt.Sprintf --- orm/cmd_utils.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/orm/cmd_utils.go b/orm/cmd_utils.go index 3570949e..fbe9f1b2 100644 --- a/orm/cmd_utils.go +++ b/orm/cmd_utils.go @@ -273,13 +273,13 @@ func getColumnDefault(fi *fieldInfo) string { if fi.colDefault { if !fi.initial.Exist() { - v = fmt.Strintf(t, "") + v = fmt.Srintf(t, "") } else { - v = fmt.Strintf(t, fi.initial.String()) + v = fmt.Sprintf(t, fi.initial.String()) } } else { if !fi.null { - v = fmt.Strintf(t, d) + v = fmt.Sprintf(t, d) } }