From ff3c451428fb2cbadaa38acea1ef47c20368daf4 Mon Sep 17 00:00:00 2001 From: stephan Date: Wed, 12 Mar 2025 11:41:12 +0000 Subject: 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 --- src/sqlite.h.in | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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], -- cgit v1.2.3