summaryrefslogtreecommitdiffstats
path: root/frontends/php/history.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-06-02 11:11:36 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-06-02 11:11:36 +0000
commit0b03cb5fe455517a471488d40af2c84f3a0503ae (patch)
tree22164e0985876e5377765c6fe7793ab3d7f829fa /frontends/php/history.php
parentb5edc88502a9833e32be4c3e3c9fd18e2327cce8 (diff)
downloadzabbix-0b03cb5fe455517a471488d40af2c84f3a0503ae.tar.gz
zabbix-0b03cb5fe455517a471488d40af2c84f3a0503ae.tar.xz
zabbix-0b03cb5fe455517a471488d40af2c84f3a0503ae.zip
- fixed text history storing for Oracle (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@2944 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/history.php')
-rw-r--r--frontends/php/history.php14
1 files changed, 10 insertions, 4 deletions
diff --git a/frontends/php/history.php b/frontends/php/history.php
index 0b598c4d..a42ac1b1 100644
--- a/frontends/php/history.php
+++ b/frontends/php/history.php
@@ -345,7 +345,6 @@
S_LOCAL_TIME,S_SOURCE,S_SEVERITY,S_VALUE),"header");
$table->ShowStart(); // to solve memory leak we call 'Show' method by steps
- $table->ShowBody(); // to solve memory leak we call 'Show' method by steps
}
else
{
@@ -464,11 +463,9 @@
if(!isset($_REQUEST["plaintext"]))
{
$table = new CTableInfo();
- $table->ShowStart(); // to solve memory leak we call 'Show' method by steps
-
$table->SetHeader(array(S_TIMESTAMP, S_VALUE));
- $table->ShowBody(); // to show Header
+ $table->ShowStart(); // to solve memory leak we call 'Show' method by steps
}
else
{
@@ -478,6 +475,15 @@
COpt::profiling_start("history");
while($row=DBfetch($result))
{
+
+ if($DB_TYPE == "ORACLE" && $item_type == ITEM_VALUE_TYPE_TEXT)
+ {
+ if(isset($row["value"]))
+ $row["value"] = $row["value"]->load();
+ else
+ $row["value"] = "";
+ }
+
$value = replace_value_by_map($row["value"], $row["valuemapid"]);
$new_row = array(date("Y.M.d H:i:s",$row["clock"]));