Skip to content

Commit

Permalink
B #5072: Make HookLog compatible with every DB backend (#241)
Browse files Browse the repository at this point in the history
(cherry picked from commit 2cc5f13)
  • Loading branch information
Christian González authored and rsmontero committed Sep 24, 2020
1 parent cac865d commit cebd6c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hm/HookLog.cc
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ int HookLog::add(int hkid, int hkrc, std::string &xml_result)

cb.set_callback(&query_output);

oss << "SELECT IFNULL(MAX(exeid), -1), COUNT(*) FROM hook_log" << " WHERE hkid = " << hkid;
oss << "SELECT coalesce(MAX(exeid), -1), COUNT(*) FROM " << one_db::hook_log_table << " WHERE hkid = " << hkid;

int rc = db->exec_rd(oss, &cb);

Expand Down

0 comments on commit cebd6c6

Please sign in to comment.