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) {
|
if (type == DbQueryInsert || type == DbQueryUpdate) {
|
||||||
std::ostringstream colbuf, valbuf;
|
std::ostringstream colbuf, valbuf;
|
||||||
|
|
||||||
|
if (type == DbQueryUpdate && query.Fields->GetLength() == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
ObjectLock olock(query.Fields);
|
ObjectLock olock(query.Fields);
|
||||||
|
|
||||||
bool first = true;
|
bool first = true;
|
||||||
|
|
|
@ -684,6 +684,9 @@ void IdoPgsqlConnection::InternalExecuteQuery(const DbQuery& query, DbQueryType
|
||||||
if (type == DbQueryInsert || type == DbQueryUpdate) {
|
if (type == DbQueryInsert || type == DbQueryUpdate) {
|
||||||
std::ostringstream colbuf, valbuf;
|
std::ostringstream colbuf, valbuf;
|
||||||
|
|
||||||
|
if (type == DbQueryUpdate && query.Fields->GetLength() == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
ObjectLock olock(query.Fields);
|
ObjectLock olock(query.Fields);
|
||||||
|
|
||||||
Value value;
|
Value value;
|
||||||
|
|
Loading…
Reference in New Issue