diff --git a/src/hm/HookLog.cc b/src/hm/HookLog.cc index 6fa0e1405a..280e0e563e 100644 --- a/src/hm/HookLog.cc +++ b/src/hm/HookLog.cc @@ -141,7 +141,7 @@ int HookLog::dump_log(std::string &xml_log) int HookLog::drop(SqlDB *db, const int hook_id) { ostringstream oss; - + oss << "DELETE FROM " << table << " WHERE hkid =" << hook_id; return db->exec_wr(oss); @@ -164,7 +164,7 @@ int HookLog::add(int hkid, int hkrc, std::string &xml_result) cb.set_callback(&query_output); - oss << "SELECT coalesce(MAX(exeid), -1), COUNT(*) FROM " << one_db::hook_log_table << " WHERE hkid = " << hkid; + oss << "SELECT coalesce(MAX(exeid), -1), COUNT(*) FROM " << table << " WHERE hkid = " << hkid; int rc = db->exec_rd(oss, &cb);