Author: phd
Date: 2006-02-26 09:52:19 -0700 (Sun, 26 Feb 2006)
New Revision: 1629
Modified:
SQLObject/branches/0.7-bugfix/sqlobject/sqlite/sqliteconnection.py
Log:
Fixed a bug with :memory: database.
Modified: SQLObject/branches/0.7-bugfix/sqlobject/sqlite/sqliteconnection.py
===================================================================
--- SQLObject/branches/0.7-bugfix/sqlobject/sqlite/sqliteconnection.py 2006-02-26 16:52:00 UTC (rev 1628)
+++ SQLObject/branches/0.7-bugfix/sqlobject/sqlite/sqliteconnection.py 2006-02-26 16:52:19 UTC (rev 1629)
@@ -95,7 +95,10 @@
# pool connections. Since we are isolating threads here, we
# don't have to worry about locking as much.
if self._memory:
- return self.makeConnection()
+ conn = self.makeConnection()
+ self._connectionNumbers[id(conn)] = self._connectionCount
+ self._connectionCount += 1
+ return conn
threadid = thread.get_ident()
if (self._pool is not None
and self._threadPool.has_key(threadid)):
|