aboutsummaryrefslogtreecommitdiff
path: root/ext/session/sqlite3session.c
Commit message (Collapse)AuthorAge
* Add new sessions function sqlite3changeset_apply_v3() and its streaming ↵dan8 days
| | | | | equivalent. This allows changesets to be filtered on a per-change basis, not just per-table. FossilOrigin-Name: 10ebd7a119ef1985755ef143a941fbaed1b5ca1c8a71e011c8bbc70e383fd337
* Fix a problem with using streaming iterators with ↵dan2025-05-22
| | | | | sqlite3changegroup_add_change(). FossilOrigin-Name: 3dbde727146d28c316df47c7b5116be7f2476a0a0c893207c2a4ca3ab285cb5e
* Fix a memory leak in sqlite3session_diff().dan2025-04-10
| | | FossilOrigin-Name: a6cbc5db1c4973ea236874bd9c24cd86dc48fbc7a10e424896c0407c7c32ce6a
* Improve the error messages returned by sqlite3session_diff().dan2025-04-10
| | | FossilOrigin-Name: a3217cdb75fd305705856f6504f8816c2b6b0a10907725cb74d025a5c4e369b8
* Have sqlite3session_diff() automatically attach tables to session objects, ↵dan2025-04-08
| | | | | as it has always been documented to do. FossilOrigin-Name: ec1641858ec48d96f5a2ddce4575ebd40a18932d69831fdb4eafc9acf508f216
* Approximately 100 typo corrections spanning the whole tree, submitted via ↵stephan2025-02-27
| | | | | [forum:0db9827f0464bc33|forum post 0db9827f0464bc33] and individually audited and verified. Affects only code comments, innocuous test strings, error message text in tool (not library) code, and configure-level help text. FossilOrigin-Name: f50c21484d3cac73589da0376c423de39ae8b842218105786c5aa3726e4dcaed
* Approximately 50 typo fixes, spanning the whole tree, contributed via ↵stephan2025-02-25
| | | | | [forum:006c8fa165083ac3|forum post 006c8fa165083ac3] and individually checked for correctness. Affects only code comments, docs, and a single line of debug output in a test app. FossilOrigin-Name: af928818a030924060ee0762431dae0f16d53a62f4e1132754d052eb9c621ac2
* Test case for the FTS3 fix in the previous check-in.drh2025-02-03
| | | FossilOrigin-Name: 459d8f695ef868d0ec09920ab2035eebd36a66051f9905e2605f4600623faa47
* Fix bug in sessions handling of FK constraints introduced by [e09a0c02] ↵dan2025-01-29
| | | | | (released in 3.48.0). Bug was preventing a changeset containing FK violations from being applied even when the xConflict(CHANGESET_FOREIGN_KEY) returned OMIT. FossilOrigin-Name: d7c07581203a0a88456588e49e51b40a8341b0e7121809f75be0ee882d91650f
* Fix sessions module handling of tables with generated columns.dan2025-01-28
| | | FossilOrigin-Name: 437fb316389bc3c24c5cdb4d01edfc81e2c2e9f2b399fc2a95b05d279361d8ec
* Fix a problem in the sessions extension allowing changesets containing ↵dan2025-01-04
| | | | | foreign key violations to be committed under some circumstances. FossilOrigin-Name: e09a0c022903d88d5d6de34b2527565ef60c6bb049f2fb42f037e1520abf0f93
* Fix a couple of problems with the sessions streaming interfaces.dan2024-09-23
| | | FossilOrigin-Name: 9a1fc8d36b5b262f9d17a4743b4b9bb54510cf257d2d9778ebc42d5224856b1e
* Remove a stray newline.mistachkin2024-09-19
| | | FossilOrigin-Name: 77f587dc3bbc784e8884c1b56b53fa90bbd76f4bd121bd572ab529a2b9796e57
* Fix the preupdate hook so that it works when the "old.*" row has a column ↵dan2024-09-18
|\ | | | | | | | | with a non-NULL default value that was added by ALTER TABLE ADD COLUMN after the current record was created. FossilOrigin-Name: 6a8c687904e92f00c1a5f768947545d2920ab9025bf8649adb0ea8053f5aec4e
| * Fix the preupdate hook so that it works when the "old.*" row has a column ↵dan2024-09-18
|/ | | | | with a non-NULL default value that was added by ALTER TABLE ADD COLUMN after the current record was created. FossilOrigin-Name: 00a398cf900179aa5a8aab09fe4a671d99e7a31583282848ef39390f2ef246eb
* Add tests for sqlite3changegroup_add_change().dan2024-05-06
| | | FossilOrigin-Name: 9d67bedc20c3a59e5488f0eaea6a6611940a9cb63f7cf5e687b061cb5d510943
* Add new sessions API sqlite3changegroup_add_change().dan2024-05-04
| | | FossilOrigin-Name: 73647db1ddfdaf40cbf18f1e47c10b4a906489f6d34d7667f0f2ff532f1eb37c
* Fix a comment in sessions. No functional changes.drh2024-01-11
| | | | | [forum:/forumpost/8c20dc935b|Forum post 8c20dc935b]. FossilOrigin-Name: b0eb6d3628c1f70399a22d9fd3b79a796bc343adfeba50515440db609565961a
* Cure a harmless MSVC warning. (no other changes)larrybr2023-10-25
| | | FossilOrigin-Name: 02234ef85ed9349ddf6225f67b7e941b0b68cbd2e58c9d7d84a8324393349853
* Fix various harmless scan-build warnings.drh2023-10-24
| | | FossilOrigin-Name: 54be9af4469d7e31ee852f67e5aa32996557c10de654a60103fd165d2fedf311
* Fix a problem with SQLITE_CHANGESETAPPLY_FKNOACTION and the ↵dan2023-10-21
| | | | | foreign-key-trigger-cache. FossilOrigin-Name: 95304ec6c9654b4366dc58ae263270cb42861cb5017174936f816922b5eb61e6
* Add the SQLITE_CHANGESETAPPLY_FKNOACTION flag to sqlite3session.h, for ↵dan2023-10-20
| | | | | passing to sqlite3changeset_apply_v2() to cause all foreign key constraints to behave as if they were declared NO ACTION. FossilOrigin-Name: fc9f82ea084159eaf3dd1757b96d17d1201b00c4e06455a7dcd8067172b25f28
* Fix a problem with sqlite3changegroup_schema() and patchsets.dan2023-10-07
| | | FossilOrigin-Name: c4ab4200dc2538e1132d87d70fd309b26b0da8a918fede1cb09b567ea40ec889
* Fix a problem with the changes on this branch and tables that use an ↵dan2023-10-07
| | | | | implicit primary key. FossilOrigin-Name: 1f9d10235ff32e72074be695049567135b02e681068ce117b66adc14a6214449
* Add missing source code comments and fix other issues with the new code on ↵dan2023-10-06
| | | | | this branch. FossilOrigin-Name: df39fbe9ab87937beb77af353cd55602290b185e222e0a92a3ebf9a9a0b9e2e7
* Add tests for the sqlite3changegroup_schema() API.dan2023-10-06
| | | FossilOrigin-Name: 5dab481c101b1523b1cfde92678cbc654ea26d946bf29da372d71c1f89cbaf46
* Add the sqlite3changegroup_schema() API. To allow changegroups to handle ↵dan2023-10-05
| | | | | differences in schema created by ALTER TABLE ADD COLUMN. FossilOrigin-Name: 309deee2dd8dd07623fce79f6bb62d5279d140dd0be3b34bc42af20b0507726b
* Allow a session object to generate a changeset, even if columns were added ↵dan2023-10-04
| | | | | to one of the tables using ALTER TABLE ADD COLUMN while the changeset was being collected. FossilOrigin-Name: a3f435eccf3a2aa11cb7420e94af5efcdfa04e9c169c5aaf61fa5cdcb165ceef
* Fix a buffer overread in the sessions extension that could occur when ↵dan2023-09-07
| | | | | processing a corrupt changeset. FossilOrigin-Name: 0e4e7a05c4204b47a324d67e18e76d2a98e26b2723d19d5c655ec9fd2e41f4b7
* Fix a harmless "set-but-not-used" compiler warning in sqlite3session.c.dan2023-07-25
| | | FossilOrigin-Name: 54b3c43fdfdaca6b129a5f0ee93c34eb001663775d33c087066650f5e164d1c1
* Fix a problem with the sqlite3changeset_size() API and rowid tables.dan2023-05-02
| | | FossilOrigin-Name: 92ade220dcf5c1b76a5db605b1467a01051271957cd26f790755904fd82772eb
* Fix harmless compiler warnings.drh2023-05-01
| | | FossilOrigin-Name: 0a926994691ccb02ea4f0ba3c2e8f728871ae67d24c705fbc0f7af81f38d5f47
* 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