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) } }