mirror of
https://github.com/astaxie/beego.git
synced 2024-11-23 03:20: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.colDefault {
|
||||||
if !fi.initial.Exist() {
|
if !fi.initial.Exist() {
|
||||||
v = fmt.Strintf(t, "")
|
v = fmt.Srintf(t, "")
|
||||||
} else {
|
} else {
|
||||||
v = fmt.Strintf(t, fi.initial.String())
|
v = fmt.Sprintf(t, fi.initial.String())
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if !fi.null {
|
if !fi.null {
|
||||||
v = fmt.Strintf(t, d)
|
v = fmt.Sprintf(t, d)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user