Author: David Ripton <drip...@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
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to