Commit 3dfd7212a71271d45378bfc257f481cd2592c7e3

Authored by 陆恒
1 parent a6f62f33
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 := "INSERT into hedaoshi VALUES('"+uuid +"','" + info + "','" + task +"','"+ ach + "') ON DUPLICATE KEY UPDATE info=" + "'" + info + "', " + "task=" +"'"+ task + "', ach='" + ach +"'" 78 + cmd := "INSERT into hedaoshi VALUES('"+uuid +"','" + info + "','" + task +"','"+ ach + "') ON DUPLICATE KEY UPDATE info=" + "'" + info + "', " + "task=" +"'"+ task + "', achieve='" + 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 {