Changes between Initial Version and Version 3 of Ticket #29760


Ignore:
Timestamp:
09/17/18 08:26:37 (4 years ago)
Author:
Ali Teoman Unay
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29760

    • Property Version changed from 2.1 to 1.11
    • Property Summary changed from Cursors are closing explicitly in autocommit mode to Cursors are being closed explicitly in autocommit mode
  • Ticket #29760 – Description

    initial v3  
    2525According to [http://initd.org/psycopg/docs/usage.html#server-side-cursors psycopg documentation], server-side cursors should not be closed explicitly if it is in autocommit mode.
    2626
    27 According to [https://docs.djangoproject.com/en/2.1/topics/db/transactions/#autocommit Django documentation], Django sets autocommit mode true in default settings.
     27According to [https://docs.djangoproject.com/en/1.11/topics/db/transactions/#autocommit Django documentation], Django sets autocommit mode true in default settings.
    2828
    2929Of course it is possible to set withhold setting to false. In this case, cursor.close() must be called at the end but otherwise, according to the documentation, it should not be called at all.  So if I am not mistaken there should be a conditional statement before calling cursor.close().
Back to Top