]> granicus.if.org Git - icinga2/commitdiff
Add missing quotes.
authorGunnar Beutner <gunnar.beutner@netways.de>
Mon, 14 Oct 2013 12:11:27 +0000 (14:11 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Mon, 14 Oct 2013 12:11:27 +0000 (14:11 +0200)
components/db_ido_mysql/idomysqlconnection.cpp

index 132e38342a82963123d236c41a607ec3790e2119..332d123286b02891678a9887d0992c5359d6737c 100644 (file)
@@ -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<long>(m_InstanceID)) + ", NOW(), NOW(), 'icinga2 db_ido_mysql', " + Escape(Application::GetVersion())
-                   + ", '" + (reconnect ? "RECONNECT" : "INITIAL") + "', NOW())");
+                   + Convert::ToString(static_cast<long>(m_InstanceID)) + ", NOW(), NOW(), 'icinga2 db_ido_mysql', '" + Escape(Application::GetVersion())
+                   + "', '" + (reconnect ? "RECONNECT" : "INITIAL") + "', NOW())");
 
                /* clear config tables for the initial config dump */
                ClearConfigTables();