From 03e97f49d515e7db36d635cb3cb5e1cf1dab0e9a Mon Sep 17 00:00:00 2001 From: Alejandro Gallardo Escobar Date: Tue, 9 Jun 2015 12:43:48 +0200 Subject: [PATCH] Improvements on the oracle compatibility --- pandora_server/lib/PandoraFMS/ReconServer.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pandora_server/lib/PandoraFMS/ReconServer.pm b/pandora_server/lib/PandoraFMS/ReconServer.pm index 6416a257d0..a2453a8dd1 100644 --- a/pandora_server/lib/PandoraFMS/ReconServer.pm +++ b/pandora_server/lib/PandoraFMS/ReconServer.pm @@ -287,8 +287,7 @@ sub data_consumer ($$) { # Assign the new address to the agent my $agent_addr_id = get_agent_addr_id ($dbh, $addr_id, $agent_id); if ($agent_addr_id <= 0) { - db_do ($dbh, 'INSERT INTO taddress_agent (' . $RDBMS_QUOTE . 'id_a' . $RDBMS_QUOTE . ', ' . - $RDBMS_QUOTE . 'id_agent' . $RDBMS_QUOTE . ') + db_do ($dbh, 'INSERT INTO taddress_agent (id_a, id_agent) VALUES (?, ?)', $addr_id, $agent_id); } @@ -395,8 +394,7 @@ sub get_host_parent { # Create the host my $agent_id = pandora_create_agent ($pa_config, $pa_config->{'servername'}, $host_name, $host_addr, $group, $parent_id, $id_os, '', 300, $dbh); $agent_id = 0 unless defined ($parent_id); - db_do ($dbh, 'INSERT INTO taddress_agent (' . $RDBMS_QUOTE . 'id_a' . $RDBMS_QUOTE . ',' . - $RDBMS_QUOTE . 'id_agent' . $RDBMS_QUOTE . ') + db_do ($dbh, 'INSERT INTO taddress_agent (id_a, id_agent) VALUES (?, ?)', $addr_id, $agent_id); # Move to the next host