aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2024-11-11 21:11:02 +0000
committerdrh <>2024-11-11 21:11:02 +0000
commit7b32f84ebf5cf6ff0515a124abbc028e5890a6bc (patch)
tree47b5a026a1964b75ec443a23e6062b33cff1cfd8 /src
parent0cd2ffffb71ef91c7a3d643f454dc00cf87424d4 (diff)
downloadsqlite-7b32f84ebf5cf6ff0515a124abbc028e5890a6bc.tar.gz
sqlite-7b32f84ebf5cf6ff0515a124abbc028e5890a6bc.zip
Clarify the documentation to make it clear that rows inserted by a
CREATE TABLE AS SELECT statement are not counted by sqlite3_count64(). [forum:/forumpost/1e6cde5648|Forum post 1e6cde5648]. FossilOrigin-Name: 5c5982e3937acdcda43d6c5b46a95b82bc1839c3558a4b9ae9022384e0f13f04
Diffstat (limited to 'src')
-rw-r--r--src/sqlite.h.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sqlite.h.in b/src/sqlite.h.in
index 77d928024..df1493b66 100644
--- a/src/sqlite.h.in
+++ b/src/sqlite.h.in
@@ -2631,10 +2631,14 @@ void sqlite3_set_last_insert_rowid(sqlite3*,sqlite3_int64);
** deleted by the most recently completed INSERT, UPDATE or DELETE
** statement on the database connection specified by the only parameter.
** The two functions are identical except for the type of the return value
-** and that if the number of rows modified by the most recent INSERT, UPDATE
+** and that if the number of rows modified by the most recent INSERT, UPDATE,
** or DELETE is greater than the maximum value supported by type "int", then
** the return value of sqlite3_changes() is undefined. ^Executing any other
** type of SQL statement does not modify the value returned by these functions.
+** For the purposes of this interface, a CREATE TABLE AS SELECT statement
+** does not count as an INSERT, UPDATE or DELETE statement and hence the rows
+** added to the new table by the CREATE TABLE AS SELECT statement are not
+** counted.
**
** ^Only changes made directly by the INSERT, UPDATE or DELETE statement are
** considered - auxiliary changes caused by [CREATE TRIGGER | triggers],