Skip to content

Commit 891ebce

Browse files
author
Erlend E. Aasland
committed
Defer error checking till post sqlite3_finalize()
Any errors will propagate.
1 parent 86d1ca0 commit 891ebce

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Modules/_sqlite/cursor.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -411,12 +411,8 @@ begin_transaction(pysqlite_Connection *self)
411411
goto error;
412412
}
413413

414-
rc = pysqlite_step(statement, self);
415-
if (rc != SQLITE_DONE) {
416-
_pysqlite_seterror(self->db);
417-
}
418-
419414
Py_BEGIN_ALLOW_THREADS
415+
sqlite3_step(statement);
420416
rc = sqlite3_finalize(statement);
421417
Py_END_ALLOW_THREADS
422418

0 commit comments

Comments
 (0)