Commit 0c7dffa7d9cbbcba887c7caaf68ed34d8bcc9d41
1 parent
403767fe
Exists in
master
提交
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/mysql/dbmysql.go
@@ -75,7 +75,7 @@ func TestClearData(uid int) (int,error) { | @@ -75,7 +75,7 @@ func TestClearData(uid int) (int,error) { | ||
75 | } | 75 | } |
76 | 76 | ||
77 | func DoBackUp(uuid string,info string,task string,ach string) error { | 77 | func DoBackUp(uuid string,info string,task string,ach string) error { |
78 | - cmd := fmt.Sprintf("INSERT into hedaoshi VALUES(%s,%s,%s,%s) ON DUPLICATE KEY UPDATE update info=%s ,task=%s,ach=%s", uuid,info,task,ach,info,task,ach) | 78 | + cmd := fmt.Sprintf("INSERT into hedaoshi VALUES('%s','%s','%s','%s') ON DUPLICATE KEY UPDATE update info='%s' ,task='%s',ach='%s'", uuid,info,task,ach,info,task,ach) |
79 | //cmd := "INSERT into hedaoshi VALUES(" + uuid + "," + info + "," + task + "," + ach + ")" | 79 | //cmd := "INSERT into hedaoshi VALUES(" + uuid + "," + info + "," + task + "," + ach + ")" |
80 | err := ExcuteCmd(cmd) | 80 | err := ExcuteCmd(cmd) |
81 | if err != nil { | 81 | if err != nil { |