aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
| * | | Revert an earlier change that considered passing a NULL callback to ↵dan2023-10-23
| | | | | | | | | | | | | | | | | | | | sqlite3_preupdate_hook() to be a misuse. This is required to clear the preupdate hook altogether. FossilOrigin-Name: 1bf6f0f3bb54933e4e6c730554144934f73a7fac87c97a916b275afd7379f397
| * | | Fix sqlite3ExprDup() alignment assertions so that they work on 32-bitdrh2023-10-23
| | | | | | | | | | | | | | | | | | | | platforms. FossilOrigin-Name: 143f95efc7114455b1920f1d2f9a867392740f608d1dda4306005f01238103f8
| * | | Add an SQLITE_OMIT_VIRTUALTABLE block around the new vtab code in "PRAGMA ↵dan2023-10-23
| | | | | | | | | | | | | | | | | | | | integrity_check". FossilOrigin-Name: ab99eb2b6c50f4f0bb42918b9bdda37e2ef9316bed07de18fa4bd373c49a8b00
| * | | Fix [f5c01676fd281e93] so that it always preserves 8-byte alignment for Exprdrh2023-10-22
| | | | | | | | | | | | | | | | | | | | objects. Add new assert() statement to verify this. FossilOrigin-Name: 678a9728dc6b88d8ef924c86603056df18204bc9a9c4776b9baffd7c5b10c5f2
| * | | Do not do backslash excape processing on any unquoted strings in dot-commandsdrh2023-10-22
| |/ / | | | | | | | | | | | | | | | | | | | | | in the CLI - on Windows or on posix-like systems either one. This brings the processing into alignment with the documentation, allows backslash-delimited filenames on Windows (as long as they are unquoted), and causes the CLI to work the same with regard to backslash escapes on both Windows and posix. FossilOrigin-Name: bce807cd4876327396b4ffcdf77f6931dd3bbd3314336eedf38bcf01d17af32c
| * | In the CLI, do not translate unquoted backslash escapes on dot-commandsdrh2023-10-21
| | | | | | | | | | | | | | | as that can damage filename arguments. FossilOrigin-Name: 4a0e2c6e17eefb296b7e91a13305b2260d6eb869a37bc5e5b79edaf3c19c810a
| * | Remove a branch that cannot affect the outcome from FkNoAction processing indrh2023-10-21
| | | | | | | | | | | | | | | fkey.c. Replace it with an assert(). FossilOrigin-Name: 023a9dbe83c0042e9d500e3ae6c0592a468982e4ac278d08c9201967506c7555
| * | Replace the patch at [5cb61c6788d7c017] with a better way to avoid failingdrh2023-10-21
| | | | | | | | | | | | | | | | | | PRAGMA integrity_check if a module implementation is not loaded, as the use of suppressErr can lead to problems. FossilOrigin-Name: be5737ee4f4f1d5f8b3126f6eb70210bf3d8b1cdaef51aae818eaaba43ccf722
| * | Extra comment on the implementation of SQLITE_TESTCTRL_FK_NO_ACTION,drh2023-10-21
| | | | | | | | | | | | | | | | | | warning about the need to reset the schema in order for the setting change to take full effect. FossilOrigin-Name: a50a333ae11ba5d92f432108308ac0bec9afb00f466b78c8d3f3aa7e2851ef21
| * | Fix a problem with SQLITE_CHANGESETAPPLY_FKNOACTION and the ↵dan2023-10-21
| | | | | | | | | | | | | | | foreign-key-trigger-cache. FossilOrigin-Name: 95304ec6c9654b4366dc58ae263270cb42861cb5017174936f816922b5eb61e6
| * | Add SQLITE_TESTCTRL_FK_NO_ACTION.drh2023-10-21
| | | | | | | | | FossilOrigin-Name: 563cf5f782cdddbbd7f727c65118edfd109aeb731c8aaf0d6ee5ee7030e61ea9
| * | Create the new string_agg(X,Y) aggregate function which is an alias fordrh2023-10-21
| |\ \ | | | | | | | | | | | | | | | | | | | | the two-argument group_concat(X,Y) function, for compatibility with SQL-Server and PostgreSQL. FossilOrigin-Name: a3b3df8a9e43f1880a904b76027db56ed504a84622831c96ba1962a19bbed762
| | * | Add string_agg(X,Y) as an alias for group_concat(X,Y), for compatibilitydrh2023-10-20
| | | | | | | | | | | | | | | | | | | | with SQLServer and PG. FossilOrigin-Name: b91c19bf2680f60d7826ab5d9e7902e2dc2a55d847bbea565a6489d47f2cc8f1
| * | | Avoid an unnecessary malloc() for the page usage bitmap when runningdrh2023-10-21
| |/ / | | | | | | | | | | | | a partial integrity_check. FossilOrigin-Name: 2904fcbeebba9189cebc48e58d12fc46f78ee23d8c4d46644606691f8cabb80c
| * | Fix PRAGMA integrity_check so that it does not raise an error if thedrh2023-10-20
| | | | | | | | | | | | | | | | | | schema contains a CREATE VIRTUAL TABLE that does not have its module loaded. FossilOrigin-Name: 5cb61c6788d7c0170b587e4667ee57d588c991a9901951762e33b97c6a135a82
| * | Omit some redundant calls to strlen() used to find the size ofdrh2023-10-20
| | | | | | | | | | | | | | | | | | | | | Expr.u.zToken in sqliteExprDup(). This inefficiency was seen while working on the previous check-in, and I thought it best to fix it while it was fresh in mind. FossilOrigin-Name: b7a84eff5dcdf5b2ff81331097cdc64d0c5d16a4ae224320f39b64541ec72dc7
| * | Improvements to the sqlite3ExprDup() logic for faster performance and betterdrh2023-10-20
| | | | | | | | | | | | | | | | | | | | | | | | run-time error detection. This check-in fixes the 5x oversize memory allocation bug from [f371e4c0f8ea73ae] as well as all other known issues that result from handing the ORDER BY clause of an aggregate function off of the pLeft pointer of the Expr object. FossilOrigin-Name: f5c01676fd281e938181b846dd2024d050f597dc6a7a91928beab9d8553dfdb5
| * | Add the SQLITE_CHANGESETAPPLY_FKNOACTION flag to sqlite3session.h, for ↵dan2023-10-20
| | | | | | | | | | | | | | | passing to sqlite3changeset_apply_v2() to cause all foreign key constraints to behave as if they were declared NO ACTION. FossilOrigin-Name: fc9f82ea084159eaf3dd1757b96d17d1201b00c4e06455a7dcd8067172b25f28
| * | Simplifications and optimizations to the Expr object duplication logic.drh2023-10-20
| | | | | | | | | | | | | | | | | | The 5x multiplier crutch from [f371e4c0f8ea73ae] is still present. More fixes are still needed. FossilOrigin-Name: 56142a78163b755f16afc05201f623a7a19d9a4b0620a67f7fa20d2a965a288d
| * | Use sqlite3ParserAddCleanup() instead of calling sqlite3ExprListDelete()drh2023-10-20
| | | | | | | | | | | | | | | | | | directly when disposing of an unused ORDER BY in an aggregate function, to avoid disrupting ALTER TABLE data structures. FossilOrigin-Name: d083e42086733ecd79aba8c268e020b01782bfe1cfa9684ce1c277af9c8bf92a
* | | Merge recent trunk enhancements into the jsonb branch.drh2023-10-19
|\| | | | | | | | FossilOrigin-Name: f47a8d0a207a8442a7f621b070ce9dd1d6013ce26bcf68165d20bb379bd478a0
| * | Remove a faulty assert() that was added just a few check-ins ago bydrh2023-10-19
| | | | | | | | | | | | | | | [8b6fffb552c30f9c]. FossilOrigin-Name: 18e7c826f08bce51719ef045daa60200b33790f2fe312c6853f9ef6c7e9d5030
| * | For TK_ORDER expression nodes to always be full-size.drh2023-10-19
| | | | | | | | | FossilOrigin-Name: a5c73b46f4772f214ffbfa31cb87dce82ebd690addabef539bd09def26b7744d
| * | Fix an adverse interaction between the new aggregate ORDER BY logic and thedrh2023-10-19
| | | | | | | | | | | | | | | expression compressor. FossilOrigin-Name: f371e4c0f8ea73aee9ea0645f396e3da20f1eb97be34c83de9d94c9cbb959934
| * | In the TreeView logic (used for debugging only) do not show unnecessary fieldsdrh2023-10-19
| | | | | | | | | | | | | | | of the Window object when a function has a FILTER. FossilOrigin-Name: d2c6b82c346dbf39e07f09d187e4a8216a56caa7df3dcfafc82e32f676a1db8a
| * | Simplify the Expr compression logic slightly by adding the new EP_FullSizedrh2023-10-19
| | | | | | | | | | | | | | | | | | property to expressions that are exceptions to the rule and should not be compressed. FossilOrigin-Name: d5ae82ec52eafed5e3dc8c9d99685f6523fce7d973ef7e8d9d75ed9b8912426a
| * | Simplification to sqlite3GetVarint32() to avoid confusing gcov.drh2023-10-19
| | | | | | | | | FossilOrigin-Name: 89862c51ad9715bedf5b029db484602e740f0db7404970d482ce503c1b9a0ed2
| * | Fix an error in a debugging routine used inside of testcase(). Does notdrh2023-10-19
| | | | | | | | | | | | | | | appear in production. Problem discovered by scan-build. FossilOrigin-Name: c6c9d7ed6dbc71b998aeaaa1bdeb36b1bb9b902f9d6088ad36db29f8ea8b7ef6
| * | New assert() statements to help verify correctness of the ORDER BY aggregatedrh2023-10-19
| | | | | | | | | | | | | | | code. FossilOrigin-Name: 8b6fffb552c30f9cbf7102c2e26a7b486c4c9edd9f494d803de7004db3018277
| * | Fix the sqlite3ReferencesSrcList() routine so that it recognizes columnsdrh2023-10-19
| | | | | | | | | | | | | | | | | | in the ORDER BY clause of an aggregate. Fixes a problem with [634286828dad873d] discoverd by dbsqlfuzz. FossilOrigin-Name: 3d26f1aaa4876f21f2c3abf13bbc37933c8f32471153e29019880cc9530cb011
| * | Merge the latest changes from trunk.drh2023-10-19
| |\ \ | | | | | | | | FossilOrigin-Name: d18bc400146812c8c5048af7eaf4a5371ddd80fc9ce895d253b6114b9eae7fc3
| | * | Fix a false-positive in run-time error checking.drh2023-10-19
| | | | | | | | | | | | FossilOrigin-Name: cd63eec0758960d9ee63d7b964ec62e2bd622f8c94a58bd9556046381ffa18d0
| * | | Changes for test coverage.drh2023-10-18
| | | | | | | | | | | | FossilOrigin-Name: ddfa09c6031afd4391a9888381bf09214cd542a826b431eeb1537a070f65c5f9
| * | | Deal with an OOM condition while processing aggregate ORDER BYs.drh2023-10-18
| | | | | | | | | | | | FossilOrigin-Name: b6d44427ec0184880ad14919667e2f526777c5085ffa636f6734cb5951a31225
| * | | Make sure all terms of the ORDER BY within an aggregate go through aggregatedrh2023-10-18
| | | | | | | | | | | | | | | | | | | | analysis. Do not attach an aggregate ORDER BY to a window function. FossilOrigin-Name: 16f3805514a741405f70e0ee3b5a6b67720bc75719372e82daa4136fe411ea2b
| * | | Basic test cases.drh2023-10-18
| | | | | | | | | | | | FossilOrigin-Name: 6cccf86c362631ada0c6cbaf661520648f8bbf7ae2b137b3d7d959647387e5c2
| * | | Fix one minor error in order to get all legacy tests to pass.drh2023-10-18
| | | | | | | | | | | | FossilOrigin-Name: 5a885139c433a143302ab43dc5aaac1fed9db61548b4ff7d4b19b3a6a46c8fcc
| * | | ORDER BY on aggregates seem to work, at least for simple smoke tests. Lotsdrh2023-10-18
| | | | | | | | | | | | | | | | | | | | more testing is needed though. Surely there are many bugs. FossilOrigin-Name: 64c12a835b6f1df8f2f5f4a41de083f6b3fc7f8030042c6aac0082382cd9cc4d
| * | | Basic error checking. Resolve symbols in the aggregate ORDER BY expressions.drh2023-10-18
| | | | | | | | | | | | FossilOrigin-Name: c83a53a574d312130d1238c05ffa449d8bed2535d5ef5b5d9cf02f894494cca4
| * | | Enhance the parser so that it can accept an ORDER BY clause on a functiondrh2023-10-18
| |/ / | | | | | | | | | | | | | | | invocation. For this incremental check-in, the ORDER BY clause is currently ignored. FossilOrigin-Name: 3a98ff24bf468ed42d410a9a12d9f9b2ca154c7babe99fd6bc6f7b0565e0d132
| * | Fix a harmless compiler warning about variant types for a pointer function.drh2023-10-17
| | | | | | | | | FossilOrigin-Name: 37ff0d8e7f91c32e8c53bb015280be47c66bf599281b640a8d3fd41335b55289
| * | Make a new branch in the SqlExec opcode reachable by tests.drh2023-10-17
| | | | | | | | | FossilOrigin-Name: 023ad470b68b7c09e159244493a6d0285d706efdecd8719a71e6885509d4750c
| * | Omit an unreachable branch when SQLITE_ENABLE_API_ARMOR is not defined.drh2023-10-17
| | | | | | | | | FossilOrigin-Name: 5f8b807b568f4f9ec65f1c924e0e1ac2f996f405e045204145ad7116be7580ee
| * | Changes to sqlite3IntFloatCompare() in an attempt to better measuredrh2023-10-17
| | | | | | | | | | | | | | | branch coverage in the face of aggressive compiler optimization. FossilOrigin-Name: 5781d043ffeccda03357ee530564987443dc1deb6111a4028701b4a98fdfe16d
| * | Fix a JSON bug introduced by the optimization of [df099ad713011b67] anddrh2023-10-17
| | | | | | | | | | | | | | | | | | | | | first appearing in 3.43.0. The problem occurs when doing a JSON_EXTRACT() on an array element that was added by JSON_SET() without first reparsing. Reported by [forum:/forumpost/fc0e3f1e2a|forum post fc0e3f1e2a]. FossilOrigin-Name: e5099c549a1d8959d4015516f090b8e6438e517a64b20651175bf5413d94fb58
| * | Enhance the documentation of sqlite3_deserialize() to make it clear thatdrh2023-10-17
| | | | | | | | | | | | | | | | | | the input database may not be in WAL mode. [forum:/forumpost/a7e272cee9ac469f|Forum post a7e272cee9ac469f] FossilOrigin-Name: e754789971e019647e7068f76dc6f9778675e4849fe51d8b25b39d3edf2379e5
| * | When an I/O or similar error occurs during a transaction withdrh2023-10-17
| | | | | | | | | | | | | | | | | | | | | journal_mode=MEMORY, attempt to rollback before closing the journal, as all rollback information is forgotten when a memory rollback journal is closed. FossilOrigin-Name: 1d67f75de259e5a26b751a50432822a268ebe367cda6510891ab81a15e5daa1c
| * | Harden API_ARMOR checks for sqlite3_stmt_scanstatus_v2().stephan2023-10-17
| | | | | | | | | FossilOrigin-Name: d3f38e813ba3b887e973af034713cd58fdfbe07da375b154accc7b5790cfaeda
| * | Change 3 instance of #if SQLITE_ENABLE_API_ARMOR to #ifdef for consistency ↵stephan2023-10-15
| | | | | | | | | | | | | | | with how it is normally used. FossilOrigin-Name: dd766eeb59fec71627dd8ad8f120875b96fda455c6401e5671e086b785e2b2bc
| * | Correct non-void return from sqlite3_preupdate_hook() when API_ARMOR is ↵stephan2023-10-15
| | | | | | | | | | | | | | | enabled. Broken by [6cb77503484e]. FossilOrigin-Name: 40f5906f48d3f1f44d54e5b271fe04e7082166e50e3ed250bb57a4760f112e8a