1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Fix the sqlite3_trace_v2() interface so that it goes disabled if either the

callback or mask arguments are zero, in accordance with the documentation.

FossilOrigin-Name: 37e6c54b1afc634844026b3fe874dd2d550c6558
This commit is contained in:
drh
2016-08-25 22:06:37 +00:00
parent 24b6b81cb0
commit fb82820a38
3 changed files with 10 additions and 8 deletions

View File

@@ -1843,6 +1843,8 @@ int sqlite3_trace_v2(
}
#endif
sqlite3_mutex_enter(db->mutex);
if( mTrace==0 ) xTrace = 0;
if( xTrace==0 ) mTrace = 0;
db->mTrace = mTrace;
db->xTrace = xTrace;
db->pTraceArg = pArg;