diff options
author | Erlend Egeberg Aasland <erlend.aasland@innova.no> | 2020-09-29 00:05:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-29 00:05:04 +0200 |
commit | cb6db8b6ae47dccc1aa97830d0f05d29f31e0cbc (patch) | |
tree | e0a7552c5ccf9a124e72f8681095e8de961e27be /Modules/_sqlite/statement.c | |
parent | d332e7b8164c3c9c885b9e631f33d9517b628b75 (diff) | |
download | cpython-cb6db8b6ae47dccc1aa97830d0f05d29f31e0cbc.tar.gz cpython-cb6db8b6ae47dccc1aa97830d0f05d29f31e0cbc.zip |
bpo-41861: Convert _sqlite3 PrepareProtocolType to heap type (GH-22428)
Diffstat (limited to 'Modules/_sqlite/statement.c')
-rw-r--r-- | Modules/_sqlite/statement.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_sqlite/statement.c b/Modules/_sqlite/statement.c index 02e47a02b71..0458e1171eb 100644 --- a/Modules/_sqlite/statement.c +++ b/Modules/_sqlite/statement.c @@ -255,7 +255,7 @@ void pysqlite_statement_bind_parameters(pysqlite_Statement* self, PyObject* para if (!_need_adapt(current_param)) { adapted = current_param; } else { - adapted = pysqlite_microprotocols_adapt(current_param, (PyObject*)&pysqlite_PrepareProtocolType, current_param); + adapted = pysqlite_microprotocols_adapt(current_param, (PyObject*)pysqlite_PrepareProtocolType, current_param); Py_DECREF(current_param); if (!adapted) { return; @@ -306,7 +306,7 @@ void pysqlite_statement_bind_parameters(pysqlite_Statement* self, PyObject* para if (!_need_adapt(current_param)) { adapted = current_param; } else { - adapted = pysqlite_microprotocols_adapt(current_param, (PyObject*)&pysqlite_PrepareProtocolType, current_param); + adapted = pysqlite_microprotocols_adapt(current_param, (PyObject*)pysqlite_PrepareProtocolType, current_param); Py_DECREF(current_param); if (!adapted) { return; |