Magnus Lycka wrote:
> Steve Horsley wrote:
>> Or, as I found out yesterday, cursor.execute('commit') afterwards.
> 
> The correct way to do it is to close the cursor object, and
> then do "db.commit()". Don't rely on a cursor object to work
> across transaction boundries!
> 
> See e.g. www.thinkware.se/epc2004db/epc04_mly_db.pdf and
> http://www.thinkware.se/epc2004db/dbapitest.py

Good reference, thank you.

Steve
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to