mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
bpo-40956: Convert _sqlite3.Connection to Argument Clinic, part 2 (GH-23838)
This commit is contained in:
parent
b02ad2458b
commit
3ccef1ca47
4 changed files with 297 additions and 77 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue