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

Fix code so that the deprecated sqlite3_trace() and sqlite3_profile()

interfaces are not called when SQLITE_OMIT_DEPRECATED is used.

FossilOrigin-Name: 1c5baae3c545096a29a093f7d4387771f1db507c
This commit is contained in:
drh
2016-07-25 00:05:56 +00:00
parent 4b363a5130
commit 087ec072ef
5 changed files with 14 additions and 11 deletions

View File

@@ -1845,6 +1845,7 @@ int sqlite3_trace_v2(
return SQLITE_OK;
}
#ifndef SQLITE_OMIT_DEPRECATED
/*
** Register a profile function. The pArg from the previously registered
** profile function is returned.
@@ -1873,6 +1874,7 @@ void *sqlite3_profile(
sqlite3_mutex_leave(db->mutex);
return pOld;
}
#endif /* SQLITE_OMIT_DEPRECATED */
#endif /* SQLITE_OMIT_TRACE */
/*