Re: [SQLObject] InheritableSQLObject: Data corruption when child record create fails

2010-02-08 Thread Oleg Broytman
Hi! I applied the patch with an additional test - that the connection is not a transaction and is in autocommit mode. A transaction or non-autocommit connection must be rolled back after a exception but the place for the rollback is application-dependent so I didn't include a rollback in the code.

Re: [SQLObject] InheritableSQLObject: Data corruption when child record create fails

2009-12-07 Thread Oleg Broytman
Hi! On Mon, Dec 07, 2009 at 06:41:54PM +0200, Tom Coetser wrote: > The problem is that when creating a new object based on an > InheritableSQLObject class, and the creation of the child object fails after > a new parent was created, the parent record will remain in the database > without the re

[SQLObject] InheritableSQLObject: Data corruption when child record create fails

2009-12-07 Thread Tom Coetser
Hi all, I am doing some tests with InheritableSQLobject and have run into a problem which I hope to get some feedback on. The problem is that when creating a new object based on an InheritableSQLObject class, and the creation of the child object fails after a new parent was created, the parent