Commit 68364c0d authored by Gabriel Gayan's avatar Gabriel Gayan Committed by Benjamin Eberlei

added small style suggestion

parent 3bf071d8
...@@ -43,11 +43,9 @@ class OCI8Connection implements \Doctrine\DBAL\Driver\Connection ...@@ -43,11 +43,9 @@ class OCI8Connection implements \Doctrine\DBAL\Driver\Connection
define('OCI_NO_AUTO_COMMIT', 0); define('OCI_NO_AUTO_COMMIT', 0);
} }
if ($pooled) { $this->_dbh = $pooled
$this->_dbh = @oci_pconnect($username, $password, $db, $charset, $sessionMode); ? @oci_pconnect($username, $password, $db, $charset, $sessionMode)
} else { : @oci_connect($username, $password, $db, $charset, $sessionMode);
$this->_dbh = @oci_connect($username, $password, $db, $charset, $sessionMode);
}
if ( ! $this->_dbh) { if ( ! $this->_dbh) {
throw OCI8Exception::fromErrorInfo(oci_error()); throw OCI8Exception::fromErrorInfo(oci_error());
......
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