Skip to content

Commit

Permalink
B OpenNebula#5072: Make HookLog compatible with every DB backend (Ope…
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian González authored and atodorov-storpool committed Jan 7, 2021
1 parent 908655b commit db853af
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 db853af

Please sign in to comment.