[pysqlite] Cursor close method
"Edzard Pasma" <[email protected]> Mon, 23 Feb 2009 03:15:57 -0800
| Newsgroups | gmane.comp.python.db.pysqlite.user |
|---|---|
| Message-ID | <[email protected]> |
Only recently I discovered that a cursor's close method only resets it and leaves it open for reuse. This seems useful to prevent locks hanging around if not all rows have been fetched. But the recent APSW version no longer works like this and the close method really closes the cursor. This is intuitively right and appears also according the the DB-API2 spec. Is there any chance that pysqlite is going to change like this too? Or would this cause compatibility problems, if anyone knows? Anyway I will no longer rely on the current behavior, and create a new cursor after closing one.