Commit d13e94ab authored by romanb's avatar romanb

[2.0] Small cleanups

parent 8de151d8
...@@ -273,17 +273,17 @@ class PostgreSqlSchemaManager extends AbstractSchemaManager ...@@ -273,17 +273,17 @@ class PostgreSqlSchemaManager extends AbstractSchemaManager
* *
* @param string $database The name of the database to drop. * @param string $database The name of the database to drop.
* @return boolean $result * @return boolean $result
* @override
*/ */
public function dropDatabase($database = null) public function dropDatabase($database = null)
{ {
if (is_null($database)) { if (is_null($database)) {
//TODO: How to deal with this? We need to connect to another database
// in order to drop this one!
$database = $this->_conn->getDatabase(); $database = $this->_conn->getDatabase();
} }
$sql = $this->_platform->getDropDatabaseSql($database); $sql = $this->_platform->getDropDatabaseSql($database);
//$this->_conn->close();
return $this->_executeSql($sql, 'execute'); return $this->_executeSql($sql, 'execute');
} }
} }
\ No newline at end of file
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