aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
| * | | | | | | | | Default to SQLITE_THREADSAFE=0 and SQLITE_OMIT_LOAD_EXTENSION for wasi builds.stephan2022-11-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: 382ba3b28409bbc54e6c5c3c9fe78980832e9f33261ee842e3b56e788300f669
| * | | | | | | | | Account for lack of mmap(), getpid(), and shared memory APIs in wasi.stephan2022-11-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: 80ff026fb4b2203eea53d4930c1e9bb138db951fb408739c7d5c776fb397b665
| * | | | | | | | | Preliminary patches to get sqlite3.c building as-is in WASI environments.stephan2022-11-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: 19c04d71bf0f2f44d5a03288cbea3f63cf4eae2fa018ac6be4ae49a321e2b2f3
* | | | | | | | | | Fix a typo in example documentation code for sqlite3_vtab_in_next().drh2023-02-07
| |_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | FossilOrigin-Name: a95dbfae6133cc7aac950c3e7ba55a29d80b1625c39479a7d1d10b0868ee2be4
* | | | | | | | | Fix the build after the previous changedrh2023-02-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: aea3b6f6515bc3b7e7205b7d17d99cb1fc68030eb929d8adbe25f065668c9c95
* | | | | | | | | Remove the long obsolete "client/server" mode tests.drh2023-02-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: 08e3114caec0633fc54f8febb7f4732b46a1f47508bbca0a6a2bff02591254d5
* | | | | | | | | Do not use a Bloom filter if any outer loop lacks STAT1 data, since withoutdrh2023-02-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | STAT1 data, the query planner cannot make an accurate determination of whether or not a Bloom filter will be useful. This fixes the problem reported by [forum:/forumpost/56de336385|forum post 56de336385]. FossilOrigin-Name: e6ab96bd0b9efc51fd703bf7e92b079943ad9a3b92183d434adc11fb7d238afb
* | | | | | | | | Restore a test for pBt NULL that was removed by [12a14711afa6cddb] but turneddrh2023-02-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | out to be necessary, as dbsqlfuzz quickly showed us. Test case added to TH3. FossilOrigin-Name: 647c89dd2f90da1605e6fc01ecc8c1367c12c06b3a972ed682a69e85bf1d77e9
* | | | | | | | | Changes to the sqlite_dbpage virtual table to tag or remove unreachabledrh2023-02-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | branches. FossilOrigin-Name: 12a14711afa6cddbf64d5307fd239fc597027d4356a431ad75836025f4bad83c
* | | | | | | | | Add ALWAYS() and NEVER() macros to unreachable branchs in sqlite_dbpage.drh2023-02-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: db875cd6be3b6e0032325cf42e6846eb41a7f099eb4561baf402d914446b052d
* | | | | | | | | Remove an ALWAYS() that can be false in some very rare cases.drh2023-02-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dbsqlfuzz 2274a23c85a93b870f7eb12fe686073da01abc33 FossilOrigin-Name: a4eb0b0d837291590958a5f292f41e80e0f722668a060aebfed5ea36ea176332
* | | | | | | | | Updates to the testrunner.tcl script so that uses a separate sub-process for ↵dan2023-02-04
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | each test. And so that it runs the release test procedure currently handled by wapptest.tcl. FossilOrigin-Name: 4c3c587500ac5a3758008f0acb9432bd3bc6f0f31bacd5615f46280e55842982
| * | | | | | | | | Avoid using Tcl command [clock] in testrunner.tcl.dan2023-02-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: b2faf9289f6fbbcd4491e1b063da731b35aeed9ff1fc97f64798e99cac847b4a
* | | | | | | | | | Better error message when trying to do an INSERT on an sqlite_dbpage virtualdrh2023-02-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | table. FossilOrigin-Name: a98e4908dabc8f45f7859a26bd1d0c04de34ec68c1367c2cdd9b0242e08b938f
* | | | | | | | | | Attempt to fix harmless compiler warnings that reportedly appear in clang 15.drh2023-02-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: c045d76b908a8c90d22511df7884e78d452b250db9ba70d4cb0935048a3c3ac4
* | | | | | | | | | Improved and simplified logic for resolving the various aliases of the schemadrh2023-02-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | table. FossilOrigin-Name: 5c19491c36b9e2128430e4f153bdef48c3f7b6541d44f36044e8fc2921ecc830
* | | | | | | | | | Resolve all possible aliases and variations of the schema table names.drh2023-02-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: e7a0112b235d97cb68c92b967bf2218b90258c243ec2b638aaac142392873126
* | | | | | | | | | Adjustments of assert() statement in STAT4 in order to give 100% MC/DC.drh2023-02-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: 55a26c67ed4a3a937e009f60da2cd951d6f090b0bea748037db5c1680e5ff3b4
* | | | | | | | | | New assert() statements to verify that sqlite3DeleteIndexSamples() is alwaysdrh2023-02-01
|/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | called with non-NULL parameters. FossilOrigin-Name: 92c71fdd7167a7db055ef0aec522bbba8c7b4b37658efda10dac44699921b57f
* | | | | | | | | Just because a CTE is used more than once, does not mean it should bedrh2023-02-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tagged with M10d_Yes and thereby prohibited from participating in the query flattening optimization. See [forum:/forumpost/1d571c02963355ed|forum thread 1d571c02963]. FossilOrigin-Name: 66f29c403d28630bfaea9124bd63ee4a047b1fe4a7e27dc5d10d67d1601b15e0
* | | | | | | | | Fix a comment related to PENDING locks in os_unix.c. No code changes.dan2023-02-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: 6b3546c871fe78a4e550e0144b48ac98325787cc8b192a9e7f5f2a2ffa57f76d
* | | | | | | | | Fix a race condition during hot-journal rollback that could theoretically ↵dan2023-01-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cause spurious corruption errors. FossilOrigin-Name: 20ea53ddf590a9dd19501fabd2bfdb9c10b5eb265cd2995bdb335769c936c763
* | | | | | | | | Additional tweaks to the enhancement at [609fbb94b8f01d67] to further reducedrh2023-01-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the cost estimate for constructing an automatic index on an ephemeral table, in order to resolve the performance problem described by [forum:/forumpost/1d571c0296|forum post 1d571c0296]. FossilOrigin-Name: bf1aae7a8c7f2c74681aa29baa35259d10ce6a1737d2607def6bf27fed592131
* | | | | | | | | Do not assume that sub-queries that contain window functions are uncorrelated.dan2023-01-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: f27804484df57de76be9dbd1a9e5869916617684ee407101c978df7da30b34ac
* | | | | | | | | Show more details about the SrcItem.fg field in tree-trace output.drh2023-01-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: 3d05dddd0bc826a73a8cecd6b116168082fb46b6e4868d03438c0a5a546d2f97
* | | | | | | | | Fix a problem causing "PRAGMA quick_check" to return spurious corruption ↵dan2023-01-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | errors for a WITHOUT ROWID for which all columns are either virtual or part of the primary key, and for which the order of the columns in the primary key definition is different from the order in the table. FossilOrigin-Name: a7530f897127f35a212db6557edbcbbb286cc0e094754c1c1b74ce8dbf724470
* | | | | | | | | Add an assert() to help static analyzers.drh2023-01-27
| |_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | FossilOrigin-Name: e446c8b4aa2ffe075f9c289c771d62a414661c3ffe6abae5649c50af8e32fab6
* | | | | | | | Improved fix to allow sqlite3_vtab_in_first() to reliably return SQLITE_ERROR.drh2023-01-26
| | | | | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: b25eec1c13f6a8c7ba993e5a55e26798f3b67a8b9571998459671cb570cbdfb4
* | | | | | | | Defer calling the destructor for the user data on a module until after thedrh2023-01-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | module has disconnected. [forum:/forumpost/b68391eb71fdff73|Forum post b68391eb71fdff73]. FossilOrigin-Name: 1ab122289fe6ac4cb3b0c47d17ac22627fcdfed80c941a57e6e6cc4d9dbd9273
* | | | | | | | Enhance the sqlite3_vtab_in_first() and sqlite3_vtab_in_next() interfaces sodrh2023-01-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | that they reliably return SQLITE_ERROR (and not SQLITE_MISUSE) if they are invoked on a parameter that did not have multi-value IN processing enabled via a prior call to sqlite3_vtab_in(). See [forum:/forumpost/a823d4a3d5f73def|forum thread a823d4a3d5f73def]. FossilOrigin-Name: 144326dc171025dc8b5a77bebd8de3c19d5244ab807f5aa41f95313a25b880bc
* | | | | | | | Add scalar SQL function unhex().dan2023-01-24
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | FossilOrigin-Name: 890e9629a7480138c9c1d3acc2d1e7b3c05e0d156e5c5fba428bc1aeb790fbfb
| * | | | | | | | Update unhex() to allow a second argument, specifying a set of characters ↵dan2023-01-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | that are permitted to appear between pairs of hexadecimal digits. FossilOrigin-Name: 66c8562690b19f17972589611810e1dccad3a48777acb05208289c1f77076f71
| * | | | | | | | Add experimental user function unhex().dan2023-01-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: dbe424b5db33ce2c7562dfb44daf2969cf3074234cc891eb9b8d0d907faf6a78
* | | | | | | | | Suppress a harmless compiler warning.drh2023-01-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [forum:forumpost/e3f72e9291189925|Forum post e3f72e9291189925]. The code was legal and correct. The revised code is actually less clear in its intent. But at least now there will (hopefully) be no warning. FossilOrigin-Name: 48bb7c88787bf5de1d70cf3cc81ada38c6c02e476dbdff12c8676c6d5ee19aed
* | | | | | | | | Due to a coding error, check-in [8efd61e8518594e3] did not actually usedrh2023-01-23
|/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | just read transactions if the operation is read-only and the SQLITE_MAX_ATTACHED macro is set to 31 or more. This was due to a misuse of the writeMask field of Parse, pointed out by [forum:/forumpost/aa173c18d5|forum post aa173c18d5]. FossilOrigin-Name: 8760566893b64325874c7ec0aff8014026ce525e7fff1489027d2ce698495e76
* | | | | | | / Give CLI .version a place in .help output.larrybr2023-01-22
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | FossilOrigin-Name: 5f2dfdcc345453ee0a05311f6826d90b7c1d7b95fdaf77a0a8383923a8fc7213
* | | | | | | Fix a memory leak in the TCL test harness associated with carray.drh2023-01-21
| | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: 5a316f9fd94b73fc54ef94a1dab2f13bdd16c4fb13d2620b7c907d104d5b4d7a
* | | | | | | Fix harmless compiler warnings.drh2023-01-21
| | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: ded60f5b3431283d70eb8c41761c0fa9727021e6309d0df0ae3fb0a5274c1299
* | | | | | | Extend the carray extension to allow the use of BLOB values to be bounddrh2023-01-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | as an array of "struct iovec" objects. FossilOrigin-Name: e117a03ca6560e958884f277db827c51ae337a970c17143a0a5f9b150f52f87a
* | | | | | | Two branches associated with memdb are now always taken (I believe). Tagdrh2023-01-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | them with ALWAYS() to verify this. FossilOrigin-Name: 20b9b5aa4fa6136059cf1123f00d86cb7bd8fb0f0f86f971e9714f22725e60b5
* | | | | | | Ensure that the database encoding cannot be changed while there are ↵dan2023-01-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | statements running. And that the connection is left in a valid state after an obscure OOM within sqlite3_deserialize(). FossilOrigin-Name: a02da71f3a80dd8e817e89cdaa775c95e38c90d2471f8fec516bed086539e2c0
* | | | | | | The json_group_array(), json_group_object(), and fts5_source_id() functionsdrh2023-01-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | should all be deterministic and innocuous. FossilOrigin-Name: edcb83fa0d3c832d044b267d608fed31a2ac841b81c7c9406b2136ac43d61a1a
* | | | | | | Change an now unreachable testcase() into an assert().drh2023-01-17
| | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: 517b2c4c4ee9afc50e5457a6877e5af34358a6267d8dad669d25410c124866ac
* | | | | | | Fix harmless compiler warnings in the CLI.drh2023-01-17
| | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: 7cf282d307a23697b38f5fd4b46f13f63a9e6f7cc74ccd66297d88c00aa8f454
* | | | | | | Update virtual tables json_each and json_tree so that adding "ORDER BY ↵dan2023-01-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rowid" to a query does not require an external sort. FossilOrigin-Name: ce18f0ed684824e67ed6c09acab8e735fef2c52b2ed32270dee1a2a67802c59b
* | | | | | | Cause .clone to not trip over sequence table as reported at ↵larrybr2023-01-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [forum:/forumpost/71ff9e6c4c|forum post 71ff9e6c4c]. FossilOrigin-Name: b44d04f7b051d807a81152a6e4f15a765f7b9ed1f01b48b40dc5420c11e0c251
* | | | | | | In the CLI, create our own private version of strncpy() to work arounddrh2023-01-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | false-positive compiler warnings from Alpine Linux. FossilOrigin-Name: 83f21285fe86430a66ce6841606e3ad7c27da52ac75a034c6a00c7a9fdb9791d
* | | | | | | Doc-only fix, per [forum:/forumpost/0cfaf6876b|forum post 0cfaf6876b]larrybr2023-01-14
| | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: eac135fd6a5dd220a0f7c1b61f987bbd801faabdb76846c4417fef0dd03fcb87
* | | | | | | In expression nodes of type REGISTER with sub-type COLUMN, ensure that thedrh2023-01-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | iColumn field is set correctly, as otherwise the "IS NULL" operator might be incorrectly optimized. Fix for the problem described by [forum:/forumpost/d010a26798915b53|forum post d010a26798915b53]. FossilOrigin-Name: 0819a1869a39d54a405259ea323365506a182962a02affdef16a03446005da64
* | | | | | | Update documentation for sqlite3_progress_handler().drh2023-01-13
| | | | | | | | | | | | | | | | | | | | | FossilOrigin-Name: 41b4c407b7f6968f4493fb9a0b220c55a6f6a353a8e6cb054efd3eb01bdd11dc