From 076b6468f5cc83332ebe0aa1a65c42f43756c575 Mon Sep 17 00:00:00 2001 From: drh Date: Fri, 1 Apr 2016 17:54:07 +0000 Subject: [PATCH] Preupdate hook documentation fixes. No changes to code. FossilOrigin-Name: 59814f35d13db1f6379b9ae218b5432bc03c6197 --- manifest | 12 ++++++------ manifest.uuid | 2 +- src/sqlite.h.in | 13 +++++++------ 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/manifest b/manifest index 51885512ec..d573902ae9 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C When\sreading\san\ssqlite_stat1\stable\swith\smissing\sentries\sfor\ssome\sindexes,\nset\sthe\sdefault\sfor\sthe\smissing\sindexes\safter\sall\sother\sindexes\sare\sset\nso\sthat\sthe\sdefault\svalues\sare\smore\sin\sline\swith\sindexes\sthat\sare\sactually\nin\sthe\sstat1\stable. -D 2016-04-01T12:35:22.357 +C Preupdate\shook\sdocumentation\sfixes.\s\sNo\schanges\sto\scode. +D 2016-04-01T17:54:07.826 F Makefile.in e812bb732d7af01baa09f1278bd4f4a2e3a09449 F Makefile.linux-gcc 7bc79876b875010e8c8f9502eb935ca92aa3c434 F Makefile.msc fe57d7e3e74fa383fd01ced796c0ffd966fc094a @@ -375,7 +375,7 @@ F src/resolve.c b8f7174e5f8c33c44ded3a25a973d0bb89228c20 F src/rowset.c 9fe4b3ad7cc00944386bb600233d8f523de07a6e F src/select.c 7849cee0a01952a9c93cd28989daedfa57731143 F src/shell.c cd3f82fdc5c895b817a375b7ab8319cb41f447ce -F src/sqlite.h.in 843a0dfcf8c5e961cfafa62009fed0867b88241e +F src/sqlite.h.in c46a7b85d3f37371cacea8f98ec825f5e52c420c F src/sqlite3.rc 5121c9e10c3964d5755191c80dd1180c122fc3a8 F src/sqlite3ext.h 98f72cbfe00169c39089115427d06ea05fe4b4a2 F src/sqliteInt.h 594bf31a7a0cc788688ca947e562576e23bd7904 @@ -1480,7 +1480,7 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93 F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0 -P 69f4d83210f6425b2c0d699b397ef4fa4422d438 -R 7562b4ce09688850a9cd06c483af68bc +P a62340dc0507e36f6dec05b1fda68d8399ec62ec +R 17cbd88111da841c5ced2fa2ee956e9f U drh -Z f4c65a7a3ea821b7d157bc63d7456b83 +Z dfefbe59c009b860b7f7e89f1f29dda4 diff --git a/manifest.uuid b/manifest.uuid index 0b71e7ae1c..c694118307 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -a62340dc0507e36f6dec05b1fda68d8399ec62ec \ No newline at end of file +59814f35d13db1f6379b9ae218b5432bc03c6197 \ No newline at end of file diff --git a/src/sqlite.h.in b/src/sqlite.h.in index 35de70ff7f..b5f0e7f98e 100644 --- a/src/sqlite.h.in +++ b/src/sqlite.h.in @@ -5187,7 +5187,7 @@ void *sqlite3_rollback_hook(sqlite3*, void(*)(void *), void*); ** ^The sqlite3_update_hook() interface registers a callback function ** with the [database connection] identified by the first argument ** to be invoked whenever a row is updated, inserted or deleted in -** a rowid table. +** a [rowid table]. ** ^Any callback set by a previous call to this function ** for the same database connection is overridden. ** @@ -7917,13 +7917,13 @@ int sqlite3_db_cacheflush(sqlite3*); /* ** CAPI3REF: The pre-update hook. -** EXPERIMENTAL ** ** ^These interfaces are only available if SQLite is compiled using the -** [SQLITE_ENABLE_UPDATE_HOOK] compile-time option. +** [SQLITE_ENABLE_PREUPDATE_HOOK] compile-time option. ** ** ^The [sqlite3_preupdate_hook()] interface registers a callback function -** that is invoked prior to each [INSERT], [UPDATE], and [DELETE] operation. +** that is invoked prior to each [INSERT], [UPDATE], and [DELETE] operation +** on a [rowid table]. ** ^At most one preupdate hook may be registered at a time on a single ** [database connection]; each call to [sqlite3_preupdate_hook()] overrides ** the previous setting. @@ -7932,8 +7932,9 @@ int sqlite3_db_cacheflush(sqlite3*); ** ^The third parameter to [sqlite3_preupdate_hook()] is passed through as ** the first parameter to callbacks. ** -** ^The preupdate hook only fires for changes to real tables; the preupdate -** hook is not invoked for changes to virtual tables. +** ^The preupdate hook only fires for changes to [rowid tables]; the preupdate +** hook is not invoked for changes to [virtual tables] or [WITHOUT ROWID] +** tables. ** ** ^The second parameter to the preupdate callback is a pointer to ** the [database connection] that registered the preupdate hook.