Opened 14 months ago

Closed 14 months ago

Last modified 9 months ago

#32856 closed New feature (wontfix)

Django 2.2 not compatible with psycopg 2.9

Reported by: Daniele Varrazzo Owned by: nobody
Component: Database layer (models, ORM) Version: 2.2
Severity: Normal Keywords: psycopg2
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Psycopg 2.9 passes a timedelta instead of an int number of minutes to the tzinfo_factory object. Before making this change I looked at the Django source to check some problems and didn't find any in master, but I missed to check previous releases.

The issue has been reported in https://github.com/psycopg/psycopg2/issues/1293

It is not immediate to me how to fix the problem while fixing https://github.com/psycopg/psycopg2/issues/1272, so I will propose a MR to fix the problem in Django.

Change History (5)

comment:2 Changed 14 months ago by Daniele Varrazzo

Has patch: set

comment:3 Changed 14 months ago by Mariusz Felisiak

Component: UncategorizedDatabase layer (models, ORM)
Keywords: psycopg2 added
Resolution: wontfix
Status: newclosed
Type: UncategorizedNew feature

Django 2.2 is in extended support so it doesn't get new features anymore. I've prepared PR with docs clarification.

comment:4 Changed 14 months ago by GitHub <noreply@…>

In 837ffcfa:

[2.2.x] Refs #32856 -- Doc'd that psycopg2 < 2.9 is required.

comment:5 Changed 9 months ago by GitHub <noreply@…>

In 12141e31:

[2.2.x] Refs #32856 -- Clarified that psycopg2 < 2.9 is required.

Follow up to 837ffcfa681d0f65f444d881ee3d69aec23770be.

Note: See TracTickets for help on using tickets.
Back to Top