summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/db.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/include/db.inc.php')
-rw-r--r--frontends/php/include/db.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/php/include/db.inc.php b/frontends/php/include/db.inc.php
index d0fc8018..db627bec 100644
--- a/frontends/php/include/db.inc.php
+++ b/frontends/php/include/db.inc.php
@@ -486,7 +486,7 @@ if(isset($DB_TYPE) && $DB_TYPE == "ORACLE") {
$row=DBfetch(DBselect("select max($field) as id from $table where ".DBid2nodeid($field)." in (".$ZBX_CURNODEID.")"));
if(!$row || is_null($row["id"]))
{
- DBexecute("insert into ids (nodeid,table_name,field_name,nextid) values ($ZBX_CURNODEID,'$table','$field',1)");
+ DBexecute("insert into ids (nodeid,table_name,field_name,nextid) values ($ZBX_CURNODEID,'$table','$field',".bcadd(bcmul($ZBX_CURNODEID,"100000000000000"),1).")");
}
else
{
@@ -518,6 +518,6 @@ if(isset($DB_TYPE) && $DB_TYPE == "ORACLE") {
}
while(false == $found);
- return bcadd(bcmul($ZBX_CURNODEID,"100000000000000"),$ret2);
+ return $ret2;
}
?>