summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/db.inc.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-05-12 07:01:06 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-05-12 07:01:06 +0000
commit06f68476ff0a32ab823885118054595894016f06 (patch)
treeb0f18b6058f40b4daa8aafc0c4e6995372ccaf8d /frontends/php/include/db.inc.php
parentb327677b4e405ccc71f6292fad2ff08abe2f7c99 (diff)
- fixes to zabbix_sender and other changes (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@2823 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/db.inc.php')
-rw-r--r--frontends/php/include/db.inc.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/frontends/php/include/db.inc.php b/frontends/php/include/db.inc.php
index bc84a16d..c6f34cd0 100644
--- a/frontends/php/include/db.inc.php
+++ b/frontends/php/include/db.inc.php
@@ -170,7 +170,7 @@
{
$result[strtolower($k)]=$row[$k];
}
- }
+ }
return $result;
}
return FALSE;
@@ -242,7 +242,13 @@
}
if($DB_TYPE == "ORACLE")
{
- $result=FALSE;
+ $sql="select max($field) from $table";
+ $parse=DBexecute($sql);
+ while(OCIFetch($parse))
+ {
+ $colvalue = OCIResult($parse, 1);
+ return $colvalue;
+ }
}
}