Skip to content

Commit 2a2152d

Browse files
author
Erlend E. Aasland
committed
Add explanatory comment about mysterious PyErr_Occurred()
1 parent e4f4679 commit 2a2152d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Modules/_sqlite/connection.c

+2
Original file line numberDiff line numberDiff line change
@@ -1459,6 +1459,8 @@ pysqlite_collation_callback(
14591459
long longval;
14601460
int result = 0;
14611461

1462+
/* This callback may be executed multiple times per sqlite3_step(). Bail if
1463+
* the previous call failed */
14621464
if (PyErr_Occurred()) {
14631465
goto finally;
14641466
}

0 commit comments

Comments
 (0)