Skip to content

Commit

Permalink
Merge pull request #217 from kimhemsoe/pg_close_temp_connections
Browse files Browse the repository at this point in the history
Remember to close temporary connection in PostgreSqlSchemaManager::dropD...
  • Loading branch information
beberlei committed Oct 12, 2012
2 parents 443af38 + d058938 commit d26680a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php
Expand Up @@ -134,6 +134,8 @@ public function dropDatabase($database)

parent::dropDatabase($database);

$this->_conn->close();

$this->_platform = $tmpPlatform;
$this->_conn = $tmpConn;
}
Expand All @@ -150,6 +152,8 @@ public function createDatabase($database)

parent::createDatabase($database);

$this->_conn->close();

$this->_platform = $tmpPlatform;
$this->_conn = $tmpConn;
}
Expand Down

0 comments on commit d26680a

Please sign in to comment.