aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Add the experimental sqlite3session_changeset_size() API.dan2021-04-21
| | | FossilOrigin-Name: b5564a6fd54875db1de884fdc0e5eeabcd6aa5595ad03a8a60843503e830a2d8
* Initialize the key registers in the skip-scan optimization to NULL, in casedrh2021-04-21
| | | | | | | the query is run on a corrupt database that causes the initialization of the key to be bypassed. dbsqlfuzz 62fdf2bece00d24cac8a4edf2cf562e6eeac779d FossilOrigin-Name: 8b54102a00852b72783b5b2f336c7a093adbdc8e1b94d46b7d315ae6e5d9476b
* Fix a problem allowing SQL variables to be used expressions within the ↵dan2021-04-21
| | | | | second and subsequent ON CONFLICT clauses of an UPSERT within a trigger. FossilOrigin-Name: 2a28910a17dc5b3ce43062fdf879f9622f6ec2db19ed780fa7fe5cae781be7b7
* Remove a testcase() that is no longer relevant due to the previous check-in.drh2021-04-20
| | | FossilOrigin-Name: ca70c8ac72c9fe3b92f8e63151229bebdccc769c5c4d603ad4f466dc4bcd11e0
* More aggressive detection of database corruption in the rebuildPage() routine.drh2021-04-20
| | | FossilOrigin-Name: a18c65068b16eae3c0725356d7f4775774b23e248c700cef8c15f23459fba68f
* Update an assert() in btree.c that may fail with a corrupt database.dan2021-04-20
| | | FossilOrigin-Name: d74bf88c5a027cf080a2892a3538fe5104952b5b3759a6eba1b1a98a75ddf5f4
* In the sqlite3SelectDup() routine, do not do an incomplete duplication duedrh2021-04-20
| | | | | | to OOM. This in turn requires several new NEVER() and ALWAYS() macros for unreachable branches. FossilOrigin-Name: a61c0e6b78bd39f55464fafd257e68effded64995a66e8fa2d686e8c507ebe43
* Improvement to check-in [d564d8882ef18b55] to detect the OOM fault evendrh2021-04-19
| | | | | if it occurs deep down inside the duplicated expression. FossilOrigin-Name: 3e863cd09355abd80c1053d6d4dabb55841f806e3c418f923d67d36bf8313cb0
* An improvement to check-in [1a341378ab24a509] that omits the newdrh2021-04-19
| | | | | | Walker.bWalkWinDefn boolean (which is not always initialized) and uses a special value for xSelectCallback2 instead. FossilOrigin-Name: bef2238de9550de84d4cd1c970a542b43db288d73d09a3c3ced7f98bb3188fd3
* Ensure that a WITHOUT ROWID table does not have the .iPKey field set, even ifdrh2021-04-19
| | | | | | | an OOM error occurs while parsing a schema in PRAGMA writable_schema=ON mode. Add extra assert() statements to triple-check that this never happens. dbsqlfuzz 803bb1f63d6f3bd6c14db568494d6e96be8f1ec9. FossilOrigin-Name: 41228350a620a7de1ee748a4e19a96749c4d39418853fe8b68c43cf401dbd7cd
* In the query flattener, avoid invalidating an expression if an OOM occurs.drh2021-04-19
| | | | | | | This prevents problems in higher-level routines that might not check for the OOM after processing a subquery. dbsqlfuzz fb70fa8602421f87673e0670b0712ff2b5240ea0 FossilOrigin-Name: d564d8882ef18b55ebf93e838426b485281c7ebe3a9b321a2f984ed0f229cc25
* Ensure that all records are updated by setting the OPFLAG_SAVEPOSITION flag ↵dan2021-04-18
| | | | | when updating records as part of ALTER TABLE DROP COLUMN. FossilOrigin-Name: 354a4db5cb769c6aed386f43ee26d7e42342e92f781eef100c09751dc5b51751
* Remove a couple of NEVER() macros from the code for walking window lists.dan2021-04-17
| | | FossilOrigin-Name: 4ec9ef4bcd12bd9ba5e1a2424f75479070d12c25f1272548c6cf3f89be826b8c
* Allow more time for perf tests when instrumented. Condition another on ↵larrybr2021-04-17
| | | | | feature it needs. FossilOrigin-Name: f0dd9cf2d7045d3634294bcf2722d3d7b0a6c4c3ef713b0f7f54fbe31432027f
* Fix cases where code in expr.c was failing to handle OOM failures that ↵dan2021-04-17
| | | | | occurred while processing sub-select expressions. FossilOrigin-Name: 62efe2eee34fdb147cc456290576d8fc3801487867c78aadd4485f85468d9ffc
* Ensure that variables are not used in the WINDOW clause of a query insidedrh2021-04-17
| | | | | of a trigger. dbsqlfuzz d9cf66100064952b66951845dfab41de1c124611 FossilOrigin-Name: 1a341378ab24a5091e6cf03b9e957d11b2bfe5c711835e8c583785f8fa0125d3
* Add geopoly to $::sqlite_options() and use it to pass more tests.larrybr2021-04-16
| | | FossilOrigin-Name: 23da5016b66f3947cc902dbe2766ea9f5a00f85312a652b536ab51d657446ab7
* Performance optimizations in the code generator, especially in namedrh2021-04-16
| | | | | resolution. FossilOrigin-Name: ab83a99899ceae931b43e0c4b3f8f8b83bc832f1568de5692c0d038c968f8a87
* Remove an ALWAYS() from a branch in sqlite3ExprAddCollateToken() which candrh2021-04-16
| | | | | | be false following an OOM. dbsqlfuzz 9e8516bf1e786c84e520ae43141b75b7399f8618. FossilOrigin-Name: 6af4e6d054efd8445e1010aabd584f36e70dfad0de13bd0e2f1761cad4d9a7d6
* Fix an assert() in whereLoopAddOr() that can be wrong if an OOM occurs indrh2021-04-16
| | | | | | an OR constraint on a virtual table if one of the terms of the OR is an IN operator. dbsqlfuzz 5ee7350b40014f5a878c5d6e76913a2d619f5146 FossilOrigin-Name: 5cb40e53edcb1e54cde0e54c38a647144bc3158435df0161f95c89732de086e6
* Fix the comment on the implementation of the pi() SQL function. No changesdrh2021-04-16
| | | | | to code. FossilOrigin-Name: 5620bd466eb10fd4daf51af9b88d8221f981dc0ceabfa84a0e1d5c817f635429
* Do not invoke sqlite3ExprAffinity() if there is a possibility that the Exprdrh2021-04-16
| | | | | | is incomplete due to a prior OOM. dbsqlfuzz b8a824706914488bd236da51118eb9174ceb870f FossilOrigin-Name: e8a1515b44380cc52aca1838814ca398012e4e9cf5728d40b404546e812a39b7
* Fix a bad interaction between constant propagation and transitive term ↵dan2021-04-15
| | | | | handling causing patterns like "WHERE unlikely(t1.x=t1.y) AND t1.y=?" to return non-matching rows. FossilOrigin-Name: 2363a14ca723c0343fbe350f6c19787a7a47c2289fd9af136c97a451b53b5226
* Make sure the WhereInfo.pExprMods list is properly cleared when existingdrh2021-04-15
| | | | | | sqlite3WhereBegin() early due to an OOM fault. dbsqlfuzz 1247a51318047aba42e7f6991dfa62577cb7a151. FossilOrigin-Name: 0e19af72d84f96245cb4a5cfc37232579b6f5fdebd525f8b6515a4f2cc84e273
* Prevent an assert() from failing if sqlite3_blob_reopen() is called on a ↵dan2021-04-14
| | | | | blob-handle that has already hit an SQLITE_CORRUPT error. FossilOrigin-Name: b5dc7aba036cfd6d09c68dd17608328063634ca99ff341f97bab2dc2a1f59b11
* Fix an assert() in the code generator for expressions so that it is validdrh2021-04-14
| | | | | even after an OOM. FossilOrigin-Name: 427e83eb583a4f63650912f078122e7373fe8c7ea11acfdab464d748b4235261
* Do not leave a WITHOUT ROWID table without a primary key index structuredrh2021-04-13
| | | | | | | due to an OOM error. This prevents downstream troubles in the case of PRAGMA writable_schema=ON. dbsqlfuzz 69fb32cc82d59b4d790881566e3f6c727e616122 FossilOrigin-Name: 608b6644b932c4d0c26ab870322639deefde4606f9e335575f99995bc7ed08b5
* The SQLITE_NoSchemaError flag should not apply to OOM errors while parsing thedrh2021-04-13
| | | | | schema. FossilOrigin-Name: 9cc484ad1a42f0821e53be6df46b1811dc8059e5aaf2f6c3e667105a55893b97
* Earlier detection empty_result_callbacks in sqlite3InitCallbac() to avoiddrh2021-04-13
| | | | | | problems with corrupt schemas an writable_schema=ON. dbsqlfuzz ca4ca43bdb22eab9859de4979aec615af851e111. FossilOrigin-Name: fb305fe077a0058861427f107957fcc3d2b1443cdd11a7f145df138ca3bb9f4e
* Fix a faulty assert() inside sqlite3ExprDup().drh2021-04-12
| | | FossilOrigin-Name: 59812e7ef705226c801f95ec7f78cc931f9957ffb66715607d63874813b280cb
* Fix an assert() in OP_ParseSchema so that it works even after an OOM.drh2021-04-12
| | | FossilOrigin-Name: 79b883537910274518cadbda7b5088811f59287b9385fc28ab54d837d41b995a
* Add an assert() to show that the SF_Resolved flag does not get set ifdrh2021-04-12
| | | | | errors are being suppressed. FossilOrigin-Name: f455c5b0bda3d303f9269db37efaa8ff0b356622b2df0a7544f83bb334118180
* Fix a segfault that could occur if the ORDER BY clause of a compound SELECT ↵dan2021-04-12
| | | | | contains a sub-select that uses one or more window functions. FossilOrigin-Name: 5ba15ebb34c3af85ef6c54bbb3acb57176d629cda83774881b2a6467e138e904
* Fix the display of SrcList in the sqlite3TreeView debugging routines.drh2021-04-12
| | | FossilOrigin-Name: 28ecb3810b40ca58c2e04a752bbc2234c64c27185aef2cb3fe7c933082dc2578
* Avoid an assert() failure when a compound scalar sub-select is, due to a ↵dan2021-04-12
| | | | | "WHERE (sub-select) AND (... OR ...)" clause, coded twice by the code generator. FossilOrigin-Name: a4e3f13329332f91a250bc18459fd4100990a1ac0516f8a0a6b21ff117db9795
* Fix harmless comment typo in main.c.drh2021-04-12
| | | FossilOrigin-Name: 785a553e71e2ecf108ec4140d470d718ceeb2d03896f7aab36ce10cf0e99e72e
* Add NEVER() to a branch that is no longer reachable due todrh2021-04-11
| | | | | check-in [a1d823f6879ce1ac]. FossilOrigin-Name: 5fda21feda2448de880088f4f53f20875ef02b47172c48091638b80173f983d7
* Avoid an uninitialized-memory valgrind error by tightening up corruptiondan2021-04-10
| | | | | detection in internal routine defragmentPage(). FossilOrigin-Name: 8096f7aee497f852b1404e13cdc8bafb54fcf6c540cd58addbc01eb2e27011b3
* Add NEVER() to a branch that became unreachable with drh2021-04-10
| | | | | check-in [58f36af2271517ab]. FossilOrigin-Name: e07ce463967521ab53463b21f80c8f90c337c15c250f69c3fccc1305f54f32df
* Avoid invoking sqlite3Atoi64() will a null pointer following an errordrh2021-04-10
| | | | | from ExpandBlob(). FossilOrigin-Name: 780412f2ca7576ce90861b2bd499f953504125b200e9aeae685def4a943f9d2b
* Fix a problem with handling expressions like "(col IS NULL AND <expr1>) OR ↵dan2021-04-10
| | | | | col == NULL" in WHERE clauses. FossilOrigin-Name: 40852ca8e215e51f63652a67817361b835b6fbbff7f66af50089af91007505f1
* Refactor NameContext.nErr into nNcErr to avoid confusion with Parse.nErr.drh2021-04-10
| | | | | | | Do not abandon sqlite3ResolveExprList() on nNcErr if nErr is still zero as we might have hit a problem with ORDER BY resolution that should be a suppressed error. dbsqlfuzz 41b9dad40919d3549ca7e52d893da81a6dded4ad FossilOrigin-Name: 7d674970741bd9b228b818c701c1ae010b90cc287a4c60a872f18b66353d164d
* Remove a NEVER() in a corruption detection conditional in allocatePage().drh2021-04-09
| | | | | dbsqlfuzz 9c61c33802600b2b01dfb09b0386ceb4ade02a19 FossilOrigin-Name: c174f5d32b8c6bbad102065b2d5acae70ddb153f863a2842da836cf7db3f683f
* Remove an ALWAYS() that is actually reachable following an OOM on andrh2021-04-09
| | | | | | UPDATE FROM of a virtual table. dbsqlfuzz aa03237ef7c4a028c7cdaf8bbcde2b62e2bcd36e FossilOrigin-Name: 49eac38926b3391b185d20fae6588c213f7f020f028173d4a4aa3c7a62b94140
* Have the VFS in memdb.c return SQLITE_IOERR_NOMEM instead of SQLITE_NOMEM ↵dan2021-04-09
| | | | | when an OOM error is encountered. This is required to get the pager module to handle such OOM errors correctly in some cases. FossilOrigin-Name: 09c96b4c026746f285a8aef5199bd247ecca590095ee42dde4f4dfa4996ce0bd
* Fix a use-after-free error that could occur when processing "SELECT ↵dan2021-04-08
| | | | | aggregate(DISTINCT <expr>)..." queries. FossilOrigin-Name: 0e4789860b81c31d3a6d1f9f8340042ce1d08a82bf6119c783fcab85180b1b63
* Remove an ALWAYS() that might be false under very unusual circumstances.drh2021-04-08
| | | | | dbsqlfuzz 300261f469ace7ecc57ed32ea7b0de3ea9d7dbf. Test case in TH3. FossilOrigin-Name: 466f508973e7adc983a4c9bd7c86b4d9269e3b990183fc7f95a50fe72b832ad0
* Handle the corruption fixed by the previous commit in a different way so as ↵dan2021-04-08
| | | | | to also fix dbsqlfuzz crash 753de0a0ac5b25b18f1e4d41e650d3333cdc270c. FossilOrigin-Name: cb27ce25095ab9b5acbe4bf010c7f6d8a71191c2f79b3bf3e63d8655b4fe0769
* Handle a special case of corruption that can present if "PRAGMA ↵dan2021-04-08
| | | | | writable_schema=1" is set. Fix for dbsqlfuzz test case 6229ad63de49e3ba0630aaf0058868f36008bcca. FossilOrigin-Name: 58f36af2271517abafa9f4a46f2a5f97e66c001675c17868282197d599603d1b
* Hardden the filter_over grammar rule against OOM faults.drh2021-04-08
| | | | | dbsqlfuzz e47c54502a9c36778a5ed553199d5870e2ebd9f2 FossilOrigin-Name: f375f541efee520042be83548ad96dfa889e2c349eda5db7612ac2336dd4e4f9