aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Round one of an audit for SQLITE_ENABLE_API_ARMOR for functions exposed by ↵stephan2023-10-13
| | | | | JNI and those functions missing armor, as [forum:5e3fc453a69b49ca|reported in several forum posts]. FossilOrigin-Name: 8c25c4b18ad07861bf0e47f99f3db04b569b9b859ad0690602f748ddf3576939
* Avoid potential overflow in hex(). [forum:/forumpost/7ac0c9c5ea|See forum ↵larrybr2023-10-13
| | | | | post 7ac0c9c5ea.] FossilOrigin-Name: 2e968114fd0e60eebcc088dec02684e10b06ac1ec42d6bedb5287362f5cbf032
* Make sure virtual tables have been connected before trying to invokedrh2023-10-12
| | | | | the xIntegrity method during PRAGMA integrity_check. FossilOrigin-Name: 4a4eccb681741917c6771101d4e329f91eae9b035f4d345218e522bb55fff6da
* Make sure the journal file is closed when transitioning into MEMORY journaldrh2023-10-12
| | | | | | mode, to avoid an assertion fault in the new sqlite3_randomness() avoidance code added by [c84e4483cb44f827]. FossilOrigin-Name: 29937081a986d88f495ad48748c35ff5829f0ac31dd4ad3e48d180ae2fcb9a0c
* CLI to check for rare prepare failures. [forum:/forumpost/5be6395182|See ↵larrybr2023-10-12
| | | | | forum post 5be6395182.] FossilOrigin-Name: 286d1e8012a5f5d9e1fe6dce1a732f725b8a1837f66daf6aefb792e19e96f2d4
* Fix the use of an uninitialized value that occurs when doing a json_insert()drh2023-10-11
| | | | | of a string value that contains embedded U+0000 characters. FossilOrigin-Name: d3c0cbb90966316be9cd25e3edb501da42731e8a83c13227b90ce17d3975a2c3
* Simplification to sqlite3ApiExit(). Generates identical machine code, butdrh2023-10-11
| | | | | easier for humans to read. FossilOrigin-Name: 793bbfa5af9721bc3a61e8e5eda46dfce2f5ff3f223a7564c9e1b09f11e53cb3
* Use snprintf() in place of sprintf() in a debugging function in the CLI.drh2023-10-09
| | | FossilOrigin-Name: 5e5e4d2b4958c329578d1e5af4ed25c1b774f0ed2d15fa6747d7d7fbbba4fa46
* Avoid calling sqlite3_randomness and taking the PRNG mutex when writing a ↵dan2023-10-09
| | | | | journal header in "journal_mode=memory" mode. FossilOrigin-Name: c84e4483cb44f827416d8caafa22f076b2f31b2024fe8c5b5bcb0c9955149d11
* Fix a compiler warning caused by the previous check-in.drh2023-10-09
| | | FossilOrigin-Name: 7e8768bf8b4002b1c287f2bc95262548e2ae81b437936154f2bb1ea1f739a904
* Turn on SEH by default when building using MSVC.drh2023-10-09
| | | FossilOrigin-Name: f57e8275cf1ab3ad8027044cda0893282d1c403a5aa9fabbb1c7de280597b5cd
* Fix a potential UAF caused by JSON parser cache spill.drh2023-10-09
| | | | | [forum:/forumpost/b25edc1d46|Forum post b25edc1d46]. FossilOrigin-Name: a163fecca90cab9d1b7bf8ebac78d498775eed7b6d81e7920e3401633c3a4b60
* Fix a resource leak: sqlite3_blob_reopen() was failing to invoke thedrh2023-10-07
| | | | | | | | xDel() distructor on a register when it sets that register to the new rowid. This was never a problem prior to the large-column cache of [771fe35074b50b8d] as that destructor was always a no-op. dbsqlfuzz cd96368deaece480fb94d42427dde053737a650e. FossilOrigin-Name: 545edd5ecf20a7feb99dc5ce6f338fa1f172c2e17b240cbede497f0729dbd3d7
* Remove an unused parameter from the recomputeColumnsNotIndexed() routine indrh2023-10-06
| | | | | order to squash a harmless compiler warning. FossilOrigin-Name: 9bf4bfd68080367b58594e0d44b110b3ee9766420f648537fd7bc638dacefb72
* Ensure that all fields of static sqlite3_module objects are explicitlydrh2023-10-06
| | | | | initialized, in order to hush-up nuisance compiler warnings. FossilOrigin-Name: f3b3d712d6e58b1cb8fdebd2b6b3125080b6b3ac8c7c849a8cc1e5e778d62fe7
* Remove and unused static variable from shell.c.in in order to silence adrh2023-10-06
| | | | | harmless compiler warning. FossilOrigin-Name: 477577120b897bf15edc2a85e220d5c64a1d5a245354939269f6753d8140ac95
* Increase the size of some variables associated with the PMA sorter in orderdrh2023-10-06
| | | | | | to avoid any possibility of a signed integer overflow. [https://bugs.chromium.org/p/chromium/issues/detail?id=1489025|Chromium fuzzer issue 1489025]. FossilOrigin-Name: dc3be3af471d90dd810c1e2cc59e83cf6a57f01971b1258ea0da402e4d577ef2
* Improved detection of corrupt databases in balance_nonroot().drh2023-10-05
| | | | | dbsqlfuzz d1cf013c50a620b68c2a5bd240d29afd65e5f58e. FossilOrigin-Name: a2464bbb825b5976ef974a2e6c17ea150f5e6fcd0dd0f144b9f9c1c22a9c9c82
* Remove a stray blank line from the beginning of btree.c. No functionaldrh2023-10-05
| | | | | code changes. FossilOrigin-Name: c89983dcfc208faa86b31717144c069572598e9770228264d69a044a84bde277
* Fix the length of the string in the new concat() and concat_ws() functions.drh2023-10-02
| | | FossilOrigin-Name: 325243226520376f4a142864ae3fb98866f25bff4dc50a6b648ef98428a7169f
* Remove an ALWAYS() from a branch that can in fact be false following an OOMdrh2023-10-02
| | | | | fault. FossilOrigin-Name: 3a1feb1c469d3dd50e2558581199b16bfd59b9d5bcb0de5f1a8f0ec30a17b4d1
* Remove an incorrect assert().drh2023-09-29
| | | FossilOrigin-Name: f090af775f6d2ce8b50850f5c9e33546bcb9cff5467d99ca210530cb7ca83d5b
* Clarify serialization API doc w.r.t. buffer validity and usage, instigated ↵larrybr2023-09-28
| | | | | by [forum:/forumpost/8922e2ad2ad41205|forum post 8922e2ad2ad41205]. No code changes. FossilOrigin-Name: b488b9fb71652eca90d2bf73d32f3d748badf517859dc833c58e021b0e017194
* Fix harmless compiler warnings in the testfixture testing utility.drh2023-09-26
| | | FossilOrigin-Name: 5a39a02d2dfd9ed6171cd0bd434b2bc268d0ed8ead6e1a396d1603266d9493ef
* Fix yet another assert() in the partial-index constant value optimization.drh2023-09-26
| | | FossilOrigin-Name: f459d0806cf044fd07743e4c91d0a5a6ddf45b3b41004bde4278f190d99a4cf5
* Remove a NEVER() from a condition in the partial-index constant value ↵dan2023-09-26
| | | | | optimization that can sometimes be true. FossilOrigin-Name: 63aea8c3e0605edcf49ad1e5ce1a56d2690dcb8c4857043997545daab46ca035
* Remove unreachable code from the partial-index constant value optimizationdrh2023-09-26
| | | | | ([8d4160910d651246]). FossilOrigin-Name: 7ad38254c37153efa72291d09800693ca60894359548eda877d59defa8c70d49
* Another very minor tweak to code on this branch to save cycles.dan2023-09-25
| | | FossilOrigin-Name: 2c805dc68112db7f06aea56a731a33e046e876851bdda3e725ba96f6da1bf2ee
* Change the order of an if..else... in new code to make it slightly faster.dan2023-09-25
| | | FossilOrigin-Name: f80dc64483a54a488e507da140836261ae1b864577cc95d8e869919d5a25e73c
* Fix a bad interaction between LEFT JOIN, bloom filters and partial indexes.dan2023-09-25
| | | FossilOrigin-Name: 5775f92b31f0539c66d37e50689bec17a82c0e857a781331c03e34bc18157087
* Avoid an error when parsing a schema that contains indexes with WHERE ↵dan2023-09-23
| | | | | clauses containing unknown collation sequences. FossilOrigin-Name: d5dd39e37ab994ce5d75688a40c6494c17807431529e85eb2b11d58f367fe232
* Fix a failing assert() caused by changes on this branch.dan2023-09-23
| | | FossilOrigin-Name: d0e21f20bd8643d21c4b88fb75b83939d68e9b7118f7289a164656f11d2ee555
* Fix a harmless compiler warning.drh2023-09-23
| | | FossilOrigin-Name: 7c4210253b660b385d14de3ae7ab30f038036308e1164ec17b40e2805b9b2235
* In partial index scans, if the WHERE clause implies a constant value for a ↵dan2023-09-22
| | | | | table column, replace occurences of that table column with the constant. This increases the likelihood of the partial index being a covering index. FossilOrigin-Name: 66ed7abdfa228abde2052e3988589371f0e49b11582b1b4a83255d2df3a0aefa
* Remove a NEVER() in btree.c that could actually be reached, with the approriatedrh2023-09-17
| | | | | database corruption. FossilOrigin-Name: d1fd00e0875f881cacdc581a75215ec1872a81969ac07b8ebe3aaa707a9a3640
* Fix resolution of "rowid" and similar identifiers in queries that use nested ↵dan2023-09-16
|\ | | | | | | | | joins. FossilOrigin-Name: 37ec43d92bde13efc71fa57ff5e59c4a95b9054c298f844aefeb06d4a91ad0d4
| * Add a NEVER() to an unreachable branch.drh2023-09-16
| | | | | | FossilOrigin-Name: 6b6eb38979d68c06e382620c8813d6b67a3de02c4a7a029c84f924b9a2e380c6
| * Fix minor code indentation inconsistencies. No function changes.drh2023-09-16
| | | | | | FossilOrigin-Name: 05107a0ae1456b746d3119af68d39532fad23a7eef88c09a9ef46ab7f8da4b9d
| * Fix a harmless compiler warning.drh2023-09-16
| | | | | | FossilOrigin-Name: 9e9ff4ca3a205d0b599634782a5ad389fbe4823663550f48c54ca35dbc660dc7
| * Further tests and assert() statements for the change on this branch.dan2023-09-16
| | | | | | FossilOrigin-Name: 1c202d540ac362bfc747a9f8472e83c9d7614e38467f8b48787a669fb34664ba
| * Fix resolution of unqualified "rowid" identifiers in queries with nested joins.dan2023-09-15
| | | | | | FossilOrigin-Name: bbcbd3d537d6790373d97f59386b8ce7fa2177db572af0f1babe058a76e25cc3
| * Allow expressions like "<tbl>.rowid" to refer to implicit rowid columns of ↵dan2023-09-15
| | | | | | | | | | tables in nested FROM clauses. FossilOrigin-Name: 59a1bbc69f5dbb33418fa4b383393fb13a46bc1e531577da8ad54ae2fad5a10e
* | Minor simplification to the DISTINCT output row count change.drh2023-09-15
| | | | | | FossilOrigin-Name: 0738386d7c505a98768ddaff7ff1fc76f115882d92d6f84bf136b4aa2caad8b8
* | Do not reduce subquery output row count estimates due to DISTINCT untildrh2023-09-15
| | | | | | | | | | | | after the decision of whether or not to use an index for ORDER BY has been made. FossilOrigin-Name: 27390051e86ad86fb35219329d359be9e83073f59782631af7fc519225e10565
* | Experimental: Assume that a DISTINCT clause on a subquery reduces the numberdrh2023-09-15
| | | | | | | | | | of rows returned by that subquery by a factor of 8. FossilOrigin-Name: 5a940e47d501f23347eaf084f4820e064e93665d19c8938c80715b71006ede8b
* | The view-scan optimization was added to enhance the performance of one specificdrh2023-09-15
|/ | | | | | | | query, but it causes performance regressions on a host of others. Disable it (at least temporarily) in order to try to find an alternative way of fixing the one specific query that it was created to fix - an alternative way that does not cause performance problems for other unrelated queries. FossilOrigin-Name: d9625a9eafe88859c3255849ee750cc6322d5a13ddad45107f9b2085c20eff50
* According to [forum:/forumpost/9f6db917e1|forum post 9f6db917e1], olderdrh2023-09-14
| | | | | | | | MSVC compilers are unable to convert a double directly into an unsigned long long int, but must first go through a signed long long int. Work around this by restricting the range of doubles that are converted into long long integers so that only the lower 63 bits are used. FossilOrigin-Name: 0ab05871ba36e2a0eddfbc700c1d39891c54c453727a4effcdac3327efec163b
* Document the use of OPFLAG_ISNOOP as the P2 argument on OP_Delete. Nodrh2023-09-14
| | | | | functional code changes. FossilOrigin-Name: d88f41b2cf2b721170d2428a50b717976091389d9a07d0ffa15c3323b0eaad37
* Improve the sqlite3IntFloatCompare() routine so that it is testable.drh2023-09-14
| | | FossilOrigin-Name: bb221381fa38db5be1222d89c567a9bca0e6c441e26a8c797bd326b263556afb
* Improved comments on the hasHighPrecisionDouble() routine. No changes todrh2023-09-13
| | | | | the underlying code. FossilOrigin-Name: 810c635ce063d873e969bf83339c654f6008e84ce8a61f0ffc61806e98d13dde