aboutsummaryrefslogtreecommitdiff
path: root/src/vdbeaux.c
Commit message (Collapse)AuthorAge
...
| * Use sqlite3DbFreeNN() instead of sqlite3DbFree() in a few hot spots fordrh2022-03-28
| | | | | | | | | | better performance. FossilOrigin-Name: b12de0ecc78a4f654c8e7b2b17cc2201688808a4f516908e9563a216677e655c
| * Foreign key constraint failures should return SQLITE_CONSTRAINT_FOREIGNKEYdrh2022-03-14
| | | | | | | | | | | | even if there is a RETURNING clause. See [forum:/forumpost/e6be6e82c86aa59b|forum thread e6be6e82c86aa59b]. FossilOrigin-Name: 3f9887d4a58cbfdbabf2a37e975c81ba660f373414058920b379f3a81e6e1c2c
| * Fix compiler warnings.drh2022-03-08
| | | | | | FossilOrigin-Name: 5e30c6ea707f9d381127e8b2bb59e0b39bc00997da2c14d32a0e302d0121203b
| * Faster version of sqlite3VdbeMemRelease().drh2022-03-02
| | | | | | FossilOrigin-Name: 86c5fa2f301e4bdb538099f654b70b6ba0e214778cba2c53c53844e5d7ca129f
| * Reinstate the releaseMemArray() performance optimization ofdrh2022-03-02
| | | | | | | | | | [bb520293d8c11518] with corrections. FossilOrigin-Name: 1291080d118c678072289a2e57a56b73657e9256ae47eafa7853716c8d47392f
| * The performance optimizations at [bb520293d8c11518] is not quite right,drh2022-03-02
| | | | | | | | | | so it has to be backed out. FossilOrigin-Name: 15f73b121cacf77ada02bfe434f9caa1175ac482d007156cfb0864e4221490d1
| * The performance increase in the previous check-in of this branch was due todrh2022-02-28
| | | | | | | | | | | | | | the revised loop in initMemArray() and reordering fields of Mem - not the call the memcpy(). Changing the code to avoid memcpy() results in an even better gain, and code that is far less dodgy. FossilOrigin-Name: d74aa979530d4236f5900d2ef998b27065d352d7c18bcd822e5c8f1041a1a81c
| * An optimization to initMemArray() saves almost 500K cycles. But it seems adrh2022-02-28
| | | | | | | | | | | | little dodgy. I want to think about this more before merging to trunk. Perhaps there is a cleaner way to accomplish the same. FossilOrigin-Name: 7fefd8676110a53e6c98a697e2dbf820740fe602a1e83b6caa8d099c41a15d80
| * Avoid unnecessary deinitialization of the Mem.flags field.drh2022-02-28
| | | | | | FossilOrigin-Name: bb520293d8c11518ba153b986662f081ebfd781d38eb624c509605fa9148f6e9
| * Cache values of UnpackedRecord.aMem[0] into new fields of UnpackedRecord.drh2022-02-27
| | | | | | | | | | This avoids extra indirections and saves about 750K cycles. FossilOrigin-Name: 7cf2d1f0396362aae7b93da75c2036d52ba86acba1cc90abca560bcf0314a22f
| * Bypass a single branch in vdbeRecordCompareString() in the common case, fordrh2022-02-27
| | | | | | | | | | a performance increase of over 600K CPU cycles. FossilOrigin-Name: 36f0f07e505dfb38c61d3b4d5b947013c8793e6796fe690e53864479b9276abb
| * Revise the initialization processing for OP_Column to make it aboutdrh2022-02-25
| | | | | | | | | | 1.8 million cycles faster. FossilOrigin-Name: 3b7259ebd5b9b1f75577521c4d0d96f5503d302a513b20a0b17dbe8c3823dd33
| * Remove unused P4 types on the Opcode object. Saves a few bytes of codedrh2022-02-25
| | | | | | | | | | space and simplifies the code. FossilOrigin-Name: aca538435939e6146f9a42e72e3a65030bbc5f646a0bbc7684e43688a0339888
| * Change the OP_Next and OP_Prev opcodes so that they invokedrh2022-02-24
| | | | | | | | | | | | sqlite3BtreeNext() and sqlite3BtreePrevious() directly rather than through a function pointer, for improved performance and a decrease in code size. FossilOrigin-Name: 9d13cbbef3cf64f281d3e100f23f1b2ed6e8d65920c7517a84e1e4f964ceff2e
| * Disable the sqlite3_error_offset() when the error occurs in a trigger ordrh2022-02-07
| | | | | | | | | | view or some other bit of text that is not part of the original statement. FossilOrigin-Name: 0e909e34fa74e7b9b7954e4ed4c39dd293c1d413b58fda03607faab74aa382ad
| * Remove many redundant checks for sqlite3.mallocFailed now that any OOM shoulddrh2022-01-24
| | | | | | | | | | cause Parse.nErr to be non-zero. FossilOrigin-Name: 1f7fa46126ea33ed30e93186aff3df51068aeb4be6f79a102bfe8c4e44941d71
| * Small performance and size optimization to allocateCursor().drh2022-01-03
| | | | | | FossilOrigin-Name: 23f042669aff535afa6ee9de367656848d01e90a1c9dab9359fa938a615b4195
| * Fix harmless compiler warnings seen with MSVC.mistachkin2021-12-31
| | | | | | FossilOrigin-Name: a9bfb621091b6d92d1caeb69134d3809d9e0b43fe764608c5995db277ac785be
| * Omit the return value from sqlite3VdbeSerialGet() for a size reductiondrh2021-12-14
| | | | | | | | | | and performance improvement. FossilOrigin-Name: 788e79f881d443fc1b3a213a7ba4f19bfd245e96c15bb21fcb6bffd92c4320b8
| * Strengthen the sticky-CORRUPT idea of check-in [3feb0f1c3840904d] bydrh2021-11-15
| | | | | | | | | | | | automatically changing the first COMMIT after an SQLITE_CORRUPT error into a ROLLBACK. FossilOrigin-Name: bd66ab8a1bc3c43a57c7caff5f54545b0feb0177f1f51492f30d308c123c43ba
| * Small performance optimization in sqlite3VdbeHalt().drh2021-11-15
| | | | | | FossilOrigin-Name: 9e1ecf438cb01d3d76950bcce1b3e4df29bedbb8176c8cede27e66f8e53e2098
| * New assert() statements to help prove correct usage of VdbeCursor objects.drh2021-11-11
| | | | | | FossilOrigin-Name: 7cee62f77a9e7c3cf886f136e75a93c3bbbb88e48b66035883bea5503d9fc03c
| * Enabled the testcase() macros under SQLITE_DEBUG.drh2021-10-20
| | | | | | FossilOrigin-Name: 0ae8dd132db8331ca9cc42ad511066924f9d3a1d158ecdb630cebc41b6bd2493
| * Protect all accesses to the FuncDef.u and Expr.u unions using nearbydrh2021-10-07
| | | | | | | | | | assert()s or branches. FossilOrigin-Name: 9af863f065e0bef491c2ab7525194505f9516f4e6dfc789d2e3a9d2c2438533a
| * Fix harmless static-analyzer warnings.drh2021-10-04
| | | | | | FossilOrigin-Name: 32f33f356931242b59c01b5df7e180941231e3d9c91577ad33aa4a01e9d59092
| * Fix harmless static analyzer warnings.drh2021-10-04
| | | | | | FossilOrigin-Name: 1ebcde72e2046dffaa408d2a5a4a5bbf35fdf4b096e0e088dcffd9360effdaa7
* | Fix a case where the system error was not being set correctly.dan2021-09-11
|/ | | FossilOrigin-Name: 13a524b351a0812214b223aa4e0a9d778ae7a75cf9875da1147a09c5cb76b9fe
* Fix comments associated with sqlite3.eOpenState. No logic changes.drh2021-08-09
| | | FossilOrigin-Name: fd8f498f5d5f7fcb78dd8f6f9323d20b9e2904b249ec735477a0f03cb47b8561
* Complete warning-free build on old PPC iBook.drh2021-07-29
| | | FossilOrigin-Name: ef2a0850394b1c6c1fc84b26694a3712ae1e50d52bb78fea2ec40148a7d833de
* More precision in comparing integers and floating point values whiledrh2021-07-19
| | | | | | processing the integer primary key for OP_SeekGE and similar. [forum:/forumpost/2bdb86a068|Forum post 2bdb86a068]. FossilOrigin-Name: f9c6426de3b413ff8fcf04a00931ca5f123f996c572b35181af114afa8d811d7
* Add the sqlite3_changes64() and sqlite3_total_changes64() API functions.dan2021-06-22
| | | FossilOrigin-Name: 48fdec22c966003f5577e0bf52906ef90df11e4e395723a646304e67ed976f37
* Split the sqlite3BtreeMovetoUnpacked() routine into two separate routinesdrh2021-06-19
| | | | | | | sqlite3BtreeTableMoveto() and sqlite3BtreeIndexMoveto(), since we usually know the type of btree in advance. This results in less branching and better performance. FossilOrigin-Name: 3b0d34e5e5f9a16c3397e4551f3b534729b1b375770f05f6ed5847818b1f4c0b
* Add the experimental sqlite3session_changeset_size() API.dan2021-04-21
| | | FossilOrigin-Name: b5564a6fd54875db1de884fdc0e5eeabcd6aa5595ad03a8a60843503e830a2d8
* Omit the SQLITE_STOREP2 and SQLITE_KEEPNULL options from the comparisondrh2021-03-29
| | | | | | | opcodes, allowing them to run faster. This required refactoring the vector comparison logic, which in turn required changing OP_ElseNotEq into OP_ElseEq. FossilOrigin-Name: 380b46054b6a9b67e57357815e8e94057253fa3cce838ae76e5d5031c6bd26b2
* Fix the OP_OpenDup opcode so that it is able to duplicate a cursor thatdrh2021-03-18
|\ | | | | | | | | | | was itself opened by OP_OpenDup. Add additional verification of ephemeral tables. Fix for ticket [bb8a9fd4a9b7fce5]. FossilOrigin-Name: bcbe5308f3a3b94f965b0f5627cb29cce2e09343b86d757e2de889f7773576e7
| * Automatically close ephemeral b-trees when their last cursor is closed.dan2021-03-18
| | | | | | FossilOrigin-Name: 39b5af18c0580c8e92516d410f8c465bfec31b2d0be9df1cfd6a1d1a19b4fc14
* | New assert statements associated with Ephemeral cursors in the bytecode engine.drh2021-03-18
|/ | | FossilOrigin-Name: a8ce73e2573b271d5d45838802ed1905ce5e18d5fafe0078700e79fab85457e2
* Fix various issues with the changes on this branch. Add test cases for the same.dan2021-02-17
| | | FossilOrigin-Name: 10538ec6fc1642dfc2ca6cef06ce6cb9e124847b421ccf01f5842064fad379ab
* Remove dead code. Fix RETURNING for INSERT into a virtual table.drh2021-02-04
| | | FossilOrigin-Name: dbfa38699c87ab4bf390666e411dda8d375c7b53b9b4fb131adacbf575867a72
* Change the name of Vdbe.magic to Vdbe.iVdbeMagic to disambiguate withdrh2021-02-03
| | | | | sqlite3.magic. FossilOrigin-Name: 6b29e549bb34933bfd0758e31085e65dcc0f75446c478fc775d96cf01c22cf43
* Test cases added. RETURNING works with UPSERT as does PG.drh2021-01-30
| | | FossilOrigin-Name: f5698f96e27c9b8669ec6016bb9920ef7580c4146eb61d628a0f62be5135ce94
* Working prototype.drh2021-01-29
| | | FossilOrigin-Name: b7ef4dc21f187ff4ff679e823782535188c3814aa6ce720b3a01c6d3ba4ef9f5
* Small size reduction and performance improvement in sqlite3VdbeMakeReady()drh2021-01-01
| | | | | | by linking the new prepared statement into the prepared statement list sooner rather than later. FossilOrigin-Name: 2996e800a02967f9d0e27c816cf0b7b581a25634f94abcf167f27b019e1515e5
* Syntactic changes to work around a bug in gcov 9.3.0. No changes to thedrh2020-11-23
| | | | | generated code for release builds. FossilOrigin-Name: 4f1573b146193e5d552981a9d1d11e50da4da4a843f790e4af1cf0cc19a0b020
* Always create a statement journal when using the OP_ParseSchema opcode,drh2020-10-26
| | | | | | as you never know when it might fail. See the discussion on [forum:/forumpost/daa2c728cc|forum post daa2c728cc]. FossilOrigin-Name: aa512f72cf5adfece6299db17bd122aeff0cdee2a25f83f60e2ebb05e99c9591
* Fix an assert() inside of debug-only code that can fail following an OOM.drh2020-10-20
| | | FossilOrigin-Name: 79da254f41a0d7d5fdc57f0cc40b3560bfcf7f79eed24a9fada1b6b4ca3adb5a
* Add support for the sqlite3_txn_state() interface.drh2020-08-25
| | | FossilOrigin-Name: ad195e3dd89d0f33b50070c18fb8f43c4eb24162515dfdd7c04d9e7d96b902a2
* Fix harmless compiler warnings that surface in newer versions of GCC.drh2020-08-10
| | | FossilOrigin-Name: 9d670a318381f219b467653f5f9539097808b887ae37291ce13be462dedfb18d
* Continuing work toward supporting unsigned 32-bit page numbers.drh2020-07-22
| | | FossilOrigin-Name: 9ce1710aad43cebe5ad50859c7685fb83e40cdd4a60913bd2b7e659bc59942fd
* Extend the refactoring into extensions. Clean up stray newlines.drh2020-06-19
| | | FossilOrigin-Name: 7a876209a678a34c198b54ceef9e3c041f128a14dc73357f6a57cadadaa6cf7b