aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
| * | | | | | | Add missing SEH_INJECT_FAULT macros.dan2021-08-20
| | | | | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: 27e9bdb3a90a5826f45d32e0378e9afa90a16ac762a75236f38218f41bc45ded
| * | | | | | | Add some assert() statements and fix small issues with code on this branch.dan2021-08-20
| | | | | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: bd9b373b177a71f5eaeb7ce8dd1dc755b34951ee1376c24652418bb329bfcb45
| * | | | | | | Fix a problem on this branch causing checkpoints that do not proceed because ↵dan2021-08-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | they can't get the CHECKPOINT lock to return incorrect output values. FossilOrigin-Name: 5a98820c3d20766813bb4b0da23247ac90f380c07827ff13b61d5b606d8311aa
| * | | | | | | Enable this branch to run both with and without the -DSQLITE_USE_SEH option.drh2021-08-19
| | | | | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: 840e0a14ebc4a85d4ede0223287d4c1e4465e9f20c3c43bfc74775dddec1fa8f
| * | | | | | | If SQLITE_USE_SEH is defined, handle structured-exceptions thrown by MSVC ↵dan2021-08-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | builds if the *-shm file mapping is accessed after it becomes invalid for some reason. FossilOrigin-Name: 5c5fa47076c5da25ca92248df3a4c11b90a0225a07f05d7220fa95d9bbb36f43
* | | | | | | | Up until version 3.42.0, there was a bug in json_valid() such that it woulddrh2023-08-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | return False (0) for a NULL input. That bug is fixed in 3.42.0. This check-in adds a compile-time option -DSQLITE_LEGACY_JSON_VALID that restores the old buggy behavior for applications that depend on it. FossilOrigin-Name: 15c2eadbff8e732cca45d6c3771d1fcea5aab2127e87f2a611b41ccfef4d1a0d
* | | | | | | | New testcase() macro in the tokenizer, to better document its behavior.drh2023-08-10
| |_|_|_|_|/ / |/| | | | | | | | | | | | | FossilOrigin-Name: b2fdac0b151864eb2aa79f0b0ee60f9c6d9f3eb8c7626605eac17a02a8cf59bc
* | | | | | | Minor cleanups in sqlite3Int.h. By reordering some fields in the Parsedrh2023-08-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | object, it packs more tightly and uses less memory and less CPU to initialize. FossilOrigin-Name: aa6de539c09faa320b68c63659e602107145c4263fa680d5b40fe4d7d7ac4534
* | | | | | | Changes so that sqlite3_vtab_nochange() works with "UPDATE ... FROM...". Use ↵dan2023-08-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this to allow UPDATE on a contentless fts5 table if new values are supplied for all indexed columns. FossilOrigin-Name: 16cd2161e312cf97129011fc829079db8f762b822b2f4fabf7ff6742c071302f
* | | | | | | Tiny doc typo fixes from [forum:31eb707250|forum post 31eb707250]. No code ↵stephan2023-08-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | changes. FossilOrigin-Name: 8ede50082e7bcf0226a3b42a590f188b5a139bbf081c9eed7ff8f6f2a6a274a0
* | | | | | | Fix a bug in the jsonLookup() routine used to search JSON. Bug wasdrh2023-08-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | introduced by the recent (unreleased) JSON caching enhancements check-in [a4c1af616e672a0d] merged into trunk at [df099ad713011b67]. FossilOrigin-Name: ba7a66db13b28da0b41f03be825a593608474a5ebda89e12d58d89db709b8f65
* | | | | | | Fix harmless scan-build warnings.drh2023-08-03
| | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: 65a8716d8a1b7c5cffe9cdd25e4cbfa6528fcb146ff0fe67b0ce771b0537473d
* | | | | | | Fix build problems associated with SQLITE_OMIT_WSD and SQLITE_OMIT_TRIGGER.drh2023-08-03
| | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: de031a5ec863b11f0216d1a114740c8cf4572adb034a5d35ff1a5c07d81df800
* | | | | | | Unix builds now assume the presence of nanosleep() in the standard library.drh2023-08-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The -DHAVE_NANOSLEEP=0 compile-time option can be used to build on systems (if any still exist) where this is not the case. FossilOrigin-Name: 779d5dc8797ea246d0397f7e94b1be716b0baa735e8d9f5a6fc4cffd887a7420
* | | | | | | Performance optimization for JSON rendering logic.drh2023-08-02
| | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: ea0b9aecbaca9a8e784fd2bcb50f78cbdcf4c5cfb45a7700bb222e4cc104c644
* | | | | | | Remove an unreachable branch in the ascii-to-floating-point conversion thatdrh2023-08-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | was added by [e989a37ff9d5b52e]. FossilOrigin-Name: c4347e4400e96f932ac12f8f22484a2ebce2a578d1b2181977954c432f117bfd
* | | | | | | Remove a condition from query flattening that is now taken care of bydrh2023-08-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the caller. Factor out the reverse_unordered_selects processing from the main loop of sqlite3WhereBegin() for performance. FossilOrigin-Name: f068f105fb158634321bf6401f0774c81059932d213a18b627ae98bcffc10912
* | | | | | | Simplify the select.c logic that enforces the optimization fence arounddrh2023-08-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a MATERIALIZED common table expression. Do not allow the reverse_unordered_selects setting to affect a fenced CTE that itself has an ORDER BY clause. FossilOrigin-Name: 165b9bda243777ae7fb6f51ee7ad58771c581b82ef9a70268eb9764e9e6eba6f
* | | | | | | Never flatten a CTE that is labeled MATERIALIZED. This is really somethingdrh2023-08-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of a bug fix because the documentation says that a MATERIALIZED CTE is an optimization barrier. FossilOrigin-Name: b7ef9796f548ce43e06673f86bbec68157aae5e4ee8451e1d87ee5f70af1bb27
* | | | | | | When a query is inside an AS MATERIALIZED CTE, do not attempt thedrh2023-08-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | omit-ORDER-BY optimization. If the developer specifies MATERIALIZED, that means he wants the sort to actually happen. FossilOrigin-Name: aa769ee7477171f26a091cadff98aa4f48da7752ade20b405a95c4525456f62e
* | | | | | | Avoid ASAN warnings when converting over-sized long double values into double.drh2023-08-01
| | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: e989a37ff9d5b52e0090d59be077ad2260c8df5d4c2c2d8088b1160de64dffd4
* | | | | | | Remove redundant comparison operator.drh2023-08-01
| | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: 018984329892c243b21adb10aa8efc7f49313ecf80477e6b61dc6365f62c489d
* | | | | | | Restore part of the UPDATE one-pass optimization that was removed bydrh2023-08-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | check-in [2c56b984a0bd3be5]: only disable one-pass if the WHERE clause contains a subquery. Allow subqueries in the SET expressions. Fix for performance problem reported by [forum:/forumpost/8ab195fd44e75ed0|forum post 8ab195fd44e75ed0]. FossilOrigin-Name: 42916af9fc0f379a608a08db894400bd735a28e26ab1ffd604d1fddfbdb3ec0c
* | | | | | | Restrict the new column cache to table-btree, which is the common case anyhow.drh2023-07-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | That way, writes to indexes do not need to clear the column cache. FossilOrigin-Name: 659284ab0e22a4746c1337b3489e7b166d497fb7e5301e24dc115d2b0c4e097d
* | | | | | | The original column-cache implementation from check-in [ab1edcc7fedcf279]drh2023-07-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (merged to trunk at [771fe35074b50b8d]) is unsound. This check-in fixes the issue. Had to give back a little performance, the optimization is still a overall win. FossilOrigin-Name: ec95e970fb737adf0fab3cb4363040b036949e5eb966fc2d030a20f95e2bde60
* | | | | | | Add bit to sqlite3_test_control(SQLITE_TESTCTRL_OPTIMIZATIONS) that willdrh2023-07-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | disable the one-pass optimizating in DELETE and UPDATE. FossilOrigin-Name: 22f6dd5cd32ed9e7b932fdba98aa8652fde999df79f4995d3d8ac1acf430cf53
* | | | | | | Improved debug tracking of the Parse.nQueryLoop value.drh2023-07-31
| | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: 4a8a17498ecaccca5e5aab65d4596cbca9799547f50683237d08c1fa3556f1cf
* | | | | | | Do not try to add MEM_Term to an MEM_Static string either.drh2023-07-29
| | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: 8920dcef1f75f578e3f274ab2b980a83d6ea6b761d99fc48410b26886170597b
* | | | | | | Do not try to apply MEM_Term to a MEM_Ephem strings.drh2023-07-29
| | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: 2a378a66783ce4d749f7e1e7d08d8404a4aa78d47aeeefd6794b6753188438f6
* | | | | | | Simplification to the sqlite3_stmt_explain() implementation.drh2023-07-29
| | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: dd5eb4c7f71c658aff8c2f11ff163c5e79f0ebfd49fd13ca8e28381fe63cc82f
* | | | | | | Enhancements to the new sqlite3_stmt_explain() interface implementation anddrh2023-07-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | documentation. FossilOrigin-Name: dc98ac6b6de27fc096a715e650067154a545709cf1eecd6c2722ab30a91c2d1d
* | | | | | | Fix doc error noted in [forum:/forumpost/11fc7308d5e607f2|the forum] and a ↵larrybr2023-07-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | misspelling. FossilOrigin-Name: 6b79cc7dd07d41da6034386b39c0dff32f80a977db42a9602330ffd15706ab9b
* | | | | | | Do not allow the same JSON parse to be input to both arguments to thedrh2023-07-28
| |_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | json_patch() routine. FossilOrigin-Name: 8e781c6742792b3899ca60efc49c7eaee1df9f6b03d27c254b0e148b82946e19
* | | | | | Add the sqlite3_stmt_explain() API.drh2023-07-28
|\ \ \ \ \ \ | | | | | | | | | | | | | | FossilOrigin-Name: 0443c0ef85f8f6f3efdee68bf59126c9459f08a58458756f8cbeeaf043d43a86
| * \ \ \ \ \ Merge the latest trunk enhancements into the sqlite3_stmt_explain branch.drh2023-07-19
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | FossilOrigin-Name: 06eae046c1a1155f22590b88942db72f01482f2363da9753f8adfdb322679055
| * | | | | | | Enhance the sqlite3_stmt_explain() interface so that avoids unnecessarydrh2023-07-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | reprepare operations. FossilOrigin-Name: 050f773addd605f6690348c98e9000a9a3663bbc26288a71973fd7b40468e8ab
| * | | | | | | Add the experimental sqlite3_stmt_explain(S,E) interface.drh2023-07-15
| | | | | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: 5683743ddf0bb051f2fe5d137cc18407e000e77e9faa9010a22e3134b575638b
* | | | | | | | Mark an unreachable branch as ALWAYS().drh2023-07-28
| | | | | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: 8fd06d1151c521515d9f7181575a04e451b522335135a27248052b067d4005ae
* | | | | | | | Remove some unnecessary and incorrect code that was mistakenly added in thedrh2023-07-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | previous check-in. FossilOrigin-Name: d3f458dcc379dd7648262f52579ec55ba931852065ed278367a0629228d0ed45
* | | | | | | | Switch to using jsonParseCached() for json_patch().drh2023-07-27
| | | | | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: 2ed9c59e6a51037e63485d0a92dae25443116beddfca1ac73d2f5d5be38d4ad3
* | | | | | | | If the input JSON to a json function that uses cache comes from an RCStrdrh2023-07-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | value, then use that RCStr value in the parse rather than making a copy. FossilOrigin-Name: 509ae9c1470dd79d320e84371e1e6662fb85fa0571df5ed8c4d946d10cdfe821
* | | | | | | | The OP_Column opcode caches large column values coming from overflow pages.drh2023-07-27
| | | | | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: ab1edcc7fedcf27922d5db4bc1bc673b1495ca9c66eb6debdda7b7776c068888
* | | | | | | | Fix a performance regression in JSON associated with generating smalldrh2023-07-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | snippets of JSON from a larger JSON string. FossilOrigin-Name: 837f2907e10b026f6db1ca2d44b4bf60a6f069bf534bf369ad9b5c513cb0c6e4
* | | | | | | | Reduce the number of memory allocations when parsing JSON.drh2023-07-26
| | | | | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: 9edd67162113df57dae21d4683f9495611e2cf4717c6d12f5b7b8e44156d5fe3
* | | | | | | | Minor changes to make coverage testing easier.drh2023-07-26
| | | | | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: ec8b43382e5402e15d9f2dda3cf21ac8be8c1589ddbe6c9433c33eef0036f764
* | | | | | | | Change a switch() case to default for coverage.drh2023-07-26
| | | | | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: 04f497074b9210326030f36107a43d6490a2a59c8a574e2c5429cd9bde681bf7
* | | | | | | | Make sure jsonReplaceNode() always leaves the JsonParse in a consistent ↵drh2023-07-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | state even if an error is encountered. FossilOrigin-Name: 01d52232dd6fbd253e77419a17df3df83d49434792d288ef96e14739a89cef3b
* | | | | | | | Add the ".scanstats vm" command to the shell tool. For profiling VM code in ↵dan2023-07-26
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SQLITE_ENABLE_STMT_SCANSTATUS builds. FossilOrigin-Name: 0cbec3990d4101142bfb831f8e6527b73baabebbd30fa7f59275b217dbce6a8d
| * | | | | | | | Improve the output when ".scanstats vm" is enabled.dan2023-07-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: 7df08fd35e9d4bc471aa9fbc4c81d2ebcfd2be6c4c38143342b3d9d727c9df22
| * | | | | | | | Add experimental ".scanstats vm" command to the shell tool.dan2023-06-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: e727640fb5c17d23b8e27972065b4acbf169c9240298d3ff7aed092b727d052d