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