Changeset 846 for trunk/pgdb.py


Ignore:
Timestamp:
Feb 9, 2016, 2:20:10 AM (3 years ago)
Author:
cito
Message:

Do not reset cursor attributes when cursor is closed

SQLAlchemy for instance checks the rowcount after the cursor is closed.
You will only get an error if you try to fetch rows from a closed cursor.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pgdb.py

    r844 r846  
    853853        """Close the cursor object."""
    854854        self._src.close()
    855         self._description = None
    856         self.rowcount = -1
    857         self.lastrowid = None
    858855
    859856    def execute(self, operation, parameters=None):
Note: See TracChangeset for help on using the changeset viewer.