mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
(cherry picked from commit 7bd3185370d395fc6ba3c26fdb46f591bd17cfea)
This commit is contained in:
parent
2777dc70d3
commit
43edaa94fa
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user