Opened 3 years ago

Closed 3 years ago

Last modified 2 years 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 by Daniele Varrazzo, 3 years ago

Has patch: set

comment:3 by Mariusz Felisiak, 3 years ago

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 by GitHub <noreply@…>, 3 years ago

In 837ffcfa:

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

comment:5 by GitHub <noreply@…>, 2 years ago

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