#35688: Postgresql DatabaseWrapper does not allow to override ensure_timezone()
function in derived classes
-------------------------------------+-------------------------------------
Reporter: Christian | Owner: Sarah
Hardenberg | Boyce
Type: Bug | Status: closed
Component: contrib.postgres | Version: 5.1
Severity: Release blocker | Resolution: fixed
Keywords: DatabaseWrapper | Triage Stage: Ready for
posgresql ensure_timezone | checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Natalia <124304+nessita@…>):
In [changeset:"26c06671d9f9ff679be5e290b0752a45e582ce0c" 26c0667]:
{{{#!CommitTicketReference repository=""
revision="26c06671d9f9ff679be5e290b0752a45e582ce0c"
[5.1.x] Fixed #35688 -- Restored timezone and role setters to be
PostgreSQL DatabaseWrapper methods.
Following the addition of PostgreSQL connection pool support in
Refs #33497, the methods for configuring the database role and timezone
were moved to module-level functions. This change prevented subclasses
of DatabaseWrapper from overriding these methods as needed, for example,
when creating wrappers for other PostgreSQL-based backends.
Thank you Christian Hardenberg for the report and to
Florian Apolloner and Natalia Bidart for the review.
Regression in fad334e1a9b54ea1acb8cce02a25934c5acfe99f.
Co-authored-by: Natalia <[email protected]>
Backport of 7380ac57340653854bc2cfe0ed80298cdac6061d from main.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35688#comment:8>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/010701919b191a18-7bf75c40-78fc-420f-ac09-d310ae3eec18-000000%40eu-central-1.amazonses.com.