mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Improvements on the oracle compatibility
This commit is contained in:
parent
7864e993d4
commit
03e97f49d5
@ -287,8 +287,7 @@ sub data_consumer ($$) {
|
|||||||
# Assign the new address to the agent
|
# Assign the new address to the agent
|
||||||
my $agent_addr_id = get_agent_addr_id ($dbh, $addr_id, $agent_id);
|
my $agent_addr_id = get_agent_addr_id ($dbh, $addr_id, $agent_id);
|
||||||
if ($agent_addr_id <= 0) {
|
if ($agent_addr_id <= 0) {
|
||||||
db_do ($dbh, 'INSERT INTO taddress_agent (' . $RDBMS_QUOTE . 'id_a' . $RDBMS_QUOTE . ', ' .
|
db_do ($dbh, 'INSERT INTO taddress_agent (id_a, id_agent)
|
||||||
$RDBMS_QUOTE . 'id_agent' . $RDBMS_QUOTE . ')
|
|
||||||
VALUES (?, ?)', $addr_id, $agent_id);
|
VALUES (?, ?)', $addr_id, $agent_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -395,8 +394,7 @@ sub get_host_parent {
|
|||||||
# Create the host
|
# 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);
|
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);
|
$agent_id = 0 unless defined ($parent_id);
|
||||||
db_do ($dbh, 'INSERT INTO taddress_agent (' . $RDBMS_QUOTE . 'id_a' . $RDBMS_QUOTE . ',' .
|
db_do ($dbh, 'INSERT INTO taddress_agent (id_a, id_agent)
|
||||||
$RDBMS_QUOTE . 'id_agent' . $RDBMS_QUOTE . ')
|
|
||||||
VALUES (?, ?)', $addr_id, $agent_id);
|
VALUES (?, ?)', $addr_id, $agent_id);
|
||||||
|
|
||||||
# Move to the next host
|
# Move to the next host
|
||||||
|
Loading…
x
Reference in New Issue
Block a user