On my system for example, the error message is localized so I'm finally
getting a message `Got an error creating the test database: la base de
données « test_testgis1 » existe déjà` even when I provide `--keepdb`.
--
Ticket URL: <https://code.djangoproject.com/ticket/28116>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* cc: felixxm (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/28116#comment:1>
* owner: nobody => felixxm
* status: new => assigned
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/28116#comment:2>
Comment (by Claude Paroz):
What about just trying to check if the database exists when `keepdb` is
True?
--
Ticket URL: <https://code.djangoproject.com/ticket/28116#comment:3>
Comment (by felixxm):
I found a way to check the PostgreSQL error code.
--
Ticket URL: <https://code.djangoproject.com/ticket/28116#comment:4>
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/8396 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/28116#comment:5>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/28116#comment:6>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"e776dd2db677d58dcb50aea20d3bb191537df25b" e776dd2d]:
{{{
#!CommitTicketReference repository=""
revision="e776dd2db677d58dcb50aea20d3bb191537df25b"
Fixed #28116 -- Used error code filtering in PostgreSQL test database
creation.
Thanks Claude Paroz and Tim Graham for reviews.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/28116#comment:7>