1
0
mirror of synced 2024-12-13 06:46:03 +03:00

[2.0] Small cleanups

This commit is contained in:
romanb 2009-05-30 11:34:38 +00:00
parent 8de151d8ea
commit d13e94abf7

View File

@ -273,17 +273,17 @@ class PostgreSqlSchemaManager extends AbstractSchemaManager
*
* @param string $database The name of the database to drop.
* @return boolean $result
* @override
*/
public function dropDatabase($database = null)
{
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();
}
$sql = $this->_platform->getDropDatabaseSql($database);
//$this->_conn->close();
return $this->_executeSql($sql, 'execute');
}
}