diff options
| author | alex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-02-27 17:21:44 +0000 |
|---|---|---|
| committer | alex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-02-27 17:21:44 +0000 |
| commit | c65fbc0f2204a889e72c3182bb5ff06ec89305a4 (patch) | |
| tree | 00087233a0c3a48004efc0ee3c09d96a301030cf /frontends/php/include/db.inc.php | |
| parent | d7a5d92bb3b43ce3783504834e6a9248634078d9 (diff) | |
| download | zabbix-c65fbc0f2204a889e72c3182bb5ff06ec89305a4.tar.gz zabbix-c65fbc0f2204a889e72c3182bb5ff06ec89305a4.tar.xz zabbix-c65fbc0f2204a889e72c3182bb5ff06ec89305a4.zip | |
Minor improvements.
git-svn-id: svn://svn.zabbix.com/trunk@3845 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/db.inc.php')
| -rw-r--r-- | frontends/php/include/db.inc.php | 4 |
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; } ?> |
