Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Remember to close temporary connection in PostgreSqlSchemaManager::dropD... #217

Merged
merged 1 commit into from

3 participants

@kimhemsoe
Collaborator

...atabase() and PostgreSqlSchemaManager::createDatabase()

Fixes my problem with not to be able to run all tests.

@kimhemsoe kimhemsoe Remember to close temporary connection in PostgreSqlSchemaManager::dr…
…opDatabase() and PostgreSqlSchemaManager::createDatabase()
d058938
@doctrinebot
Collaborator

Hello,

thank you for positing this Pull Request. I have automatically opened an issue on our Jira Bug Tracker for you with the details of this Pull-Request. See the Link:

http://doctrine-project.org/jira/browse/DBAL-365

@beberlei beberlei merged commit d26680a into doctrine:master

1 check passed

Details default The Travis build passed
@kimhemsoe kimhemsoe deleted the kimhemsoe:pg_close_temp_connections branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 11, 2012
  1. @kimhemsoe

    Remember to close temporary connection in PostgreSqlSchemaManager::dr…

    kimhemsoe authored
    …opDatabase() and PostgreSqlSchemaManager::createDatabase()
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php
View
4 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;
}
Something went wrong with that request. Please try again.