Skip to content

Commit 0f47667

Browse files
author
Erlend E. Aasland
committed
Rename _pysqlite_connection_begin to begin_transaction
1 parent 916db29 commit 0f47667

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/_sqlite/cursor.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ static int check_cursor(pysqlite_Cursor* cur)
396396
}
397397

398398
static int
399-
_pysqlite_connection_begin(pysqlite_Connection *self)
399+
begin_transaction(pysqlite_Connection *self)
400400
{
401401
int rc;
402402
sqlite3_stmt* statement;
@@ -540,7 +540,7 @@ _pysqlite_query_execute(pysqlite_Cursor* self, int multiple, PyObject* operation
540540
SELECT is the only exception. See #9924. */
541541
if (self->connection->begin_statement && self->statement->is_dml) {
542542
if (sqlite3_get_autocommit(self->connection->db)) {
543-
if (_pysqlite_connection_begin(self->connection) < 0) {
543+
if (begin_transaction(self->connection) < 0) {
544544
goto error;
545545
}
546546
}

0 commit comments

Comments
 (0)