Re: Unable to close due to unfinalised statements error msg

Gerhard Häring <[email protected]>
Newsgroups gmane.comp.python.db.pysqlite.user
Message-ID <[email protected]>
jim roush wrote:
> I'm geting the following error message shown below.  The relevant 
> section of code follows that.  Anyone have any ideas? 
> 
> 
> Traceback (most recent call last):
>   File "C:\markets\source\QuantScan\test.py", line 255, in <module>
>     db.close()
> sqlite3.OperationalError: Unable to close due to unfinalised statements
> [...]

Which pysqlite version is this?

You can find out like this:

 >>> from pysqlite2 import dbapi2 as sqlite
 >>> sqlite.version
'2.2.1'


I knew this problem could occur with older versions, but it should not 
occur any more with current versions.

-- Gerhard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.