summaryrefslogtreecommitdiff
path: root/Modules/_sqlite/cursor.h
diff options
context:
space:
mode:
authorGerhard Haering <gh@ghaering.de>2011-05-09 12:24:09 +0200
committerGerhard Haering <gh@ghaering.de>2011-05-09 12:24:09 +0200
commit936d518dc8fb8fb094de1391d5a0703287db694e (patch)
tree6ff3f3c2c7ca891b3b66e80494cfb463e04d811b /Modules/_sqlite/cursor.h
parent83b8c0be93799b907b22d1db62695da57514496a (diff)
downloadcpython-git-936d518dc8fb8fb094de1391d5a0703287db694e.tar.gz
#10811: Fix recursive usage of cursors. Instead of crashing, raise a ProgrammingError now.
Diffstat (limited to 'Modules/_sqlite/cursor.h')
-rw-r--r--Modules/_sqlite/cursor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_sqlite/cursor.h b/Modules/_sqlite/cursor.h
index 5d8b5c160d..118ba388a4 100644
--- a/Modules/_sqlite/cursor.h
+++ b/Modules/_sqlite/cursor.h
@@ -42,6 +42,7 @@ typedef struct
pysqlite_Statement* statement;
int closed;
int reset;
+ int locked;
int initialized;
/* the next row to be returned, NULL if no next row available */