mirror of
https://github.com/python/cpython.git
synced 2025-08-27 12:16:04 +00:00
bpo-41861: Convert _sqlite3 RowType and StatementType to heap types (GH-22444)
This commit is contained in:
parent
fa7ce08017
commit
9031bd4fa4
9 changed files with 72 additions and 119 deletions
|
@ -352,11 +352,11 @@ PyMODINIT_FUNC PyInit__sqlite3(void)
|
|||
module = PyModule_Create(&_sqlite3module);
|
||||
|
||||
if (!module ||
|
||||
(pysqlite_row_setup_types() < 0) ||
|
||||
(pysqlite_row_setup_types(module) < 0) ||
|
||||
(pysqlite_cursor_setup_types() < 0) ||
|
||||
(pysqlite_connection_setup_types() < 0) ||
|
||||
(pysqlite_cache_setup_types(module) < 0) ||
|
||||
(pysqlite_statement_setup_types() < 0) ||
|
||||
(pysqlite_statement_setup_types(module) < 0) ||
|
||||
(pysqlite_prepare_protocol_setup_types(module) < 0)
|
||||
) {
|
||||
Py_XDECREF(module);
|
||||
|
@ -366,7 +366,7 @@ PyMODINIT_FUNC PyInit__sqlite3(void)
|
|||
ADD_TYPE(module, pysqlite_ConnectionType);
|
||||
ADD_TYPE(module, pysqlite_CursorType);
|
||||
ADD_TYPE(module, *pysqlite_PrepareProtocolType);
|
||||
ADD_TYPE(module, pysqlite_RowType);
|
||||
ADD_TYPE(module, *pysqlite_RowType);
|
||||
|
||||
if (!(dict = PyModule_GetDict(module))) {
|
||||
goto error;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue