Changes between Initial Version and Version 3 of Ticket #29760
- Timestamp:
- 09/17/18 08:26:37 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #29760
-
Property
Version
changed from
2.1
to1.11
-
Property
Summary
changed from
Cursors are closing explicitly in autocommit mode
toCursors are being closed explicitly in autocommit mode
-
Property
Version
changed from
-
Ticket #29760 – Description
initial v3 25 25 According 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. 26 26 27 According to [https://docs.djangoproject.com/en/ 2.1/topics/db/transactions/#autocommit Django documentation], Django sets autocommit mode true in default settings.27 According to [https://docs.djangoproject.com/en/1.11/topics/db/transactions/#autocommit Django documentation], Django sets autocommit mode true in default settings. 28 28 29 29 Of 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().