Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Address review: restore trace comment
  • Loading branch information
Erlend E. Aasland committed Dec 18, 2020
commit dc1fd83dd6c55a2e22b4df4f225537e59e2456ec
8 changes: 7 additions & 1 deletion Modules/_sqlite/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,13 @@ pysqlite_connection_set_trace_callback(pysqlite_Connection *self,
}

if (trace_callback == Py_None) {
/* None clears the trace callback previously set */
/*
* None clears the trace callback previously set
*
* Ref.
* - https://sqlite.org/c3ref/c_trace.html
* - https://sqlite.org/c3ref/trace_v2.html
*/
#ifdef HAVE_TRACE_V2
sqlite3_trace_v2(self->db, SQLITE_TRACE_STMT, 0, 0);
#else
Expand Down