bpo-40956: Convert _sqlite3.Connection to Argument Clinic, part 2 (GH-23838)

This commit is contained in:
Erlend Egeberg Aasland 2020-12-27 09:32:18 +01:00 committed by GitHub
parent b02ad2458b
commit 3ccef1ca47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 297 additions and 77 deletions

View file

@ -628,6 +628,7 @@ PyObject* pysqlite_cursor_executemany(pysqlite_Cursor* self, PyObject* args)
static PyObject *
pysqlite_cursor_executescript(pysqlite_Cursor* self, PyObject* args)
{
_Py_IDENTIFIER(commit);
PyObject* script_obj;
const char* script_cstr;
sqlite3_stmt* statement;
@ -655,7 +656,7 @@ pysqlite_cursor_executescript(pysqlite_Cursor* self, PyObject* args)
}
/* commit first */
result = pysqlite_connection_commit(self->connection, NULL);
result = _PyObject_CallMethodIdNoArgs((PyObject *)self->connection, &PyId_commit);
if (!result) {
goto error;
}