From: Gunnar Beutner Date: Mon, 14 Oct 2013 12:11:27 +0000 (+0200) Subject: Add missing quotes. X-Git-Tag: v0.0.3~139 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=def9b309a5de3444a9d2475b31fd36d4159832cc;p=icinga2 Add missing quotes. --- diff --git a/components/db_ido_mysql/idomysqlconnection.cpp b/components/db_ido_mysql/idomysqlconnection.cpp index 132e38342..332d12328 100644 --- a/components/db_ido_mysql/idomysqlconnection.cpp +++ b/components/db_ido_mysql/idomysqlconnection.cpp @@ -157,8 +157,8 @@ void IdoMysqlConnection::ReconnectTimerHandler(void) /* record connection */ Query("INSERT INTO " + GetTablePrefix() + "conninfo " + "(instance_id, connect_time, last_checkin_time, agent_name, agent_version, connect_type, data_start_time) VALUES (" - + Convert::ToString(static_cast(m_InstanceID)) + ", NOW(), NOW(), 'icinga2 db_ido_mysql', " + Escape(Application::GetVersion()) - + ", '" + (reconnect ? "RECONNECT" : "INITIAL") + "', NOW())"); + + Convert::ToString(static_cast(m_InstanceID)) + ", NOW(), NOW(), 'icinga2 db_ido_mysql', '" + Escape(Application::GetVersion()) + + "', '" + (reconnect ? "RECONNECT" : "INITIAL") + "', NOW())"); /* clear config tables for the initial config dump */ ClearConfigTables();