Re: [SQLObject] SQLObject mass insertion
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Oleg B. <ph...@ph...> - 2010-04-01 09:33:58
|
On Thu, Apr 01, 2010 at 06:18:35AM -0300, Juan Manuel Santos wrote: > 1/Query : CREATE TABLE meta_dir ( > [...] > 1/QueryR : CREATE TABLE meta_dir ( > [...] > > Any idea why debug gets printed twice, but the second time with a capital 'r' > after "Query"? :P > > > Two debugging output are from > > different methods. $ grep -F printDebug sqlobject/dbconnection.py def _executeRetry(self, conn, cursor, query): if self.debug: self.printDebug(conn, query, 'QueryR') return cursor.execute(query) def _query(self, conn, s): if self.debug: self.printDebug(conn, s, 'Query') self._executeRetry(conn, conn.cursor(), s) def _queryAll(self, conn, s): if self.debug: self.printDebug(conn, s, 'QueryAll') [skip] if self.debugOutput: self.printDebug(conn, value, 'QueryAll', 'result') ._query(), ._executeRetry(), etc can be called from different methods in a different order so these extra debugging allows to trace the call stack. Oleg. -- Oleg Broytman http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |