diff --git a/logdb.go b/logdb.go index 2d72d3d..6cc29eb 100644 --- a/logdb.go +++ b/logdb.go @@ -110,7 +110,7 @@ func (logdb *LogDB) Select(query string, args ...interface{}) *sql.Rows { // ADError 广告错误后更新 func (logdb *LogDB) ADError(uid, error_msg string) { - _, err := logdb.driver.Exec("update "+logdb.DB+" set status = status + 1000, error_msg=? where uid =?;", error_msg, uid) + _, err := logdb.driver.Exec("update ? set status = status + 1000, error_msg=? where uid =?;", logdb.DB, error_msg, uid) if err != nil { log.Println(err) }