dan
5db5640185
Merge trunk changes into experimental branch.
...
FossilOrigin-Name: aef6698c732f3f9e46986f53e63ca2bdf5f7d208
2010-08-06 13:53:09 +00:00
dan
cb79e5137c
Do not run some tests in notify3.test with the inmemory_journal permutation. They do not pass as the tests assume that the database schema is not loaded until the first invocation of [db eval]. This is not true with the inmemory_journal permutation.
...
FossilOrigin-Name: 698fba826e40ce6414cf6c261441d68b174c1637
2010-08-06 13:50:07 +00:00
dan
de1ae34eed
Further updates to comments in pager.c.
...
FossilOrigin-Name: 5f4c17a33fd442d66c1bf75af9b21954f6906897
2010-08-06 12:00:27 +00:00
dan
dc1106148a
Modify test_journal.c to work with pre-allocated databases.
...
FossilOrigin-Name: 4894a5d21044b169f412fef095e689cb8a8575dc
2010-08-06 09:43:03 +00:00
dan
11f47a9b4e
Fix a bug to do with deleting the journal file when exiting exclusive-locking mode.
...
FossilOrigin-Name: 6217b607f0cd60383c6cb4ab0fe9da008f611244
2010-08-06 06:54:47 +00:00
drh
3bb9b93f1f
Change two automatic array variables into static constant arrays.
...
Update and reformat some comments for cleaner presentation.
FossilOrigin-Name: a7a15547cccb4aeb719aba19641f31390c316d8c
2010-08-06 02:10:00 +00:00
dan
54919f8238
Add comments describing UNKNOWN_LOCK to pager.c. Improve some other comments i the same file.
...
FossilOrigin-Name: 54eff6de9d8d87f33192c192ca91907c4c090988
2010-08-05 18:53:26 +00:00
dan
4557b92cdb
Merge trunk changes with experimental branch.
...
FossilOrigin-Name: acd26b8b746980c344db017a0e96dbd92c89acdf
2010-08-05 16:22:49 +00:00
dan
5761dbe4a3
Catch an error code that was not being propagated back to the caller.
...
FossilOrigin-Name: 800f496929fb0d45d16c573c5dca0197ac922e2b
2010-08-05 16:08:26 +00:00
dan
4e004aa6b9
Fixes for error handling with temp databases. And for errors that occur within OS locking primitives.
...
FossilOrigin-Name: f99a902f9b3d0bf6f607c4ba641b4096fbbef5d5
2010-08-05 15:30:22 +00:00
drh
f6171e9bae
Make the size of a Bitvec object 512 bytes on all platforms, instead of
...
having the size depend on the size of a pointer. This makes testing easier.
FossilOrigin-Name: ca479f3de2927ccc05dc76d10e40c00b8e0c88d1
2010-08-05 11:56:01 +00:00
drh
b9b49bf36b
Do not read the database file size on a SAVEPOINT rollback any more since
...
after checkin [65b8636ac6e5] the in-header-size field is always valid.
FossilOrigin-Name: fbe70e1106bcc5086ceb9d8f39cc39baf3643092
2010-08-05 03:21:39 +00:00
drh
aa0ba4345d
Fix the query planner so that when it has a choice of full-scan tables to
...
move to the outer loop, it chooses the one that is likely to give the fewest
output rows.
FossilOrigin-Name: 309bbedf9648c750d7b8aedbc15d4fd68f846824
2010-08-05 02:52:32 +00:00
drh
5e377d90ed
If the outer loop of a join must be a full table scan, make sure that an
...
incomplete ANALYZE does not trick the planner into use a table that might
be indexable in an inner loop. Ticket [13f033c865f878]
FossilOrigin-Name: e7a714b52c45af096af74049826d32c647abfe3f
2010-08-04 21:17:16 +00:00
dan
431b0b4291
Fix some problems with error recovery introduced while reworking pager state.
...
FossilOrigin-Name: 77eaab6f77c53cc4f429b65dfcf287ad6084c2da
2010-08-04 19:14:22 +00:00
dan
59257dc615
When opening a write-transaction on a database file that has been appended to or truncated by a pre-3.7.0 client, update the database-size field in the database header. Fix for [51ae9cad31].
...
FossilOrigin-Name: 65b8636ac6e5d3e4502d4f576ddf9350d5df3022
2010-08-04 11:34:31 +00:00
dan
d5e0101be0
Merge trunk changes into experimental branch.
...
FossilOrigin-Name: 15368a9f8523d5fb611cd576080daed2cf2f1500
2010-08-03 18:29:04 +00:00
dan
a42c66bdfb
Set the Pager.eState variable to PAGER_ERROR whenever the pager enters the error state.
...
FossilOrigin-Name: 4d384761d27425b71555f4f3262778277a955835
2010-08-03 18:18:41 +00:00
drh
a3e414cd48
Fix disabled implementation-mark comments in func.c.
...
FossilOrigin-Name: 57c0960038b8ce97f9d6665f15e7f6ec310c681f
2010-08-03 18:06:25 +00:00
dan
b22aa4a63d
Add comments to clarify the purpose of the pager "error state".
...
FossilOrigin-Name: fde4c59782e98366792e1552fd122e7d80a277ff
2010-08-03 15:57:09 +00:00
drh
6dc8490232
Fix the REPLACE conflict resolution so that it falls back to ABORT when
...
a CHECK constraint fails. Ticket [c38baa3d969eab794].
FossilOrigin-Name: 4e157b774764b8bafc9fabb88decf54f178b5ff5
2010-08-03 13:08:54 +00:00
dan
937ac9da38
Add state diagram to comments in experimental version of pager.c.
...
FossilOrigin-Name: 16dcf5a6d3ebff9a734705693b5ac740f4ff2cc1
2010-08-03 12:48:45 +00:00
dan
763afe62e1
Incremental checkin on pager state refactoring.
...
FossilOrigin-Name: 0a636798bdb6961a47327091715b254f79add823
2010-08-03 06:42:39 +00:00
dan
d08640871c
Experimental refactoring of the Pager object state.
...
FossilOrigin-Name: 03a240514aa07a22db787d221641253f23933e88
2010-08-02 14:32:52 +00:00
drh
9e5f10743d
Modify wal2.test to disable tests requiring TCL 8.5 if the test harness is
...
compiled using TCL 8.4.
FossilOrigin-Name: 016486c7d544dcf9b7422cb0fb9804aa1c418f68
2010-08-02 10:59:13 +00:00
dan
a550f2decd
In shared-cache mode, do not allow one connection to checkpoint a database while a second connection is reading or writing the same shared-cache.
...
FossilOrigin-Name: e75b52d156905ce16bedb94f65c01a4640bdfa75
2010-08-02 10:47:05 +00:00
drh
1c320a4366
Fix a typo in an error message of the TCL interface.
...
FossilOrigin-Name: 8eadd7b87bfe8786e0352ca14b29d1451998c02c
2010-08-01 22:41:32 +00:00
drh
be0b237e6a
If a database becomes corrupted such that an index is out of sync with its
...
table, make sure the corruption is detected and reported back. Do not assume
that indices always contain rowids for valid table rows.
FossilOrigin-Name: 83395a3d24f18170fc068d9e644291678694c3f0
2010-07-30 18:40:55 +00:00
drh
a3388cc5b0
Fix typos in comments. No code or logic changes.
...
FossilOrigin-Name: 15c294ca051ed8b5078e7ac9a969b0f9358d9184
2010-07-30 16:54:25 +00:00
drh
1e8ed64ed0
Remove a test from sqlite3PagerCommitPhaseOne which is now always true
...
after the multi-file transaction fix.
FossilOrigin-Name: 6758f6a8ec97941e09847b309812b3194eb57f19
2010-07-30 16:44:29 +00:00
dan
51133eaefa
Remove variable Pager.needSync, which was almost completely unused.
...
FossilOrigin-Name: 347f22a5b777af92873590a5b9af5a6498bef918
2010-07-30 15:43:13 +00:00
dan
6037b92a4e
Merge trunk changes into experimental again.
...
FossilOrigin-Name: 87e0f4e184284bf775c2fc7c4e9a334f4f237c59
2010-07-30 14:39:13 +00:00
dan
1e01cf1b84
Changes to the comments describing the Pager.setMaster variable in pager.c. Add an assert() statement to verify that two master journal pointers are not written to a single journal file.
...
FossilOrigin-Name: ad78ccacb00e2f8a5ca93e2c9006266d9477fe48
2010-07-30 11:31:12 +00:00
drh
abfb62f9bd
Cherry-pick the multi-file transaction fix for ticket [f3e5abed55] out of
...
the experimental branch.
FossilOrigin-Name: 40f7f0a583e6bba66cd006253a0ef4623ea74f17
2010-07-30 11:20:35 +00:00
dan
2554ea7b0b
Add the test cases for bug [f3e5abed55].
...
FossilOrigin-Name: cbbaf8e67a23dc332ce935bc7234246eacba60bf
2010-07-30 10:09:12 +00:00
dan
eb9444a4b3
Make sure a connection has an exclusive lock on all database files involved in a multi-file transaction before writing the master-journal pointer into any journal files. Fix for [f3e5abed55].
...
FossilOrigin-Name: 50c0f2202d21bbf6b593d75fd20f13c0fac23eff
2010-07-30 10:02:24 +00:00
dan
4d9c1b7fc4
Merge further trunk changes into experimental branch.
...
FossilOrigin-Name: fb847d70407b0f0e548919b7554f62bc1dab8a6c
2010-07-30 07:26:51 +00:00
dan
3843a4c19a
Add tests to check that the ICU regexp() function can only be called with exactly two arguments.
...
FossilOrigin-Name: 451d965742cc219db709939b4ba1da2f2343dbce
2010-07-30 05:06:05 +00:00
drh
60176fa925
Updates to the README.txt file for ICU.
...
FossilOrigin-Name: d37443d33388b402e610a00c362a1e2e79548801
2010-07-30 00:31:08 +00:00
drh
0cf68a9b17
Unconditionally include the pTmpSpace size in the estimate of the pager
...
memory used.
FossilOrigin-Name: 4b97f8640e9167cd355a24836fe74e4224cf12b9
2010-07-29 10:13:25 +00:00
drh
df0db0feb5
Change the profile timer units back to nanoseconds and update the
...
sqlite3_profile() documentation.
Ticket [c43940c49b74c70a69]
FossilOrigin-Name: 7783b98a938b77d6b8e4e85b32b05452c47fbe4b
2010-07-29 10:07:21 +00:00
drh
6cbda64d07
Correct handling of compound foreign key constraints that include the
...
integer primary key as one of the columns.
Ticket [ce7c133ea6cc9ccdc1]
FossilOrigin-Name: 53902f7d4a46aa70ecc5bf180a01ff888d52686a
2010-07-29 01:50:38 +00:00
drh
078e4084e9
Get SQLITE_OMIT_VIRTUALTABLE working again after being broken by recent
...
changes.
FossilOrigin-Name: 33b1e862ffa7109480cf4a77ceae8aebe98d3eee
2010-07-28 19:17:51 +00:00
drh
60a311785f
Fix the dbstatus.test script so that it works correctly on 64-bit machines.
...
FossilOrigin-Name: a3401d9ee540828f3efd26d89f6b771e0ecb2777
2010-07-28 18:51:26 +00:00
dan
76d5918243
Merge trunk changes into experimental branch.
...
FossilOrigin-Name: aa81900153a2762cb2ad41e6710c1f1e7dc8b41e
2010-07-28 18:35:50 +00:00
drh
233f816b84
Improve the accuracy of the Pager heap usage estimate.
...
FossilOrigin-Name: ae89777e7f8bae2cdd3407395ea84c1b39577c4b
2010-07-28 17:36:11 +00:00
drh
abc97a7834
Adjust the shell test script "shell4.test" to account for changes in the
...
".stat on" display format from the previous checkin.
FossilOrigin-Name: 2f2fa7dd809ae2a67048643da8c01a4664848ba7
2010-07-28 17:16:41 +00:00
drh
29dfbe3b70
Record the pcache allocation size statistics even for pcache overflow
...
allocations. Adjust the wording on one of the stat output lines in
the shell.
FossilOrigin-Name: f9adf66ad575abbb63736caef27bd3c619e516a6
2010-07-28 17:01:24 +00:00
shaneh
642d8b87fe
Modify CLI to optionally display "stats".
...
FossilOrigin-Name: 419ce0ed89d10252492b2926817259899ee74e71
2010-07-28 16:05:34 +00:00
drh
39539804c6
Lookaside memory is not used to store schemas. Change the
...
SQLITE_DBSATUS_SCHEMA_USED documentation to reflect this fact.
FossilOrigin-Name: 07abfd5268564c18afd1074c2069d65c64f4b8eb
2010-07-28 15:52:09 +00:00