[Opensource] Trasaction problems - cont.

Michael Rimov rimovm at centercomp.com
Sat Jul 27 01:50:46 PDT 2002


At 05:52 PM 7/26/2002 +0000, you wrote:
>I found the problem! When one executes update() on an Object created with 
>a DBConnection the DBObject.update() is called at some point. The problem 
>arises when there are lookup fields. Expresso calls getValidValues. What 
>happens afterwards is that a new connection will be created with the 
>original's object dbname.
>1)Well this is not that great because in a transaction one is supposed to 
>work with the same connection. And this is not the case with expresso.
>2)When I pass a connection either via constructor or via setConnection the 
>dbName should be reset accordingly. It is the connection object that 
>represents the database not the dbname string and the dbname string field 
>should keep track of the localconnection if one is available.

Tzanko,

Thanks for the report.  The fix was easy so CVS now has the changes you 
suggested.

Thanks again for the report!
                                         -Mike




More information about the Opensource mailing list