[SQL-CVS] r1628 - SQLObject/trunk/sqlobject/sqlite
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
|
From: <sub...@co...> - 2006-02-26 16:52:23
|
Author: phd
Date: 2006-02-26 09:52:00 -0700 (Sun, 26 Feb 2006)
New Revision: 1628
Modified:
SQLObject/trunk/sqlobject/sqlite/sqliteconnection.py
Log:
Fixed a bug with :memory: database.
Modified: SQLObject/trunk/sqlobject/sqlite/sqliteconnection.py
===================================================================
--- SQLObject/trunk/sqlobject/sqlite/sqliteconnection.py 2006-02-26 15:45:42 UTC (rev 1627)
+++ SQLObject/trunk/sqlobject/sqlite/sqliteconnection.py 2006-02-26 16:52:00 UTC (rev 1628)
@@ -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)):
|