Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add parameter checking to dropDatabase function.

  • Loading branch information...
commit d4166e955d6d36effc7db1acdbe7b195ad366a2e 1 parent 4c8020b
@posulliv authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/Doctrine/DBAL/Schema/AkibanServerSchemaManager.php
View
6 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;
Please sign in to comment.
Something went wrong with that request. Please try again.