Re: [SQLObject] Bug? Spurious connection to postgresql
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Oleg B. <ph...@ph...> - 2008-12-13 22:25:56
|
On Sat, Dec 13, 2008 at 11:36:55PM +0200, Iwan Vosloo wrote: > What happens is this line (dbconnection.py): > 755 attr = getattr(self._dbConnection, attr) > > is called while self is still the Transaction, for attr > 'server_version'. > > This returns the server_version (bound) method on the connection, and > calls that with self == the connection. Inside there is where the > self.queryOne is called: > > 304 server_version = self.queryOne("SELECT version()")[0] Thank you for the analysis. I have to think about it... Oleg. -- Oleg Broytmann http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |