Commit 486379ad authored by Gabriel Gayan Fanta's avatar Gabriel Gayan Fanta Committed by Benjamin Eberlei

Updated OCI8Connection parameter name in order to separate oracle pooling...

Updated OCI8Connection parameter name in order to separate oracle pooling handling with oci8 persistent connections
parent 68364c0d
...@@ -37,13 +37,13 @@ class OCI8Connection implements \Doctrine\DBAL\Driver\Connection ...@@ -37,13 +37,13 @@ class OCI8Connection implements \Doctrine\DBAL\Driver\Connection
* @param string $password * @param string $password
* @param string $db * @param string $db
*/ */
public function __construct($username, $password, $db, $charset = null, $sessionMode = OCI_DEFAULT, $pooled = false) public function __construct($username, $password, $db, $charset = null, $sessionMode = OCI_DEFAULT, $persistent = false)
{ {
if (!defined('OCI_NO_AUTO_COMMIT')) { if (!defined('OCI_NO_AUTO_COMMIT')) {
define('OCI_NO_AUTO_COMMIT', 0); define('OCI_NO_AUTO_COMMIT', 0);
} }
$this->_dbh = $pooled $this->_dbh = $persistent
? @oci_pconnect($username, $password, $db, $charset, $sessionMode) ? @oci_pconnect($username, $password, $db, $charset, $sessionMode)
: @oci_connect($username, $password, $db, $charset, $sessionMode); : @oci_connect($username, $password, $db, $charset, $sessionMode);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment