bpo-44079: Strip superfluous statement cache from sqlite3.Connection (GH-25998)

This commit is contained in:
Erlend Egeberg Aasland 2021-08-19 01:37:53 +02:00 committed by GitHub
parent b2f68b1900
commit 243b6c3b8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 116 deletions

View file

@ -60,12 +60,10 @@ typedef struct
PyObject *statement_cache;
/* Lists of weak references to statements and cursors used within this connection */
PyObject* statements;
PyObject* cursors;
/* Counters for how many statements/cursors were created in the connection. May be
/* Counters for how many cursors were created in the connection. May be
* reset to 0 at certain intervals */
int created_statements;
int created_cursors;
PyObject* row_factory;