Re: [SQLObject] SVN Trunk destroySelf from inside Transaction Fix
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Cody P. <co...@hp...> - 2006-03-26 22:19:46
|
Actually I'm not entirely certain bug 1455251 is really a bug, since query() calls runWithConnection. Unless you are actually running simultaneous queries in multiple threads and have somehow disabled connection pooling, you wont see the problem, as only the first query() will create a new connection, all subsequent ones will just acquire it from the pool. (expecting a single connection to be reused across multiple threads is an interesting expectation in and of itself). Please correct me if I'm wrong. The bug I reported and fixed is very easy to reproduce in both multi-threaded and single-threaded instances. I believe the bug came about because Transaction._SO_delete bypasses the "poor mans" acquisition instituted via Transaction.__getattr__ and calls the dbConnection's _SO_delete method directly (and thusly the dbConnection's query() method) -Cody Oleg Broytmann wrote: > On Sun, Mar 26, 2006 at 02:46:40PM -0700, Cody Pisto wrote: > >> http://sourceforge.net/tracker/index.php?func=detail&aid=1458595&group_id=74338&atid=540672 >> > > This is a dup for the bug > http://sourceforge.net/tracker/index.php?func=detail&aid=1455251&group_id=74338&atid=540672 > > >> Fix: >> >> http://sourceforge.net/tracker/index.php?func=detail&aid=1458925&group_id=74338&atid=540674 >> > > I'll look at it... > > Oleg. > |