Incorrect error message given when role does not have create database privilege
|Reported by:||tylere||Owned by:||jbronn|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
If a PostGIS database role does not have sufficient permissions to create a database, the testing suite returns a misleading message similar to:
"It appears the database, test_database_name, already exists. Type 'yes' to delete it, or 'no' to cancel: "
This occurs because the _create_with_cursor() method in /django/contrib/gis/db/backend/postgis/creation.py assumes that all errors in the method are related to a non-existing test database.
Change History (5)
comment:1 Changed 6 years ago by jacob
- milestone set to 1.1
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted