M #: fix minor bug (#245)

This commit is contained in:
Christian González authored and GitHub committed 2020-09-24 18:38:06 +02:00
1 parent e099655765
commit 9ddd94e989
1 file changed
+2 -2
+2 -2
View File
@@ -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);