Permalink
Browse files

Add parameter checking to dropDatabase function.

  • Loading branch information...
1 parent 4c8020b commit d4166e955d6d36effc7db1acdbe7b195ad366a2e @posulliv committed Aug 13, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/Doctrine/DBAL/Schema/AkibanServerSchemaManager.php
@@ -45,8 +45,12 @@ protected function _getPortableTableForeignKeyDefinition($tableForeignKey)
// TODO
}
- public function dropDatabase($database)
+ public function dropDatabase($database = null)
{
+ if (is_null($database)) {
+ $database = $this->_conn->getDatabase();
+ }
+
$params = $this->_conn->getParams();
$params["dbname"] = "information_schema";
$tmpPlatform = $this->_platform;

0 comments on commit d4166e9

Please sign in to comment.