[pypy-commit] pypy default: Do not call statement.reset() after executing DDL.

dripton noreply at buildbot.pypy.org
Mon Jan 23 01:30:55 CET 2012


Author: David Ripton <dripton at ripton.net>
Branch: 
Changeset: r51680:80014f10414c
Date: 2012-01-22 17:46 -0500
http://bitbucket.org/pypy/pypy/changeset/80014f10414c/

Log:	Do not call statement.reset() after executing DDL.

	Fixes issue996.

diff --git a/lib_pypy/_sqlite3.py b/lib_pypy/_sqlite3.py
--- a/lib_pypy/_sqlite3.py
+++ b/lib_pypy/_sqlite3.py
@@ -772,7 +772,7 @@
             self.statement.item = None
             self.statement.exhausted = True
 
-        if self.statement.kind == DML or self.statement.kind == DDL:
+        if self.statement.kind == DML:
             self.statement.reset()
 
         self.rowcount = -1


More information about the pypy-commit mailing list