aboutsummaryrefslogtreecommitdiff
path: root/src/btree.c
Commit message (Collapse)AuthorAge
...
* Simplify the sqlite3BtreeInsert() interface by gathering the five argumentsdrh2016-05-21
| | | | | | describing the content to be inserted into the new BtreePayload structure, and thus reducing the number of parameters from eight to four. FossilOrigin-Name: 55f348cdd24c7812ea4b63345514764b69f64dc8
* Remove some unused legacy code from the btree insert logic.drh2016-05-21
| | | FossilOrigin-Name: 2ce1166717ac3c0cec37b2f6d70d8359fbaefc71
* Yet another minor size reduction and performance increase in the b-treedrh2016-05-21
| | | | | insert logic. FossilOrigin-Name: 1dbaf7a119edc5150a5d4be1b72f652a574e5bc5
* Small size reduction and performance increase in the sqlite3BtreeInsert()drh2016-05-21
| | | | | logic. FossilOrigin-Name: 656aa1ecf5129ae43c56a990e95038b5d8cbdcee
* Fixes to requirements marks. No changes to code.drh2016-05-09
| | | FossilOrigin-Name: 79ecd0ef20c12198e950a730871444a980a0f1b2
* Fix the sqlite3BtreeDelete() routine so that it preserves the correctdrh2016-04-09
| | | | | | key even when the row being deleted is not on a leaf page. Fix for ticket [a306e56ff68b8fa56] FossilOrigin-Name: ca2ef8a86cf806cbbcc64db03251b1df5b2c5501
* Use SQLITE_WITHIN() for pointer range comparisons in some testing code.drh2016-04-05
| | | FossilOrigin-Name: 7cacf4e954c8de5af5efb56d8271a5ac1edc1c04
* Do not allow pointer arithmetic to move a pointer across a memory allocationdrh2016-04-05
| | | | | boundary. FossilOrigin-Name: 85b979319bcb8ec301ae39b36ad60348e4515be7
* Fix a harmless compiler warning.drh2016-03-22
| | | FossilOrigin-Name: 5ace870d3ac3e9eb29cb4602c9036873adbcb99d
* Create the "uptr" typedef (the same as uintptr_t when available) and use itdrh2016-03-22
| | | | | to cast pointers before comparison. FossilOrigin-Name: 2484cc0c3ffc8834a155f89af1581bd07d453a90
* Avoid the possibility of integer overflow on a pointer comparison test fordrh2016-03-22
| | | | | corruption in the database file. FossilOrigin-Name: ff1b1ac3313ba9d70414e928ef3dd82913298a1a
* Update a comment in btree.c to account for WITHOUT ROWID tables. No codedrh2016-03-09
| | | | | changes. FossilOrigin-Name: fa20dcb03b92be3bb32f8e3d6f88681ace3f6c84
* Make the SQLITE_DEFAULT_SYNCHRONOUS and SQLITE_DEFAULT_WAL_SYNCHRONOUSdrh2016-03-08
| | | | | values zero-based to agree with PRAGMA synchronous. FossilOrigin-Name: 592d2104361500e5002783ba329a2609389c57b9
* If SQLITE_DEFAULT_WAL_SYNCHRONOUS is not the same value asdrh2016-03-08
| | | | | | | | SQLITE_DEFAULT_SYNCHRONOUS and the application has not run "PRAGMA synchronous", then set synchronous to the SQLITE_DEFAULT_WAL_SYNCHRONOUS setting when entering WAL mode for the first time. FossilOrigin-Name: 5791407b523abd24e832fc2361b3e9f01ee2f36a
* Remove code not needed now that synchronous=OFF database files no longerdrh2016-02-22
| | | | | trigger the use of a master journal. FossilOrigin-Name: aa9f4c622af191edbeb6a535942944f8c91f5c37
* Enhance ability to debug out-of-memory errors.mistachkin2016-02-13
| | | FossilOrigin-Name: 6a9c4a3ebfb7cc0738ef6634440ccab44a21ff28
* Add a utility program that looks for assert(), NEVER(), ALWAYS(), anddrh2016-02-06
| | | | | | testcase() macros that have side-effects, and reports errors when they are found. Also fix a bug that this utility detected as it was being tested. FossilOrigin-Name: b0b4624fc5d53bb0cc9fae7dad51984837d946ac
* Remove unnecessary sets of db->mallocFailed.drh2016-02-04
| | | FossilOrigin-Name: b787165b25a240fd5b4a5c7f73b395f30213a1d7
* Fix an assert() that might fail on a corrupt database.drh2016-02-01
| | | FossilOrigin-Name: 22eaced7274764eaf7ab4b5fc52cc2fcfc285708
* Add the BTREE_FORDELETE and BTREE_AUXDELETE flags to the b-tree layer interfacedrh2016-01-30
|\ | | | | | | | | and use them. Add assert() statement to verify that they are correct. FossilOrigin-Name: 85c467041c9378cae3038756da815e9117ee8c7d
| * Change the name of the BTREE_IDXDELETE flag to BTREE_AUXDELETE, to betterdrh2016-01-27
| | | | | | | | | | reflect its purpose. FossilOrigin-Name: 1d3bf6bebdda9f96734bc139601e9b05344ea0b4
| * Add a new hint bit on the flags parameter of sqlite3BtreeDelete(). The newdrh2016-01-21
| | | | | | | | | | | | BTREE_IDXDELETE bit indicates that the call is to delete an index entry corresponding to a table row that has already been deleted. FossilOrigin-Name: ac2cbadd8000947c097da5b00c00090fe58fdcff
* | Simplification and size reduction to the printf logic. Remove the bFlagsdrh2016-01-30
|/ | | | | | parameter from sqlite3VXPrintf() and sqlite3XPrintf(). Use sqlite3XPrintf() instead of sqlite3_snprintf() for rendering P4 values in EXPLAIN output. FossilOrigin-Name: 0bdb41c45aa1cc8e5c136aaa6605d54b401483bd
* Very small simplification to the btree balancer.drh2016-01-20
| | | FossilOrigin-Name: f421adf54c9db91ba6ca64a8ba3751680e47924a
* Work toward making the schema parsing logic simplier and more compact.drh2016-01-15
| | | FossilOrigin-Name: c52ca2c0662bb30ab34574f933429512655b19ff
* Remove an unused field from the MemPage object.drh2016-01-12
| | | FossilOrigin-Name: 5fc0a4c1f353c4c06fcbc4bce8bbe1897ef49eee
* Fix the build for SQLITE_OMIT_SHARED_CACHE, which was broken, possiblydrh2016-01-08
| | | | | by check-in [2d96aeba]. FossilOrigin-Name: 3392f8fa2ddf2c10ffe91ddd92470040c909b36d
* Add some assert() statements to verify, where possible, that BtShared.db is ↵dan2016-01-07
| | | | | set correctly. FossilOrigin-Name: 359277e0e5338f6d7743d58cf99e1c934a8460d5
* Have the vdbe layer call sqlite3BtreeEnter() on all b-trees in use from ↵dan2016-01-07
| | | | | within sqlite3VdbeExec() even in SQLITE_THREADSAFE=0 builds. This ensures that BtShared.db is set correctly. FossilOrigin-Name: d0214602d44d6b84b7463d530720e2560aee6edf
* Fix an assert() that might be false for a corrupt database.drh2016-01-01
| | | FossilOrigin-Name: 68360cd2211b7ab25dd4ca55a2e82e31f51f2976
* Reduce the size of the CellInfo object from 32 to 24 bytes on 64-bit machines.drh2015-12-18
| | | FossilOrigin-Name: 7850715406458a61cff9eba5ad915f61f6d99482
* Make greater use of the SQLITE_WITHIN macro.drh2015-12-16
| | | FossilOrigin-Name: f2fc3aede55c8fa0351697f9f5ce4e544334c9af
* Move pointer range comparisons into a macro, where they can be dealt withdrh2015-12-10
| | | | | in a more portable way. FossilOrigin-Name: ad3124c834b080aaaf24934d6f08b3601ac3ae53
* Changes to avoid undefined behavior in memset() and memcpy() and in thedrh2015-12-08
| | | | | | comparisons of pointers from different allocations. All problems are found by analysis tools - none have been seen in the wild. FossilOrigin-Name: 901d0b8f3b72e96ffa8e9436993a12980f5ebd51
* First attempt at enhancing the "PRAGMA cache_spill" statement to accept adrh2015-11-12
| | | | | cache threashold size. FossilOrigin-Name: 549d42be0dac87dc04c3eeccfdc60615c3a6ad3f
* Improvements and simplifications to the equality seek logic. Tests aredrh2015-11-05
| | | | | adjusted so that they all pass now. FossilOrigin-Name: 997ce6c90b454c03cc2ef6934752ee8dd2e520e3
* Remove #pragma that was used to work around an obsolete issue with MSVC 2012.mistachkin2015-11-05
| | | FossilOrigin-Name: b9b22fae69000ca506656f9cf847e713c6304b75
* Performance improvements in the getAndInitPage() routine of btree.c.drh2015-11-04
| | | FossilOrigin-Name: 2aa50f6f2029e3c91a4cb91224df8ec1194f215e
* Rename the sqlite3PagerAcquire() function to sqlite3PagerGet(). The formerdrh2015-11-04
| | | | | macro called sqlite3PagerGet() has been removed. FossilOrigin-Name: 708253be34084b89987efe955c34557516171a3a
* Split out sqlite3BtreeCursorHintFlags() from sqlite3BtreeCursorHint() drh2015-10-27
| | | | | the interface for improved performance. FossilOrigin-Name: b3ec9a0d62c5543e91d4be2cd634ec4a3d6dca11
* Merge the BTREE_FORDELETE enhancement with this branch.dan2015-10-26
|\ | | | | FossilOrigin-Name: 20da0849ce910ceb445954dfc5f985acf9a02695
| * Modifications to pass a flag to internal routine sqlite3BtreeCursor() when a ↵dan2015-10-22
| | | | | | | | | | cursor that is used solely for deleting b-tree entries, or for obtaining the components of keys to delete from other b-trees, is opened. FossilOrigin-Name: cdc92919e600007cae5eb61223684f48a65babc0
* | Merge in all trunk changes prior to the BTREE_FORDELETE enhancement.drh2015-10-26
|\| | | | | FossilOrigin-Name: 53d5a4add6b60722ad77daf98b6b8983b081e16a
| * Fix a comment in expr.c and add a CORRUPT_DB to an assert() in btree.c.drh2015-10-16
| | | | | | FossilOrigin-Name: 0df371d1a51c2028aefa4c704707773750317689
* | Merge in all the 3.9.0 updates from trunk.drh2015-10-14
|\| | | | | FossilOrigin-Name: 29444149342fc6b1ea8cd34c2c8e1fcb06eaa7ed
| * Work around a "security feature" bug in memcpy() on OpenBSD.drh2015-10-10
| | | | | | FossilOrigin-Name: fab6f09044d033dd09ed8a22e06bc6a7851bbabf
| * Fix an assert() in btree.c that is only true for non-corrupt databases.drh2015-09-30
| | | | | | FossilOrigin-Name: 29f7227ff127202c53fe7c3b6558b3c101b0a7bc
| * Clear the BTCF_ValidNKey flag when putting a cursor into REQUIRESEEK state. ↵dan2015-09-30
| | | | | | | | | | Fix for [1b266395]. FossilOrigin-Name: a6d5e4e8693bea3739c35fe9769ac9abfb9ed056
* | Merge trunk changes into the cursor-hints branch.drh2015-09-24
|\| | | | | FossilOrigin-Name: fbe637620fb7f2c9395c9ddac77d26746d6d4178
| * Fix an overly-strict assert() in the btree logic.drh2015-09-20
| | | | | | FossilOrigin-Name: 825ce3201df21c6b9d5c57dcc6726c306df05220