Skip to content

Commit

Permalink
simplify database platform retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
deeky666 committed Feb 13, 2014
1 parent a8ca780 commit 61eb1ee
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/Doctrine/DBAL/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,12 +322,10 @@ public function getEventManager()
*/
public function getDatabasePlatform()
{
if (null !== $this->platform) {
return $this->platform;
if (null == $this->platform) {
$this->detectDatabasePlatform();
}

$this->detectDatabasePlatform();

return $this->platform;
}

Expand Down

0 comments on commit 61eb1ee

Please sign in to comment.