Fix db_ido queries.

Fixes #6007
This commit is contained in:
Gunnar Beutner 2014-04-13 20:22:25 +02:00
parent ea04f25e92
commit c4893ad1a0
2 changed files with 6 additions and 0 deletions

View File

@ -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;

View File

@ -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;