summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-07 07:29:36 -0800
committerChanho Park <chanho61.park@samsung.com>2014-08-19 19:37:01 +0900
commita80470fda56a7751350bf4072664dba730a3d855 (patch)
treea474b2b920bb6091bfad127082fba1d13db0a0bf
parent61c65d0a24df984986752313f4acdb1dbef96a4c (diff)
downloadpython-a80470fda56a7751350bf4072664dba730a3d855.tar.gz
python-a80470fda56a7751350bf4072664dba730a3d855.tar.bz2
python-a80470fda56a7751350bf4072664dba730a3d855.zip
python-2.5.1-sqlite
-rw-r--r--Modules/_sqlite/cursor.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/_sqlite/cursor.c b/Modules/_sqlite/cursor.c
index 3b84484..a0ea38d 100644
--- a/Modules/_sqlite/cursor.c
+++ b/Modules/_sqlite/cursor.c
@@ -835,6 +835,9 @@ PyObject* pysqlite_cursor_executescript(pysqlite_Cursor* self, PyObject* args)
goto error;
}
+ if (! statement)
+ break;
+
/* execute statement, and ignore results of SELECT statements */
rc = SQLITE_ROW;
while (rc == SQLITE_ROW) {