summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite/cursor.h
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2011-05-09 10:24:09 (GMT)
committerPetri Lehtinen <petri@digip.org>2012-02-06 20:04:18 (GMT)
commit4a84f58143ca01db181f28df06ac922fbf73a1d7 (patch)
tree24c9d7be2e2ca971d41ae7f7bd23ebf9d57e380f /Modules/_sqlite/cursor.h
parent1f30575713a153d5b3c558de6068bdfe1dd1a3f4 (diff)
downloadcpython-4a84f58143ca01db181f28df06ac922fbf73a1d7.zip
cpython-4a84f58143ca01db181f28df06ac922fbf73a1d7.tar.gz
cpython-4a84f58143ca01db181f28df06ac922fbf73a1d7.tar.bz2
Issue #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 5d8b5c1..118ba38 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 */