#27966: db.backends.postgresql checks for psycopg2 2.4.5, but actually 2.5 is
required
-------------------------------------+-------------------------------------
               Reporter:  karyon     |          Owner:  nobody
                   Type:  Bug        |         Status:  new
              Component:  Database   |        Version:  1.11
  layer (models, ORM)                |
               Severity:  Normal     |       Keywords:
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 
[https://github.com/django/django/commit/b484f167bed61f4cff215208eddf98a0655239d4
 #diff-aef216ccdc37941bfed98ea3c80f7642R200 this commit ] uses the cursor
 as context manager (line in question is marked), which were added in
 psycopg2 2.5 ([http://initd.org/psycopg/docs/news.html#what-s-new-in-
 psycopg-2-5 release notes]) (see third item)

 but
 
[https://github.com/django/django/blob/master/django/db/backends/postgresql/base.py#L33
 here] django checks only for 2.4.5.

 
[https://github.com/django/django/commit/3adc5f1ee6618a615db07d4a868b366a15c39f82
 this commit here] made 2.4.5 a requirement and documented that in a few
 places.

--
Ticket URL: <https://code.djangoproject.com/ticket/27966>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/049.3319f361306d1715e3ffc417599d46f2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to