From: Michael Friedrich Date: Thu, 1 Aug 2013 17:43:51 +0000 (+0200) Subject: ido_mysql: Don't put already escaped string into quotes X-Git-Tag: v0.0.3~759 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7e01b2bb4722dd9018074dd7fe59de752b3ac57f;p=icinga2 ido_mysql: Don't put already escaped string into quotes --- diff --git a/components/ido_mysql/mysqldbconnection.cpp b/components/ido_mysql/mysqldbconnection.cpp index a5c84744e..449d8eacc 100644 --- a/components/ido_mysql/mysqldbconnection.cpp +++ b/components/ido_mysql/mysqldbconnection.cpp @@ -399,7 +399,7 @@ void MysqlDbConnection::ExecuteQuery(const DbQuery& query) if (!first) qbuf << " AND "; - qbuf << key << " = '" << value << "'"; + qbuf << key << " = " << value; if (first) first = false;