commit | 936d518dc8fb8fb094de1391d5a0703287db694e | [log] [tgz] |
---|---|---|
author | Gerhard Haering <gh@ghaering.de> | Mon May 09 12:24:09 2011 +0200 |
committer | Gerhard Haering <gh@ghaering.de> | Mon May 09 12:24:09 2011 +0200 |
tree | 6ff3f3c2c7ca891b3b66e80494cfb463e04d811b | |
parent | 83b8c0be93799b907b22d1db62695da57514496a [diff] [blame] |
#10811: Fix recursive usage of cursors. Instead of crashing, raise a ProgrammingError now.
diff --git a/Modules/_sqlite/cursor.h b/Modules/_sqlite/cursor.h index 5d8b5c1..118ba38 100644 --- a/Modules/_sqlite/cursor.h +++ b/Modules/_sqlite/cursor.h
@@ -42,6 +42,7 @@ pysqlite_Statement* statement; int closed; int reset; + int locked; int initialized; /* the next row to be returned, NULL if no next row available */