aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2025-03-12 11:41:12 +0000
committerstephan <stephan@noemail.net>2025-03-12 11:41:12 +0000
commitff3c451428fb2cbadaa38acea1ef47c20368daf4 (patch)
tree630e85bff0eca4551f6a7946a4a2a39c19c379c7 /src
parent1fc7844d40f9c18b74c6105762b28a94dc6f2083 (diff)
downloadsqlite-ff3c451428fb2cbadaa38acea1ef47c20368daf4.tar.gz
sqlite-ff3c451428fb2cbadaa38acea1ef47c20368daf4.zip
Document that sqlite_update_hook() can unset the current hook by passing a NULL callback, to address [forum:652aef4747|forum post 652aef4747].
FossilOrigin-Name: 2b582c0097e3374beb280dfa6b03e0dacb9911da1bceb0dce0468e6b7291e74f
Diffstat (limited to 'src')
-rw-r--r--src/sqlite.h.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sqlite.h.in b/src/sqlite.h.in
index c53218aa0..71338031c 100644
--- a/src/sqlite.h.in
+++ b/src/sqlite.h.in
@@ -7071,6 +7071,8 @@ int sqlite3_autovacuum_pages(
**
** ^The second argument is a pointer to the function to invoke when a
** row is updated, inserted or deleted in a rowid table.
+** ^The update hook is disabled by invoking sqlite3_update_hook()
+** with a NULL pointer as the second parameter.
** ^The first argument to the callback is a copy of the third argument
** to sqlite3_update_hook().
** ^The second callback argument is one of [SQLITE_INSERT], [SQLITE_DELETE],