no message
parent
0cf185ca82
commit
3f3df0d034
|
@ -17,3 +17,4 @@ __debug_bin
|
|||
test/pem/ca.pem
|
||||
test/pem/client-cert.pem
|
||||
test/pem/client-key.pem
|
||||
id_rsa_117
|
||||
|
|
|
@ -104,7 +104,7 @@ func UpdateDoc(doc Doc) error {
|
|||
logs.Error(e.Error())
|
||||
return e
|
||||
}
|
||||
sql = fmt.Sprintf(`insert into doc(title,doc_id,content,edit_time) values('%s',%d,'%s','%s');`,
|
||||
sql = fmt.Sprintf(`insert into doc_history(title,doc_id,content,edit_time) values('%s',%d,'%s','%s');`,
|
||||
doc.Title,doc.ID,strings.Replace(doc.Content, "'", "\\'", -1), time.Now().Format("2006-01-02 15:04:05"))
|
||||
_, er := db.GetMysqlClient().Query(sql)
|
||||
if nil != er {
|
||||
|
|
Loading…
Reference in New Issue