Permalink
Browse files

Merge pull request #217 from kimhemsoe/pg_close_temp_connections

Remember to close temporary connection in PostgreSqlSchemaManager::dropD...
  • Loading branch information...
2 parents 443af38 + d058938 commit d26680ac2e69ed7620f14f15cfeb246be62a9ac3 @beberlei beberlei committed Oct 12, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php
@@ -134,6 +134,8 @@ public function dropDatabase($database)
parent::dropDatabase($database);
+ $this->_conn->close();
+
$this->_platform = $tmpPlatform;
$this->_conn = $tmpConn;
}
@@ -150,6 +152,8 @@ public function createDatabase($database)
parent::createDatabase($database);
+ $this->_conn->close();
+
$this->_platform = $tmpPlatform;
$this->_conn = $tmpConn;
}

0 comments on commit d26680a

Please sign in to comment.