File python-2.5.1-sqlite.patch of Package python3
Index: Modules/_sqlite/cursor.c
===================================================================
--- Modules/_sqlite/cursor.c.orig
+++ Modules/_sqlite/cursor.c
@@ -827,6 +827,9 @@ PyObject* pysqlite_cursor_executescript(
goto error;
}
+ if (! statement)
+ break;
+
/* execute statement, and ignore results of SELECT statements */
rc = SQLITE_ROW;
while (rc == SQLITE_ROW) {