mirror of https://github.com/Icinga/icinga2.git
parent
ea04f25e92
commit
c4893ad1a0
|
@ -560,6 +560,9 @@ void IdoMysqlConnection::InternalExecuteQuery(const DbQuery& query, DbQueryType
|
|||
BOOST_FOREACH(const Dictionary::Pair& kv, query.Fields) {
|
||||
Value value;
|
||||
|
||||
if (kv.second.IsEmpty())
|
||||
continue;
|
||||
|
||||
if (!FieldToEscapedString(kv.first, kv.second, &value))
|
||||
return;
|
||||
|
||||
|
|
|
@ -564,6 +564,9 @@ void IdoPgsqlConnection::InternalExecuteQuery(const DbQuery& query, DbQueryType
|
|||
Value value;
|
||||
bool first = true;
|
||||
BOOST_FOREACH(const Dictionary::Pair& kv, query.Fields) {
|
||||
if (kv.second.IsEmpty())
|
||||
continue;
|
||||
|
||||
if (!FieldToEscapedString(kv.first, kv.second, &value))
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue