mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 11:50:55 +00:00
Fix function name fmt.Stprintf -> fmt.Sprintf
This commit is contained in:
parent
b00c42b3df
commit
04431a7a15
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user