diff options
author | dan <dan@noemail.net> | 2014-10-28 20:49:59 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2014-10-28 20:49:59 +0000 |
commit | aa55563d7eed0ba2e6ab0afd5625b00e30931b1d (patch) | |
tree | a0d5084e7ecc85b4bc6a9dcf11c894a285f39504 /src | |
parent | 4f41b7dec5a99cc72148cf6d0dd66b890cf82619 (diff) | |
download | sqlite-aa55563d7eed0ba2e6ab0afd5625b00e30931b1d.tar.gz sqlite-aa55563d7eed0ba2e6ab0afd5625b00e30931b1d.zip |
Add new test file e_totalchanges.test, containing tests of the sqlite3_total_changes() interface.
FossilOrigin-Name: f84af4adcc34d7a4c72027bf5b038a1a45a4c307
Diffstat (limited to 'src')
-rw-r--r-- | src/sqlite.h.in | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/src/sqlite.h.in b/src/sqlite.h.in index 20835794e..b4081f2a0 100644 --- a/src/sqlite.h.in +++ b/src/sqlite.h.in @@ -1926,20 +1926,17 @@ int sqlite3_changes(sqlite3*); /* ** CAPI3REF: Total Number Of Rows Modified ** -** ^This function returns the number of row changes caused by [INSERT], -** [UPDATE] or [DELETE] statements since the [database connection] was opened. -** ^(The count returned by sqlite3_total_changes() includes all changes -** from all [CREATE TRIGGER | trigger] contexts and changes made by -** [foreign key actions]. However, -** the count does not include changes used to implement [REPLACE] constraints, -** rollbacks or [DROP TABLE] commands. The -** count does not include rows of views that fire an [INSTEAD OF trigger], -** though if the INSTEAD OF trigger makes changes of its own, those changes -** are counted.)^ -** ^The sqlite3_total_changes() function counts the changes as soon as -** the statement that makes them is completed (when the statement handle -** is passed to [sqlite3_reset()] or [sqlite3_finalize()]). -** +** ^This function returns the total number of rows inserted, modified or +** deleted by all [INSERT], [UPDATE] or [DELETE] statements completed +** since the database connection was opened, including those executed as +** part of trigger programs. ^Executing any other type of SQL statement +** does not affect the value returned by sqlite3_total_changes(). +** +** ^Changes made as part of [foreign key actions] are included in the +** count, but those made as part of REPLACE constraint resolution are +** not. ^Changes to a view that are intercepted by INSTEAD OF triggers +** are not counted. +** ** See also the [sqlite3_changes()] interface, the ** [count_changes pragma], and the [total_changes() SQL function]. ** |