aboutsummaryrefslogtreecommitdiff
path: root/ext/session/sqlite3session.c
Commit message (Collapse)AuthorAge
* Fix a typo in a printf() format string the sessions module.dan2023-04-26
| | | FossilOrigin-Name: 14d1c4a828660bc137dcea1bb4cc439e1ed3872867a0dab486f6a639ef3bcc45
* Allow the sessions module to be configured to capture changes from tables ↵dan2023-04-24
| | | | | with no explicit PRIMARY KEY. FossilOrigin-Name: 8a612f0860126c0c8473b1e65fcabb9a8821d8bf09fdf3f6018acfc99df9af71
* Add the SQLITE_CHANGESETAPPLY_IGNORENOOP flag, which may be passed to ↵dan2023-03-08
| | | | | sqlite3changeset_apply_v2() to have it ignore changes that would be no-ops if applied to the database (e.g. deleting a row that has already been deleted), instead of considering them conflicts. FossilOrigin-Name: cb023fe28560ce0f8c2fd48042553fcdb9db81eba9552be75165de0d46a2645c
* Fix lots of harmless, nuisance compiler warnings, mostly unused parameterdrh2022-12-23
| | | | | warnings in extensions. FossilOrigin-Name: c14bbe1606c1450b709970f922b94a641dfc8f9bd09126501d7dc4db99ea4772
* Prevent the sessions rebaser from generating changesets containing UPDATE ↵dan2022-12-13
| | | | | records for which non-PK fields are present in the old.* but not the new.* record. Also update the changeset iterator to work around such changesets. FossilOrigin-Name: f9cd23dffba06b1982c0a5e5362dba53eba768120a2daa985b4f649d3fea1427
* Fixes for harmless static-analyzer warnings. This also makes the code easierdrh2021-10-05
| | | | | for humans to understand. FossilOrigin-Name: 36177a62feeb4fa93ab6e3c6f4dbe1ddcf63bb02f93284abab979da0261b218e
* Fix harmless static analyzer warnings in sessions, rtree, fts3 and fts5.drh2021-10-04
| | | | | | Add the -DSQLITE_OMIT_AUXILIARY_SAFETY_CHECKS compile-time option to cause ALWAYS() and NEVER() macros to be omitted from the build. FossilOrigin-Name: 1c67f957fc77e37ce8f0d447c41ca975e8e79a35d332739c24a633649b5b0387
* Update an allocation routine in the sessions module to allow it to allocate ↵dan2021-05-25
| | | | | the maximum size permitted by sqlite3_realloc64(). FossilOrigin-Name: 0b45e821911e4a852edd6d9e9cfe5f9de33337edf76fb12b79adaf11a4b83e8a
* Add the sqlite3session_object_config() API. Current used to enable/disable ↵dan2021-04-22
| | | | | collecting data for sqlite3session_changeset_size(). FossilOrigin-Name: 4d5fd2151e024d11289b6c4fbce2996d8d07b2b5a1c953ef895c237e79d3aa55
* Add the experimental sqlite3session_changeset_size() API.dan2021-04-21
| | | FossilOrigin-Name: b5564a6fd54875db1de884fdc0e5eeabcd6aa5595ad03a8a60843503e830a2d8
* Update sqlite3changeset_apply_v2() so that it handles no-op UPDATE changes ↵dan2021-02-20
| | | | | (UPDATE changes that modify no columns). This fixes a regression introduced by [e4ccfac09b]. Also modify sqlite3rebaser_rebase() so that it does not output changesets containing such UPDATEs. FossilOrigin-Name: 0288a8013e00594e716a5fb0d9f684dcfeb03e877650630e2736565fa6261290
* Modify the sessions extension to use more efficient SQL when applying a ↵dan2021-02-02
| | | | | changeset or patchset. FossilOrigin-Name: e4ccfac09b6fe8cc3aec29d10f4e4c83097964f29882343db52ed91f6f0dde1c
* Add the sqlite3session_memory_used() API to the sessions module. For ↵dan2020-12-23
| | | | | querying the amount of heap memory currently being used by a session object. FossilOrigin-Name: 823f75c2e448b649cbe9e174be21524ae3f580beedced65701ad49a2dcc5ee19
* Fix harmless USAN warnings from gcc9.drh2020-08-11
| | | FossilOrigin-Name: 72c4c69fea13f5e24df25645e6941ce3ff896f0a3c73cd63329f819cc907ab40
* Fix a problem with retrying constraint failures within ↵dan2020-06-17
| | | | | sqlite3changeset_apply() calls with the SQLITE_CHANGESET_INVERT flag is set. FossilOrigin-Name: d73e857b833dfc29400049ca7f01ca465f980466e3aa67214c3c5e5573181419
* In sqlite3changeset_apply(), ensure that DELETE and UPDATE changes are ↵dan2020-02-27
| | | | | always executed on main database tables, not similarly named temp tables, as documented. INSERT statements are already being handled correctly. FossilOrigin-Name: f71a13d072398c9fc3556f42d75159cc2d0edc2c42f6c47f64503a7fbbca6e37
* Fix harmless compiler warning seen with MSVC for x64.mistachkin2019-07-29
| | | FossilOrigin-Name: 857b2ba6d05d6f5a8cfdf269bae9005b25e1903ab9dc6b70546979d8c633f03b
* Fix a segfault that could occur in sqlite3session_diff() if NULL were passed ↵dan2019-05-20
| | | | | as the pzErrMsg argument. FossilOrigin-Name: aee73fd28f031a2568ac723de0826be7f1dca6be3b049e4a04fb47af75dcf4bf
* Fix harmless compiler warning in the session extension.mistachkin2019-05-16
| | | FossilOrigin-Name: dff823ca8b5ca4a5611407b0231f89b2e8c981f50e85e361e76d3e4973cea8ca
* Fixes for harmless compiler warnings.drh2019-04-13
| | | FossilOrigin-Name: c28c973ad6debd63f13e5d4d3da036f680baaec9d863eda039f2747db9f1cfd5
* Fix typos in the comments of the sessions extension, one of which affectsdrh2019-03-29
| | | | | the generated documentation. No code changes. FossilOrigin-Name: 040d5d515bcb37bea05e0d156dbaf066c68052ac574f1b0b2cb118d473a353e0
* Use 64-bit math to compute the sizes of memory allocations in extensions.drh2019-01-08
| | | FossilOrigin-Name: ca67f2ec0e294384c397db438605df1b47aae5f348a8de94f97286997625d169
* Fix a harmless compiler warning in Sessions.drh2018-12-14
| | | FossilOrigin-Name: fc9791ea987352e3e1322fbb7f833c23b402432af8249f9d397c6f7456788637
* Update comments in sqlite3session.c to describe the format of "rebase blobs",dan2018-10-30
| | | | | as well as changesets and patchsets. FossilOrigin-Name: bf93f7b56b1d15682988daf3f1c293caf755433defdecd52ba8782fc40e92bd7
* In the sessions module, avoid collecting rebase data if the user has notdan2018-10-29
| | | | | requested it. FossilOrigin-Name: de72a773dd3ad58a7f2233e1fc06bf60deb8892a2719ea8e9b42e7d592c1279f
* Add the sqlite3session_config() interface. For configuring global parametersdan2018-10-26
| | | | | belonging to the sessions module. FossilOrigin-Name: 1e69f3ff057b0be27a9e79842de2485f8299799f309e89bfa7597dd688e0975b
* Add the sqlite3changeset_start_v2() - a new version of _start() that accepts ↵dan2018-10-20
| | | | | a flags parameter - and a streaming equivalent to the sessions module. Also add the SQLITE_CHANGESETSTART_INVERT flag, used with start_v2() to invert a changeset while iterating through it. FossilOrigin-Name: cbedcb9aaefdfe00453efbdf0eac6c15e1f53bbe8fff2e7d534a5adf23be04f5
* Take steps to avoid a potential integer overflow in sessionBufferGrow().dan2018-10-18
| | | FossilOrigin-Name: f7affa2e708d1b4c7c47157bcb18e9f79611ca45a93ebc88de6dc96f84a677e7
* Add the SQLITE_CHANGESETAPPLY_INVERT flag to sessions. For inverting and ↵dan2018-10-18
| | | | | applying a changeset in a single step. FossilOrigin-Name: d4b6406e7f5ba06ac73ab9fdef57232b2459e0af12420ed946ebed6aef46f0b1
* Have sqlite3changegroup_output_strm() call its output function more regularly.dan2018-09-28
| | | FossilOrigin-Name: 8467c31aa0bf24e597f680748460a99f425c49f5ab741c3574c339aa56857146
* Add a "flags" parameter to experimental API sqlite3changeset_apply_v2(). Alsodan2018-04-09
| | | | | add the SQLITE_CHANGESETAPPLY_NOSAVEPOINT flag. FossilOrigin-Name: 3d29631fa7270b18f51de8cfe1285959e42ad9a673d5d2d5c016126f5f1b31a8
* Fix a problem in the sessions module causing sqlite3session_apply_strm() todan2018-04-06
| | | | | | allocate enough memory for the entire input buffer - which defeats the point of a streaming interface. FossilOrigin-Name: 7594e60935b0b5dcf764476dccdf9b403303818a0419a30bc2c16d58e44f6d04
* Fix harmless compiler warning seen with MSVC.mistachkin2018-03-24
| | | FossilOrigin-Name: e9508ab1f86ac70a3ca5622ce44141bc05186b199bf32fb8739aef36b95aa05c
* Fix minor problems with passing NULL pointers to memcmp() and memcpy() found ↵dan2018-03-23
| | | | | by -fsanitize=undefined. FossilOrigin-Name: 0b06ce6d8e7cff5cd5d467a94522dfef5593d7c26663ce03c2c2b663a2641551
* Remove some unused code from sqlite3rebaser_rebase().dan2018-03-22
| | | FossilOrigin-Name: 07cc955eab0e993a75be82d58e17ca53c8abbcaf851983d235049599c19e582f
* Fix another problem with rebasing updates against multiple remote changes.dan2018-03-22
| | | FossilOrigin-Name: c8e7b5a061a3f2fbd9072530177b80f917b39ab5d7cd6acb0a221ab33e78a5cd
* Add tests to ensure that patchsets are handled correctly by the session rebasedan2018-03-22
| | | | | APIs. FossilOrigin-Name: 0e45baaec01947f6cbf47d5d5922a4cabe7d27181c04c0a08259c952fd023947
* Remove some unused code from the sessions module.dan2018-03-22
| | | FossilOrigin-Name: a09518ab63a1ef1b7f56b9f9b16269fd83920469d4c4e179b1f68b35df4e0c4b
* Fix some documentation and other issues with the code on this branch.dan2018-03-21
| | | FossilOrigin-Name: a9ec68627a4533ca6aa7cc1b73f864db615a80e86eda9e33660f22d269a1ba1e
* Fix rebasing of UPDATE changes against a set of remote changesets that featuredan2018-03-21
| | | | | both OMIT and REPLACE conflict resolution on different fields of the same row. FossilOrigin-Name: d8bc3fdb6ba165ca8d7cab857ede8e7e6e2fac24ad59580c5e1db1a4942d295c
* Add further tests and documentation for the sessions rebase feature.dan2018-03-20
| | | FossilOrigin-Name: 7475a363ebb272ae23c0796fe7587714a156dc6a3a4a57ed948ed6f69d3c1218
* Fix a problem with handling rebasing UPDATE changes for REPLACE conflictdan2018-03-16
| | | | | resolution. FossilOrigin-Name: f7bf71f1d47044e3cbc74018294b8af5ad52c2bb84954e99bbd4e9b8c36fc077
* Add simple tests for the sessions module rebase API.dan2018-03-15
| | | FossilOrigin-Name: cf0d1abb44cf170d747e9c11f49ec03a29f00ab4821c613ca1e05b883a568211
* Add largely untested APIs for rebasing changesets.dan2018-03-14
| | | FossilOrigin-Name: 39915b683b3f8d3bf872af1dede96bf2818b488a8638a1d248395023fc4bd0ef
* Add sqlite3_changeset_apply_v2() and apply_v2_strm() to the sessions module.dan2018-03-13
| | | FossilOrigin-Name: 445bfe977d9f3a891e08ef33237862ed047fe83e134ef3ed8b47ee0f5abd8cd6
* Fix another crash in the sessions module triggered by malformed input.dan2018-03-05
| | | FossilOrigin-Name: 7e70c9b86af557e86152748ddf1da467e62817b35df1da0d7d3b67941b198897
* Fix further crashes in sqlite3changeset_apply() caused by corrupt changesetdan2018-03-01
| | | | | blobs. FossilOrigin-Name: 2c01c72e357296d761493aac47329f15d87afcada2b39606fc018af0e0011bb5
* Fix some crashes in the sqlite3changeset_apply() function that could be causeddan2018-03-01
| | | | | by corrupt changeset blobs. FossilOrigin-Name: 745a9a7fef0f28a57ea3f44899058993f6ecdedda52c81a09a4a9ce09c9004d6
* Simplify one of the compiler warning fixes from the previous check-in.mistachkin2018-01-23
| | | FossilOrigin-Name: 012d7d49c571207087bbe24af05d639627b96df526bfcb2098a3e975b74d865d
* Fix harmless compiler warnings seen with MSVC.mistachkin2018-01-23
| | | FossilOrigin-Name: 76a11a80e94d1e9c9645e6e348948f3fd508266d4569c85d80a3879862d0a819