mirror of https://github.com/Icinga/icinga2.git
parent
4763dea571
commit
5ad0c67485
|
@ -805,6 +805,9 @@ void IdoMysqlConnection::InternalExecuteQuery(const DbQuery& query, DbQueryType
|
|||
if (type == DbQueryInsert || type == DbQueryUpdate) {
|
||||
std::ostringstream colbuf, valbuf;
|
||||
|
||||
if (type == DbQueryUpdate && query.Fields->GetLength() == 0)
|
||||
return;
|
||||
|
||||
ObjectLock olock(query.Fields);
|
||||
|
||||
bool first = true;
|
||||
|
|
|
@ -684,6 +684,9 @@ void IdoPgsqlConnection::InternalExecuteQuery(const DbQuery& query, DbQueryType
|
|||
if (type == DbQueryInsert || type == DbQueryUpdate) {
|
||||
std::ostringstream colbuf, valbuf;
|
||||
|
||||
if (type == DbQueryUpdate && query.Fields->GetLength() == 0)
|
||||
return;
|
||||
|
||||
ObjectLock olock(query.Fields);
|
||||
|
||||
Value value;
|
||||
|
|
Loading…
Reference in New Issue