Author: Brian Kearns <bdkea...@gmail.com> Branch: Changeset: r62988:96285c0d4fd6 Date: 2013-04-03 16:50 -0400 http://bitbucket.org/pypy/pypy/changeset/96285c0d4fd6/
Log: call reset here instead to match cpython sqlite diff --git a/lib_pypy/_sqlite3.py b/lib_pypy/_sqlite3.py --- a/lib_pypy/_sqlite3.py +++ b/lib_pypy/_sqlite3.py @@ -1266,6 +1266,7 @@ try: item = self._item except AttributeError: + self._reset() raise StopIteration del self._item @@ -1275,8 +1276,6 @@ raise self.__con._get_exception(ret) elif ret == _lib.SQLITE_ROW: self._readahead(cursor) - else: - self._reset() return item _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit