summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite/cursor.h
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-09-11 09:57:15 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-09-11 09:57:15 (GMT)
commitab994ed8b97e1b0dac151ec827c857f5e7277565 (patch)
treed497b41e76a441931ac06430f44332497eaaa083 /Modules/_sqlite/cursor.h
parentbd48d27944453ad83d3ce37b2c867fa0d59a1c15 (diff)
downloadcpython-ab994ed8b97e1b0dac151ec827c857f5e7277565.zip
cpython-ab994ed8b97e1b0dac151ec827c857f5e7277565.tar.gz
cpython-ab994ed8b97e1b0dac151ec827c857f5e7277565.tar.bz2
Issue #10740: sqlite3 no longer implicitly commit an open transaction before DDL statements
This commit contains the following commits from ghaering/pysqlite: * https://github.com/ghaering/pysqlite/commit/f254c534948c41c0ceb8cbabf0d4a2f547754739 * https://github.com/ghaering/pysqlite/commit/796b3afe38cfdac5d7d5ec260826b0a596554631 * https://github.com/ghaering/pysqlite/commit/cae87ee68613697a5f4947b4a0941f59a28da1b6 * https://github.com/ghaering/pysqlite/commit/3567b31bb5e5b226ba006213a9c69dde3f155faf With the following additions: * Fixed a refcount error * Fixed a compiler warning * Made the string comparison a little more robust * Added a whatsnew entry
Diffstat (limited to 'Modules/_sqlite/cursor.h')
-rw-r--r--Modules/_sqlite/cursor.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/Modules/_sqlite/cursor.h b/Modules/_sqlite/cursor.h
index 118ba38..28bbd5f 100644
--- a/Modules/_sqlite/cursor.h
+++ b/Modules/_sqlite/cursor.h
@@ -51,12 +51,6 @@ typedef struct
PyObject* in_weakreflist; /* List of weak references */
} pysqlite_Cursor;
-typedef enum {
- STATEMENT_INVALID, STATEMENT_INSERT, STATEMENT_DELETE,
- STATEMENT_UPDATE, STATEMENT_REPLACE, STATEMENT_SELECT,
- STATEMENT_OTHER
-} pysqlite_StatementKind;
-
extern PyTypeObject pysqlite_CursorType;
PyObject* pysqlite_cursor_execute(pysqlite_Cursor* self, PyObject* args);