[PyQt] SQLite database not closing
lcordier at gmail.com
Wed Mar 7 12:19:46 GMT 2012
Hi, I am currently having problems with closing a database (SQLite)
The database and driver's lastError is:
"unable to close due to unfinalised statements Error closing database"
I am not sure what this really means or what I should be doing to get the
connection to close properly.
I am using sqlite3 3.6.22 and pyqt 4.7.2.
My test code is here:
There database is something simple like,
CREATE TABLE IF NOT EXISTS tempEarnings
EmployerId TEXT NOT NULL,
EmployeeId TEXT NOT NULL,
PRIMARY KEY(EmployerId, EmployeeId)
Insert a few rows to work with.
Hope this helps.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the PyQt