#31233: Improve handling of database connection and cursor resources
-------------------------------------+-------------------------------------
     Reporter:  Jon Dufresne         |                    Owner:  Jon
         Type:                       |  Dufresne
  Cleanup/optimization               |                   Status:  assigned
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Ready for
                                     |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

 In [changeset:"f48f671223a20b161ca819cf7d6298e43b8ba5fe" f48f671]:
 {{{
 #!CommitTicketReference repository=""
 revision="f48f671223a20b161ca819cf7d6298e43b8ba5fe"
 Refs #31233 -- Changed DatabaseWrapper._nodb_connection to _nodb_cursor().

 It is now a method instead of a property and returns a context manager
 that yields a cursor on entry and closes the cursor and connection upon
 exit.
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31233#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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.3dccc5dd24999fd629da878246fc1e42%40djangoproject.com.

Reply via email to