Procházet zdrojové kódy

ZF-7946: Zend_Db_Adapter_Oracle triggers E_NOTICE without oci extension

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@18414 44c647ce-9c0f-0410-b52a-842ac1e357ba
mikaelkael před 16 roky
rodič
revize
63592a958a
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 3 1
      library/Zend/Db/Adapter/Oracle.php

+ 3 - 1
library/Zend/Db/Adapter/Oracle.php

@@ -81,7 +81,7 @@ class Zend_Db_Adapter_Oracle extends Zend_Db_Adapter_Abstract
     /**
     /**
      * @var integer
      * @var integer
      */
      */
-    protected $_execute_mode = OCI_COMMIT_ON_SUCCESS;
+    protected $_execute_mode = null;
 
 
     /**
     /**
      * Default class name for a DB statement.
      * Default class name for a DB statement.
@@ -119,6 +119,8 @@ class Zend_Db_Adapter_Oracle extends Zend_Db_Adapter_Abstract
             throw new Zend_Db_Adapter_Oracle_Exception('The OCI8 extension is required for this adapter but the extension is not loaded');
             throw new Zend_Db_Adapter_Oracle_Exception('The OCI8 extension is required for this adapter but the extension is not loaded');
         }
         }
 
 
+        $this->_setExecuteMode(OCI_COMMIT_ON_SUCCESS);
+
         $connectionFuncName = ($this->_config['persistent'] == true) ? 'oci_pconnect' : 'oci_connect';
         $connectionFuncName = ($this->_config['persistent'] == true) ? 'oci_pconnect' : 'oci_connect';
 
 
         $this->_connection = @$connectionFuncName(
         $this->_connection = @$connectionFuncName(