1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

B #5072: Make HookLog compatible with every DB backend (#241)

This commit is contained in:
Christian González 2020-09-23 16:51:26 +02:00 committed by GitHub
parent 42edaeb838
commit 7bd3185370
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,7 +156,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);