[pypy-commit] pypy default: (fijal, arigo around) try to fix statements going away under our feet.
arigo
noreply at buildbot.pypy.org
Thu Apr 4 18:20:55 CEST 2013
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r63010:d6dd0008297b
Date: 2013-04-04 18:22 +0200
http://bitbucket.org/pypy/pypy/changeset/d6dd0008297b/
Log: (fijal, arigo around) try to fix statements going away under our
feet.
diff --git a/lib_pypy/_sqlite3.py b/lib_pypy/_sqlite3.py
--- a/lib_pypy/_sqlite3.py
+++ b/lib_pypy/_sqlite3.py
@@ -388,6 +388,7 @@
if stat._in_use:
stat = Statement(self.connection, sql)
+ self.cache[sql] = stat
stat._row_factory = row_factory
return stat
@@ -855,10 +856,6 @@
self.__initialized = True
- def __del__(self):
- if self.__statement:
- self.__statement._reset()
-
def close(self):
self.__connection._check_thread()
self.__connection._check_closed()
More information about the pypy-commit
mailing list