drh
ad7516c45f
Simplifications to pager.c in support of structural coverage testing. (CVS 6927)
...
FossilOrigin-Name: 7222ad2667b95d6021d9ae47f548b76b224f46aa
2009-07-24 16:32:00 +00:00
drh
b480dc2393
Simplifications and comment improvements in pager.c. (CVS 6926)
...
FossilOrigin-Name: 2d2f42ca0a24ed8b33f9ad560c76a6c1301c757b
2009-07-24 12:35:57 +00:00
drh
e39f2f9326
Simplifications and comment enhancements on btree.c. (CVS 6925)
...
FossilOrigin-Name: 5ba880dde8a219543ced6f792c7f9ecdcd8c1cbb
2009-07-23 01:43:59 +00:00
danielk1977
440637eb46
Modify mksqlite3c.tcl so that it inserts SQLITE_API macros into sqlite3.h. Ticket #3983 . (CVS 6924)
...
FossilOrigin-Name: 803ec79f3b05fdd680f9ab762685bbd50a087b9b
2009-07-22 18:24:53 +00:00
drh
5d1a872ab6
Simplifications to btree.c in support of coverage testing. (CVS 6923)
...
FossilOrigin-Name: 375fd6f9c54fa5aa8cfae30845c7bfc0ec49e8fa
2009-07-22 18:07:40 +00:00
danielk1977
e878a2f41b
Avoid leaving a suspect page in the page-cache if an error occurs during sqlite3PagerAcquire(). (CVS 6922)
...
FossilOrigin-Name: 2594f01c73301f9432be9d007a079a19a3d383f9
2009-07-22 16:41:15 +00:00
danielk1977
146ba99061
Fix a double-free that can occur after database corruption is detected. (CVS 6921)
...
FossilOrigin-Name: 5260e8b1048af2e00d49706466d9aded90c24ed2
2009-07-22 14:08:13 +00:00
drh
fe6212d549
Add a NEVER() macro around a pager.c conditional that must always be false
...
in the current implementation. (CVS 6920)
FossilOrigin-Name: 1e510d7fc5cc47fe2714dbb1ed3ea7e90acbff7b
2009-07-22 13:19:20 +00:00
danielk1977
257d9dc748
Changes to test code (only) to allow veryquick.test to run with OMIT_UTF16 builsd. Ticket #3985 . (CVS 6919)
...
FossilOrigin-Name: 7f3fc7f20f6dc205eedbe445e35f5071f1c01185
2009-07-22 07:27:56 +00:00
drh
6e2ef43197
Remove an ALWAYS() from a condition that can in fact be false under very
...
obscure circumstances. (CVS 6918)
FossilOrigin-Name: 38083228956ac05df45f44447ab39c64852239d2
2009-07-22 02:02:39 +00:00
drh
ea8ffdfec7
Further simplifications to btree.c, especially the sqlite3BtreeKey() and
...
sqlite3BtreeData() functions. New assert() statements added to verify
that these routines are called correctly. (CVS 6917)
FossilOrigin-Name: 96cfd079528501f6f1e658ce8a5a4e3bdea729be
2009-07-22 00:35:23 +00:00
danielk1977
89bc4bc645
Change getAndInitPage() (btree.c) to use only PagerAcquire(), not PagerLookup() and PagerAcquire(). (CVS 6916)
...
FossilOrigin-Name: 0b41dfc066b60ccabbf1a9ab4db41ebcb73a2799
2009-07-21 19:25:24 +00:00
drh
fe3313f9b1
Additional simplifications to btree.c in support of coverage testing. (CVS 6915)
...
FossilOrigin-Name: 716fccea58c4c217e68e04e0776e44ae39c11950
2009-07-21 19:02:20 +00:00
drh
fd5f02f0c6
Remove an assert() in btree.c which is no longer true due to changes in
...
the error reporting behavior of ptrmapPut(). (CVS 6914)
FossilOrigin-Name: 110998f18a7ad1ddaffab048cabef675d882cbb8
2009-07-21 15:33:14 +00:00
drh
c314dc7996
Changes to btree.c in support of coverage testing. (CVS 6913)
...
FossilOrigin-Name: 4cf23e9e860bd6245344884ec84f487fdf36f86f
2009-07-21 11:52:34 +00:00
drh
cd09c53d7f
Reverse the order of two conditionals in a test in order to achieve coverage
...
of them both. Also: clarifications to comments in btree.c. (CVS 6912)
FossilOrigin-Name: a159e9d24708dfe6c5a98d220e39f3b1b2a3d281
2009-07-20 19:30:00 +00:00
drh
98add2ed74
Modify various routines inside btree.c to take a pointer to the return-code
...
as a parameter and to no-op if the return-code storage location already
contains a non-zero code. (CVS 6911)
FossilOrigin-Name: 7dcf2a78727ce448d9d26bd6e2e23b553456ec54
2009-07-20 17:11:49 +00:00
drh
5dea3158fc
Use an ALWAYS() on a conditional in btmutex.c that is always true. (CVS 6910)
...
FossilOrigin-Name: 609022caff12c010575e704be550da6f52226d33
2009-07-20 12:33:32 +00:00
drh
8de5a17e47
Corrections to the comment that is inserted at the top of the amalgamation.
...
Ticket #3981 . (CVS 6909)
FossilOrigin-Name: 7572991bc2232f57d04c972d516a3e8f85f34f14
2009-07-20 12:25:44 +00:00
drh
dfc926410e
Always provide a name for the TEMP database even if SQLite is compiled using
...
SQLITE_OMIT_TEMPDB. (CVS 6908)
FossilOrigin-Name: 0ba17c04834c0a44c8690169c0096c1d9cf325e4
2009-07-20 11:32:03 +00:00
drh
6aac11dc66
Code tweaks in support of full-coverage testing. (CVS 6907)
...
FossilOrigin-Name: 22c6dbfdce965e32f3df9aec28e46e714620c362
2009-07-18 20:01:37 +00:00
danielk1977
f16c62464d
Add some code to sqlite3VdbeMemSetZeroBlob() so that it works (less efficiently) even when OMIT_INCRBLOB is defined. Ticket #3977 . (CVS 6906)
...
FossilOrigin-Name: f5f7259d811ce8c2bf0bc64128256c4cd95f676a
2009-07-18 14:36:23 +00:00
danielk1977
5368f29ac4
When the asynchronous IO backend opens a file with the EXCLUSIVE flag set, make sure only a single file-descriptor is opened (not one for reading and one for writing). This change fixes #3978 . (CVS 6905)
...
FossilOrigin-Name: 630e669b97a81f9125d4bdc18517738b74eecdec
2009-07-18 11:52:04 +00:00
danielk1977
627a3d6ab4
Changes to test scripts so that (make test) works when OMIT_INCRBLOB is defined. (CVS 6904)
...
FossilOrigin-Name: 1dd834a3d61496dfa138c36676a5fa6afaa4c817
2009-07-18 08:30:44 +00:00
danielk1977
e494817534
Fix a subtle problem that can occur when a transaction is automatically rolled back, and afterwards a VM that had opened a statement transaction within the abandoned transaction is finalized. Fixes an assert() that was failing in rtree3.test. (CVS 6903)
...
FossilOrigin-Name: 910df46e0f570cbffa9ff9b50d75632c091838b6
2009-07-17 17:25:43 +00:00
danielk1977
33c54a989e
Return a meaningful error message if a keyword is used as an rtree table column name. Ticket #3970 . (CVS 6902)
...
FossilOrigin-Name: 046efe46b50fbe928f39a0cda1b1006d486ce9f5
2009-07-17 16:54:48 +00:00
shane
9a8cee7f73
Skip all tests in tableapi.test if SQLITE_OMIT_GET_TABLE defined. Ticket #3975 . (CVS 6901)
...
FossilOrigin-Name: 0219a543367638013ccd06295eeb9efc822e2dd1
2009-07-17 14:37:24 +00:00
drh
f18a61dd59
Code simplifications in support of structural testing. (CVS 6900)
...
FossilOrigin-Name: fb1b955dda5105025ef199880afa871e44331d65
2009-07-17 11:44:07 +00:00
drh
e64ca7ba11
Code simplifications and comment improvements in support of structural
...
coverage testing. (CVS 6899)
FossilOrigin-Name: 945251798144110787b197f9eb552a2dd4a25cb4
2009-07-16 18:21:17 +00:00
drh
b5526ea67f
Remove an unused variable from sqlite3ExprListDup(). Ticket #3973 . (CVS 6898)
...
FossilOrigin-Name: 17c05aefd6c9e938a4cc5d3de348d8c8fdc9394d
2009-07-16 12:41:05 +00:00
drh
e184965d7e
Fix a potential database corruption following DROP TABLE when the pending
...
byte page corresponds to a ptrmap page. This situation cannot happen in
a real deployment - but it still needs to be fixed. (CVS 6897)
FossilOrigin-Name: 6242db39f7f4ead5017bf684139d1f8312799f81
2009-07-15 18:15:22 +00:00
drh
4c301aaca8
Simplifications to btree.c in support of structural testing. Renamed the
...
"skip" field of the BtCursor object to "skipNext" to make it easier to
search for places where it is used. (CVS 6896)
FossilOrigin-Name: d3897235d77e48ad09f7edb0a7641458afa0a282
2009-07-15 17:25:45 +00:00
drh
2fa34d35c4
Remove an assert() from vdbeaux.c that might not be true if the database
...
file is corrupt. (CVS 6895)
FossilOrigin-Name: a42dc51e3bd258d5a357e557251fb2642708ceac
2009-07-15 16:30:50 +00:00
drh
c046e3edeb
Added the SQLITE_TESTCTRL_RESERVE option to sqlite3_test_control().
...
Simplifications to btree.c to facilitate structural coverage testing. (CVS 6894)
FossilOrigin-Name: cfbeda1b3126503e9631471ce4713e25b007859f
2009-07-15 11:26:44 +00:00
drh
c27ae614dd
Add comments and assert() statements to show that the return value from
...
sqlite3BtreeKeySize() and sqlite3BtreeData() usually do not matter.
Ticket #3968 . Also remove a NEVER() macro that can sometimes be true -
discovered while testing the previous change. (CVS 6893)
FossilOrigin-Name: 0c710c1be537127511d95b5b261c7bf26e1bc952
2009-07-14 18:35:44 +00:00
drh
d7c7ecdb01
Simplifications to the PRAGMA integrity_check logic. Remove unreachable code. (CVS 6892)
...
FossilOrigin-Name: 17749fa5480069cc4909acd992ab26d10afb279d
2009-07-14 17:48:06 +00:00
drh
407414c25f
Simplifications and tweaks to vdbeaux.c resulting from structural testing. (CVS 6891)
...
FossilOrigin-Name: fa49666fb913f0d82e84bdfa2af3a294be04e47c
2009-07-14 14:15:27 +00:00
drh
6be240e546
Make sure the IN operator works with zeroblobs. Ticket #3965 .
...
Other simplifications associated with structural testing. (CVS 6890)
FossilOrigin-Name: 25dd342283046aaf66a679348ef1c7364c616402
2009-07-14 02:33:02 +00:00
drh
3c18eb6048
Remove the SQLITE_CommitBusy flag. This was an attempt to block recursion
...
on the sqlite3_commit_hook() interface. But such recursion is explicitly
disallowed, so the flag is pointless. (CVS 6889)
FossilOrigin-Name: 1c2bfc43a4fd5b779a3b5b5b8ca5b41cb7250b5a
2009-07-13 15:52:38 +00:00
danielk1977
31d31b87e9
Change an unreachable condition in btree.c to a NEVER(). (CVS 6888)
...
FossilOrigin-Name: 9f800e11391a108d7aa57f5a96d9a58711129132
2009-07-13 13:18:07 +00:00
danielk1977
a299d61249
In sqlite3PagerWrite(), do not set the PGHDR_NEED_SYNC flag on a page if an IO error occured while attempting to journal it. (CVS 6887)
...
FossilOrigin-Name: b9be365d85fddedbfa93eebf3ee62a140cbaa426
2009-07-13 11:22:10 +00:00
danielk1977
8f880a8cfb
Remove an assert ("assert( subpage>0 )") from btree.c that may not be true for a corrupt database. Also add comments and other assert() statements to btree.c function moveToRoot(). (CVS 6886)
...
FossilOrigin-Name: 3151dab9c78106217ec80ebadc666dfd11b42029
2009-07-13 09:41:45 +00:00
danielk1977
3fd7cf5aa1
Remove a case from BtreeMovetoUnpacked() that is unreachable as of (6881). (CVS 6885)
...
FossilOrigin-Name: 39ce2097da03176e256a2ff35bb857e578f3ca2d
2009-07-13 07:30:52 +00:00
drh
3bcdfd25bd
Simplifications to btree.c to help facilitate coverage testing. (CVS 6884)
...
FossilOrigin-Name: dfb146ef003bae8ff216baf68cc43d7eb7855c68
2009-07-12 02:32:21 +00:00
drh
6a8b8d3cc8
When an OOM fault occurs while moving a page for autovacuum in an in-memory
...
database, be sure to undo the page move prior to returning the error, to
avoid corrupting the in-memory database file. (CVS 6883)
FossilOrigin-Name: d0964b93669123e228e7ce1890167447c56753b5
2009-07-12 02:31:36 +00:00
drh
fb1926837a
Remove an unused parameter from the accessPayload() function in btree.c. (CVS 6882)
...
FossilOrigin-Name: 7deb6568d89335926b77336756837c6dc3985529
2009-07-11 18:26:28 +00:00
danielk1977
bd5969a268
Fix a case where deleting a row from a corrupt database could cause an assert to fail. (CVS 6881)
...
FossilOrigin-Name: 6994b41a94a60f6460cf9814767db321ab3851f7
2009-07-11 17:39:42 +00:00
drh
41d628c123
Bug fix in the computation of the number of pages to autovacuum when
...
nReserve is greater than zero. (CVS 6880)
FossilOrigin-Name: 618a83d65f973183d21245721dc656a35ff594a4
2009-07-11 17:04:08 +00:00
drh
a4ec1d443a
Unwind some complex conditions in sqlite3BtreeDelete() into
...
separate "if" statements. (CVS 6879)
FossilOrigin-Name: d99bde9ca61eeccfe6363ff0882fd4bcdb9a34dc
2009-07-11 13:13:11 +00:00
danielk1977
d8a3f3dd0d
Remove another unreachable branch from btree.c. (CVS 6878)
...
FossilOrigin-Name: b0853100a9f8e185e8d027502822337a79a2ba0c
2009-07-11 11:45:23 +00:00