Jira issue originally created by user russ:
When dropping or creating a postgres database, Doctrine attempts to use the "database name" linked to the connection, however this is impossible when creating a database, and since postgres requires the dbname parameter to be set - it should be set to "postgres".
Previous versions of Doctrine used a temp connection with a temp connection name "postgres" - the attached patch applies a similar logic.
Comment created by @guilhermeblanco:
In r6807 this patch was applied.
Thanks for report and patch!
Issue was closed with resolution "Fixed"
Imported 1 attachments from Jira into https://gist.github.com/651378912d529b15aa43