On Sun, Jan 14, 2007 at 06:26:44PM +0100, Felix Schwarz wrote:
> #--------------------------------------------------------------------------
> if self._pool is not None:
> if conn not in self._pool:
> # @@: We can get duplicate releasing of connections with
> # the __del__ in Iteration (unfortunately, not sure why
> # it happens)
> self._pool.insert(0, conn)
> else:
> conn.close()
> #--------------------------------------------------------------------------
>
> Why is the connection added to the pool if it is not present? Is it because
> database connections are not thread safe and must not be shared between
> multiple
> threads?
I think so.
> How are connections closed then?
DBAPI.close()
Oleg.
--
Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED]
Programmers don't die, they just GOSUB without RETURN.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss