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 vstinner
Recipients vstinner
Date 2010-01-10.18:42:11
SpamBayes Score 0.001743268
Marked as misclassified No
Message-id <1263148934.81.0.796800587233.issue7670@psf.upfronthosting.co.za>
In-reply-to
Content
Add call to pysqlite_check_connection() on the follow methods:

 * create_function()
 * create_aggregate()
 * set_authorizer()
 * set_progress_handler()
 * __call__()

Eg. fix the following segfault:

   c = Connection("test")
   c.close()
   c.set_authorizer(func)

The patch includes unit tests to test all methods on a closed connection.

sqlite3 already raises an error for some operations on a closed socket (eg. connection.commit()), but not on all operations.
History
Date User Action Args
2010-01-10 18:42:16vstinnersetrecipients: + vstinner
2010-01-10 18:42:14vstinnersetmessageid: <1263148934.81.0.796800587233.issue7670@psf.upfronthosting.co.za>
2010-01-10 18:42:12vstinnerlinkissue7670 messages
2010-01-10 18:42:12vstinnercreate