This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ghaering
Recipients ghaering, lakshmipathi
Date 2009-12-29.11:27:47
SpamBayes Score 0.0006082297
Marked as misclassified No
Message-id <1262086068.96.0.532527943283.issue7572@psf.upfronthosting.co.za>
In-reply-to
Content
You confuse two things here: cursors and connections.

Indeed closing a connection without calling commit() on it will do an
implicit rollback, i. e. any changes on the database will not be persisted.

Closing cursors, however does nothing except invalidating the cursor
object for further usage. Cursors are basically only used for executing
SQL and looping over resultsets. You can reuse them or you can close
them and open new ones. But they have no relationship whatsoever with
transactions.

I hope this clears things up. I'm closing the issue now.
History
Date User Action Args
2009-12-29 11:27:49ghaeringsetrecipients: + ghaering, lakshmipathi
2009-12-29 11:27:48ghaeringsetmessageid: <1262086068.96.0.532527943283.issue7572@psf.upfronthosting.co.za>
2009-12-29 11:27:47ghaeringlinkissue7572 messages
2009-12-29 11:27:47ghaeringcreate