diff --git a/src/mysql/dbmysql.go b/src/mysql/dbmysql.go index 21d29be..01d95b6 100644 --- a/src/mysql/dbmysql.go +++ b/src/mysql/dbmysql.go @@ -75,7 +75,7 @@ func TestClearData(uid int) (int,error) { } func DoBackUp(uuid string,info string,task string,ach string) error { - 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) + 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) //cmd := "INSERT into hedaoshi VALUES(" + uuid + "," + info + "," + task + "," + ach + ")" err := ExcuteCmd(cmd) if err != nil { -- libgit2 0.21.0