[icinga-checkins] icinga.org: icinga-web/master: * Applied schema changes in oracle db ( varchar -> clob)

git at icinga.org git at icinga.org
Thu Nov 10 16:46:23 CET 2011


Module: icinga-web
Branch: master
Commit: 1f532ccde74a038945b33b62929bf4e54e5c8c85
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=1f532ccde74a038945b33b62929bf4e54e5c8c85

Author: Jannis Moßhammer <jannis.mosshammer at netways.de>
Date:   Thu Nov 10 16:45:27 2011 +0100

* Applied schema changes in oracle db (varchar -> clob)

---

 .../Doctrine/Adapter/Statement/IcingaOracle.php    |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib/doctrine/lib/Doctrine/Adapter/Statement/IcingaOracle.php b/lib/doctrine/lib/Doctrine/Adapter/Statement/IcingaOracle.php
index ec4b99b..1b7d2e3 100644
--- a/lib/doctrine/lib/Doctrine/Adapter/Statement/IcingaOracle.php
+++ b/lib/doctrine/lib/Doctrine/Adapter/Statement/IcingaOracle.php
@@ -100,6 +100,8 @@ class Doctrine_Adapter_Statement_IcingaOracle implements Doctrine_Adapter_Statem
         // dirty icinga specific fixes  
         $query = preg_replace("/notification_timeperiod_object_id/", "notif_timeperiod_object_id",$query);
         $query = preg_replace("/([^ ]*long_output)/i", "TO_CHAR($1)",$query);
+        $query = preg_replace("/([^ ]*perfdata)/i", "TO_CHAR($1)",$query);
+        $query = preg_replace("/([^ ]*logenry_data)/i", "TO_CHAR($1)",$query);
         
         if(substr_count($query,"(") != substr_count($query,")"))  
             $query .= ")";





More information about the icinga-checkins mailing list