Commit 3d19c6e6 authored by Jan Rosier's avatar Jan Rosier Committed by Steve Müller

Call detectDatabasePlatform only once

parent 61f09cef
......@@ -324,7 +324,7 @@ class Connection implements DriverConnection
*/
public function getDatabasePlatform()
{
if (null == $this->platform) {
if (null === $this->platform) {
$this->detectDatabasePlatform();
}
......@@ -362,10 +362,6 @@ class Connection implements DriverConnection
$this->_conn = $this->_driver->connect($this->_params, $user, $password, $driverOptions);
$this->_isConnected = true;
if (null === $this->platform) {
$this->detectDatabasePlatform();
}
if (false === $this->autoCommit) {
$this->beginTransaction();
}
......
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