aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
| * | | | | | | Remove a local variable from sqlite3IntFloatCompare() that was being optimizeddrh2024-02-26
| | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | out anyhow, in order to get back to 100% MC/DC. FossilOrigin-Name: 52b13d6acbb738b9281f7dd44edd6c3c9585d22d98b1951b7059534fbd16fac0
| * | | | | | Make sure key comprisons are done correctly if the index key contains NaNdrh2024-02-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | values that have not been shifted into NULLs. That can only happen due to database corruption, but we need to deal with it nevertheless. FossilOrigin-Name: 7e4c743f9e6ef33500795543e6db9a77c533025bf00c2ee97abd433a3871b5a1
| * | | | | | Typo fixes [forum:c19bbf245d|reported in the forum]. No code changes.stephan2024-02-23
| | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: 67d8bae0f695c0839e724c1aadea0a22f736fdd9664d40a29b4d82c91fb89ab3
| * | | | | | Fix harmless compiler warning seen with MSVC.mistachkin2024-02-22
| | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: e5db08993127dfc18cc2b621a13cbfef52974f0f504f4d8208093bfad1ffdcc5
| * | | | | | Fix debugging code so that it compiles on MSVC.drh2024-02-22
| | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: ce5df19dc4aff3fde03ef62261a5e095a16a8f4e46e2924becea4fed56ce49e3
| * | | | | | Fix typo in comment. ↵drh2024-02-21
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | [https://fossil-scm.org/forum/forumpost/cc20266bf2|Fossil forum post cc20266bf2]. FossilOrigin-Name: 7e3c46eed1290964a3e25662686c6ba1149bf8687d05719b684772e65d660c09
| * | | | | Fixes to comments associated with the recent PRAGMA optimize enhancements.drh2024-02-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No changes to code. FossilOrigin-Name: 27a2113d78b35e324e9aedda7403c96c56ad0bed8c6b139fc5a179e8800b9109
| * | | | | Remove an unreachable branch from printf(). Change it into an assert().drh2024-02-20
| | | | | | | | | | | | | | | | | | FossilOrigin-Name: 4c9886b692706723f4b68f58dfef07ab19b192fd19b953917f23b55655af3e02
| * | | | | Remove an unused variable from the merge in the previous check-in.drh2024-02-20
| | | | | | | | | | | | | | | | | | FossilOrigin-Name: 5c26bf379e18e28d800525bd03e2d5597e2f37674979302f351b99abfc064749
| * | | | | Another simplification of the PRAGMA optimize logic for improved coverage.drh2024-02-20
| | | | | | | | | | | | | | | | | | FossilOrigin-Name: 6c5a0c85454e3c658e51fab611c169c034447174022eebc52fd8619b528a4765
| * | | | | Minor fixes.drh2024-02-19
| | | | | | | | | | | | | | | | | | FossilOrigin-Name: ed5afebc410e3d430e2428d35f027bffb218e5f11036a42f97b080153e89016e
| * | | | | Fix a minor hiccup in the computation of the number of btrees to be scanned.drh2024-02-19
| | | | | | | | | | | | | | | | | | FossilOrigin-Name: 91302d9b2720d6b5184e1c24db55d351544adfde4b3d2ddcdc1561f79f11985a
| * | | | | If there is no mention of a table in sqlite_stat1, use OP_Rewind to see ifdrh2024-02-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the table is empty prior to invoking ANALYZE. FossilOrigin-Name: 0cc93b19de597866292e0696f89fbd0e22a6cbb374678f5cc096fb889210fe3c
| * | | | | In PRAGMA optimize, scale back the analysis_limit when many different tablesdrh2024-02-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and indexes must be scanned. FossilOrigin-Name: 636615358aebfef80a657d09f15f608df9e64882b2aaa5574ce31a4f1c71fd70
| * | | | | Merge trunk fixes into the better-optimize branch.drh2024-02-19
| |\ \ \ \ \ | | | | | | | | | | | | | | FossilOrigin-Name: 2cf78a5b5fce7f2d49ce185d27f50722c91a1d6c91bbcecebd4bb5244a76769f
| | * | | | | Extend the strerror_r() result type discrepancy check in os_unix.c to ↵stephan2024-02-19
| | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | include the Android NDK, as reported in [forum post 3f13857fa4062301|forum:3f13857fa4062301]. The NDK's strerror_r() signature is version-dependent, whereas this change assumes int return (POSIX semantic) across all versions. FossilOrigin-Name: f18b2524da6bbbcf372b292df52fbe6efa49fd6e1f1f13ef2447279d559f7a08
| | * | | | Fix rounding in zero-precision %f and %g printf conversions.drh2024-02-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [forum:/info/393708f4a8|Forum post 393708f4a8]. This bug was introduced by check-in [32befb224b254639] and first appeared in version 3.43.0. FossilOrigin-Name: 7fca1bc482fc2456d75392eb42f768fda72631c9070de46b8123b1126e78306f
| * | | | | If a table has one or more rows and it has a partial index has zero rows,drh2024-02-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | still make an entry in the sqlite_stat1 table for the partial index, so that we know that "PRAGMA optimize" does not need to redo the whole table. FossilOrigin-Name: e147b18991dd462fff367442acb0504fdf193a31843ed34ec8c1ced30747bf8a
| * | | | | Simplifications to PRAGMA optimize to make it easier to use. It alwaysdrh2024-02-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tries to ANALYZE unanalyzed indexes. The 0x10000 flag just makes it check for size changes in all tables. FossilOrigin-Name: 44ed7f4cd07a88a2fdd303a2c78e6babe01d7344b399bd2b80ed68d75a77aaa2
| * | | | | Change the 0x20000 bit (use analysis limit) to 0x10, meaning that this featuredrh2024-02-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | is on by default. The default analysis limit is changed to 2000 which is almost always sufficient for accurate analysis results. FossilOrigin-Name: 4abd47b5917099a2f74e53e12c987da0722304a5e9a93b6d43015c1f45c48444
| * | | | | Hold a transaction during PRAGMA optimize, for performance.drh2024-02-18
| | | | | | | | | | | | | | | | | | FossilOrigin-Name: d13b79eae6df7f9d1f3b8062ddc75a12ff038196b3d752d2672a9925fa45ca56
| * | | | | Add new MASK bits to PRAGMA optimize: 0x70000.drh2024-02-17
| | | | | | | | | | | | | | | | | | FossilOrigin-Name: dd4497062569eec9ddfdaa7d6394c83ff40a7a59c6697a161bc4ff6d8af3bb29
| * | | | | The PRAGMA optimize command invokes ANALYZE if a table shrinks by 25 timesdrh2024-02-17
| |/ / / / | | | | | | | | | | | | | | | | | | | | in addition to if it grows by 25 times. FossilOrigin-Name: 40532ffba91cf332c1ea4add80184031a9d6e10514d2d9b9a6cfd613091b81f7
| * | | | Fix the subtype on the value column from json_each/json_tree for casesdrh2024-02-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | when the value is an array or object. Fix for the bug reported by [forum:/forumpost/ecb94cd210|forum post ecb94cd210]. FossilOrigin-Name: 1c33c5db2e05019d1a375109f79ad8588a3c17f81e4f4b8d66c880c3c860e87e
| * | | | Retweak last check-in to retain compile-time checking of xprintf() arguments.larrybr2024-02-16
| | | | | | | | | | | | | | | FossilOrigin-Name: 670174916c660b24ba70e96a42984eb65ee52da50e9828bdeca4c9ff4bf92e20
| * | | | Work around a __VA_ARGS__ complaint in fiddle builds.stephan2024-02-16
| | | | | | | | | | | | | | | FossilOrigin-Name: 7d750248c58ccbf87036ea7db053def1c83c7a8ed428a5c47895756302b36200
| * | | | Rename the TF_StatsUsed flag to TF_MaybeReanalyze, to more accuratelydrh2024-02-16
| | | | | | | | | | | | | | | | | | | | | | | | | reflect its usage. No logic changes. FossilOrigin-Name: b4790da5e0d6f0f617e6c3a17fc2606842e41cab14339392abd335410fec0aa3
| * | | | Fix a bug in PRAGMA integrity_check introduced by enhancement (8a) indrh2024-02-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [https://sqlite.org/releaselog/3_42_0.html|release 3.42.0] and first reported by [forum:/forumpost/ee4f6fa5ab|forum post ee4f6fa5ab]. FossilOrigin-Name: 460353dfff8f2fb03f9c8666d0c367ec7be4cfa96dfcb0cea10f144d043223bb
| * | | | Changes to vtabCallConstructor() to avoid a harmless static analyzer warningdrh2024-02-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and to help prove that the UAF reported by [forum:/forumpost/cafbe582e8|forum post cafbe582e8] is a false-positive. FossilOrigin-Name: 4892440b93306e5a245f18c0d3d295d851e6712260e420016c0d70e12abf8901
| * | | | Add a new sqlite3FaultSim() call in the btree logic, for testing.drh2024-02-12
| | | | | | | | | | | | | | | FossilOrigin-Name: e0558f79b8184ea6741fb20b710dab854f5bdb71aa47d5a6701eeb7389540c8c
| * | | | Add support for the ".testctrl fault_install" dot-command in the CLI whendrh2024-02-12
| | | | | | | | | | | | | | | | | | | | | | | | | launched with the --unsafe-testing option. FossilOrigin-Name: 5ba7fee1a9b49df82387e355d2ab7de58663d3fa824e50717608b27e0f7ac874
| * | | | If a term of an ORDER BY or GROUP BY contains an aggregate function or column,drh2024-02-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | then it is not an alias that needs to be resolved, so don't try to. This fixes a harmless assertion found by dbsqlfuzz. This yet another problem that orginated at check-in [6e6b3729e0549de0]. FossilOrigin-Name: d4ec2a5d2297cd9ead0a8768dcf003ea76c74d8d68d88c40f62363f484a4a4d3
| * | | | Improved AggInfo tracing in debug builds. No changes to deliverable code.drh2024-02-11
| | | | | | | | | | | | | | | FossilOrigin-Name: bb31f9c44794e02a46ed3edbcc96eb48c5870d3f82cb404586ded9a3efa7a859
| * | | | Further clarify sqlite3_exec() callback parameter lifetime.larrybr2024-02-10
| | | | | | | | | | | | | | | FossilOrigin-Name: 993a1a843177b19a9cb5598f57d1e05c01e1695f164faaa9ae22810ad4533eba
| * | | | Mention limited lifetime of string arrays passed to sqlite3_exec() callback.larrybr2024-02-08
| | | | | | | | | | | | | | | FossilOrigin-Name: 717f67f3189a59842f5c17a25e8db0e24ec4405886fc22ab6eeb3954fba5a964
| * | | | Fix an #endif (added in the wrong place by [8f4b1ceafe4a271b]) so thatdrh2024-02-07
| | | | | | | | | | | | | | | | | | | | | | | | | the build works with SQLITE_OMIT_VIRTUAL_TABLE. FossilOrigin-Name: 7070924eebce1d089fde911dc0427ab8f3764d57ace24caff2b79954b42d1b51
| * | | | Turns out the branch is reachable, so back out the NEVER().drh2024-02-07
| | | | | | | | | | | | | | | FossilOrigin-Name: 0af36a3223d2dabda887830390a603ab4781baca7e2f1698ec6c5f2cf03faf04
| * | | | Detect and respond to an OOM on the jsonStringTerminate() call ofdrh2024-02-07
| | | | | | | | | | | | | | | | | | | | | | | | | jsonReturnStringAsBlob() routine. FossilOrigin-Name: 881f814c09b6896a448a2360b0b43dc99592ea3a1d72ac359770cbb0a2c7d38a
| * | | | Slight change to OOM handling in JSON to catch a corner case found bydrh2024-02-06
| | | | | | | | | | | | | | | | | | | | | | | | | dbsqlfuzz. FossilOrigin-Name: 6a2b3266c586d12b51e11fe63cda5881be9373207aa16671ab77f547830eb790
| * | | | Fix harmless compiler warnings seen with MSVC.mistachkin2024-02-04
| | | | | | | | | | | | | | | FossilOrigin-Name: e52c87420b072fa68d921eda66069542d50accbfaf1110ac4cc1543a4162200d
| * | | | More extensive use of SQLITE_CORRUPT_PGNO.drh2024-02-02
| | |_|/ | |/| | | | | | FossilOrigin-Name: 3838332cffb87f77a7c6b357066a59b9dc4f65ef4b3496767ad7ad7c14a77be2
| * | | Fix typo in vdbe.c comment. No changes to code.dan2024-02-02
| | | | | | | | | | | | FossilOrigin-Name: 62010ba488f65aec3c6bd17b05f64c5b3e885dee4221e6016c4eb1053e19284d
| * | | In PRAGMA integrity_check, defer running xIntegrity on virtual tables untildrh2024-02-01
| | | | | | | | | | | | | | | | | | | | after all ordinary tables have been checked. FossilOrigin-Name: 8f4b1ceafe4a271b23e17493a244a34c1732a3d35c5533c37394b9f3dc158435
| * | | Add tracing logic to the shared-cache locks in btree.c. The tracing isdrh2024-02-01
| | | | | | | | | | | | | | | | | | | | | | | | off by default. Enable by changing a single "#if 0" into "#if 1" and recompiling. Debugging code only - no changes to release builds. FossilOrigin-Name: f2b943f97ad7e47848ac6df3a3a1eba134b9e63c4a631f8eaf8bda77cc02ba7b
| * | | Add the test_oom_breakpoint() routine on debug builds, to serve as adrh2024-02-01
| | | | | | | | | | | | | | | | | | | | convenient breakpoint to intercept OOM conditions. FossilOrigin-Name: e45df7dcd6b5766d7593ee87e59dd422a217cce0a1a8d369c03144bb21859428
| * | | Replace an conditional assignment that was made obsolete by [d4c193f0b49f4950]drh2024-01-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with an assert(). The conditional was added by [d6fd512f50513ab7] as a fix for tickets [c36cdb4afd504dc1], [4051a7f931d9ba24], and [d6fd512f50513ab7] which means now [d4c193f0b49f4950] is the correct fix for those tickets. that check-in FossilOrigin-Name: 44b5524d522e749ad6bf76c94d754ff16c309c32439ec46802924663f64e8b09
| * | | Add NEVER() and ALWAYS() macros for the JSON5-control-character change.drh2024-01-31
| | | | | | | | | | | | | | | | | | | | | | | | Also fix an incorrect comparison used to determine if a buffer needed to be resized. FossilOrigin-Name: e3c0c0e686f3b7710f79587cf465b5aac52d8f2f2986a3de885a656f652cbfd3
| * | | Fix failure to detect unterminated string literals in json_valid() in thedrh2024-01-31
| | | | | | | | | | | | | | | | | | | | previous check-in. FossilOrigin-Name: 5d725644621cf640fb743d59ccf89dac777540410e67501eb00b83638c8c857f
| * | | Allow control characters in JSON5 string literals.drh2024-01-31
| | | | | | | | | | | | | | | | | | | | [forum:/forumpost/05182119f69c3a92|Forum thread 05182119f69c3a92]. FossilOrigin-Name: 34709c7cc910539e23a830ad8b589a97a88be25e924a59670c1017fb51447dad
| * | | Fix a memory allocation bug in the (debug-use-only) json_parse() SQL function.drh2024-01-31
| | | | | | | | | | | | FossilOrigin-Name: 32ce7dacf58bbf35cf70da8b03fa25f97fcea970edbc1f8aa12739ac4c8608fb