drh
05f69dd388
Candidate fix for a pager bug associated with sqlite3PagerMovepage().
...
FossilOrigin-Name: 8c046eb6d16682d5e755624deb4f76f57350b9c9
2010-04-09 15:34:06 +00:00
drh
6498f0bb2e
Avoid unnecessary calls to sqlite3_step() with null prepared statements
...
while parsing the schema.
FossilOrigin-Name: ae04d2d15d3d96f607adb394a631d96cd4cf2c1d
2010-04-09 09:14:05 +00:00
drh
9e48165b07
Fix a typo in a comment. No changes to code.
...
FossilOrigin-Name: 332cb55113a621456c6522830585434146c388e7
2010-04-08 17:35:34 +00:00
drh
f12cde5637
Fix code coverage problems in where.c.
...
FossilOrigin-Name: b04a52824971e8880e4bf0d9862db4eef8b607ab
2010-04-08 17:28:00 +00:00
drh
c71b5f34c9
Additional automatic index tests.
...
FossilOrigin-Name: 99d8e325e9eb8905631b06676206e6412f386d08
2010-04-08 16:30:38 +00:00
drh
7caba669a6
New test cases for automatic indices. New testcase() macros associated
...
with column-used bitmasks.
FossilOrigin-Name: e1aa48ace7e43c3805278120b8228ee597e2cee7
2010-04-08 15:01:44 +00:00
drh
8bd5412b90
Fix the computation of the number of rows in a table during automatic
...
index generation.
FossilOrigin-Name: edeab06a5010c82491a6cc9393cf2a35a7622ac5
2010-04-08 15:00:59 +00:00
drh
67ae0cb231
Fix an integer overflow bug in the automatic index logic. The bug was
...
detected by the testcase() macros added in the previous check-in. Also
add some more testcase() macros, since this issue points up their importance.
FossilOrigin-Name: af97b4881a8f010055cde672634141d7ed6898fc
2010-04-08 14:38:51 +00:00
drh
52ff8ea605
Add testcase() macros to the automatic index logic to insure that boundary
...
cases are tested.
FossilOrigin-Name: 7286547847721b8f5f64bc2e7dc236652b1ae985
2010-04-08 14:15:56 +00:00
drh
9d6caca80d
Make sure F_OK, R_OK, and W_OK are defined in test_demovfs.c. Define them manually
...
if they are not. This is necessary to get the module to compile on some systems.
FossilOrigin-Name: 7c8afc3272fa91e2b5685b009eb674dbc1b5920d
2010-04-08 11:35:18 +00:00
drh
5c56f70199
Merge automatic index changes into the trunk.
...
FossilOrigin-Name: bf7b8d863665870a38f0b2335cc71de856a515b4
2010-04-08 01:16:19 +00:00
drh
0013e72edf
When constructing automatic indices do not include the same column more than
...
once.
FossilOrigin-Name: d067d9f7a9138e026c1018361127e34385928657
2010-04-08 00:40:15 +00:00
drh
5a8aedab2d
Pull over the latest changes from the trunk.
...
FossilOrigin-Name: e388fe8be878c80ef0bfd1699a7268cdb22cb3c6
2010-04-07 20:32:18 +00:00
drh
d14133e3f4
When rolling back a savepoint to the beginning of the transaction, make sure
...
to initialize the database size in the btree layer correctly even if the
database size field of the header is zeroed.
FossilOrigin-Name: a3540c6acf2bb6bdd44c101b63f17ca85e6b68ed
2010-04-07 20:29:56 +00:00
drh
3c379b0101
Add an interface to the SQLITE_STMTSTATUS_AUTOINDEX status information
...
to the TCL bindings. Add some simple automatic index test cases.
FossilOrigin-Name: 1f40441204d9a912b1d6b67ff6ff9e17146c7abd
2010-04-07 19:31:59 +00:00
drh
c633908199
Wrap all automatic index changes inside SQLITE_OMIT_AUTOMATIC_INDEX. Add
...
the automatic_index PRAGMA to turn it on and off.
FossilOrigin-Name: a811a47fbe4f757a7ab575ae5a0f65177a3f07c0
2010-04-07 16:54:58 +00:00
drh
4139c99eba
Make sure that all automatic indices are covering indices. Otherwise, the
...
table and index might be used together in a query but the table could get
out of sync with the automatic index through out-of-band changes.
FossilOrigin-Name: 2364313142668b3d0ad144447b4862709be929cd
2010-04-07 14:59:45 +00:00
drh
2a6a7eeba5
Enhance comments on the SrcList object definition to better explain the
...
operation of the SrcList.a[].colUsed field. No changes to code.
FossilOrigin-Name: c0f67ea131c3e237e46311b1a3dcb3febf2ea036
2010-04-07 14:33:07 +00:00
drh
ab5cd70ae5
Fix the trace output of the OP_Function opcode to show the correct
...
register numbers.
FossilOrigin-Name: 064c283eee82c5053e84058a0e1908e468da6ce3
2010-04-07 14:32:11 +00:00
dan
0a7a9155a4
Add file test_demovfs.c, containing a simple VFS implementation that demonstrates how writes to the journal file may be safely buffered by the VFS layer to improve performance on some embedded systems.
...
FossilOrigin-Name: af3b72d94a1b6513f02402af3ada5fb5dd390151
2010-04-07 07:57:38 +00:00
drh
a21a64dd0c
Veryquick.test is now working. The SQLITE_STMTSTATUS_AUTOINDEX counter
...
added.
FossilOrigin-Name: abbf16e5e7895971710fb3a8fd9c782fc1218a77
2010-04-06 22:33:55 +00:00
drh
75bb9f5a5b
Runs quicktest without hitting an assert now. Some tests get unexpected
...
results still and there is a memory leak.
FossilOrigin-Name: a8224448cc305258a59a9023e6604783dda73e45
2010-04-06 18:51:42 +00:00
drh
424aab88ca
Progress toward getting automatic indices to work. Still failing in corner
...
cases.
FossilOrigin-Name: ac6d0fba78eb9dcd69372e128d4a039aaff4b417
2010-04-06 18:28:20 +00:00
drh
8b307fbfa0
Automatically generate transient indices for tables in joins that would
...
otherwise have to use a full table scan.
FossilOrigin-Name: 1b2a04125f964e14f3fb90171c5ab86a0641d1c9
2010-04-06 15:57:05 +00:00
drh
25d3adbb6a
Minor comment changes to the OP_OpenEphemeral header. No changes to code.
...
FossilOrigin-Name: 8e1d7ef47f643503aa823d9986a931a83c63648b
2010-04-05 15:11:08 +00:00
drh
8d83c0fdd5
Silently abandon a rollback if the journal has been truncated.
...
FossilOrigin-Name: 7626f6c9ea04d1a5690dd11bb13e8c3c04e3b0f5
2010-04-03 13:08:09 +00:00
drh
34e2b837d5
Check for a failure in the call to sqlite3PagerPagecount() from within
...
sqlite3PagerWrite(). (Error discovered by valgrind.)
FossilOrigin-Name: d64d181c79aee3501be6f7eb8c11ab2cc9a8d63c
2010-04-02 13:25:22 +00:00
drh
a378c566d2
Take care to avoid a buffer over-read when adding a KEYINFO structure
...
to the P4 parameter of an opcode.
FossilOrigin-Name: 937b931a7cdad6874638158ed6a9ab6356b0bd0c
2010-04-02 12:55:38 +00:00
drh
c2a4bab462
If the size of the database according to the header is larger than the
...
actual database file size, report that the database is corrupt.
FossilOrigin-Name: 8eb1f2443f2712920452b7ed3fb835c7f3221191
2010-04-02 12:46:45 +00:00
drh
cce75d3343
Pager changes for code coverage testing.
...
FossilOrigin-Name: b04a45ea9714e7a35372b5d6a58868b307d10502
2010-04-02 03:38:59 +00:00
drh
4d077f9255
Disable the corruptE.test script when ENABLE_OVERSIZE_CELL_CHECK is on.
...
FossilOrigin-Name: 1dc4f9fe9b83467ba014e759b93f6caa2925e4d2
2010-04-01 18:33:14 +00:00
drh
43377f5ad5
Zero the filesize-in-header word for bigfile.tcl. Remove bigfile.tcl from
...
the journaltest permutation.
FossilOrigin-Name: 63610c71ca629de5e81950bc3c2ee6014e67853b
2010-04-01 16:15:56 +00:00
drh
45b355dc4f
Do not journal the content of freelist leaf pages. This restores an
...
optimization that was accidently undone by check-in [12f7346c13] on
[2009-01-20].
FossilOrigin-Name: b1e7a1a677e1c2a6c2ab83a67070605465a3e495
2010-04-01 13:41:10 +00:00
drh
9afb1abe42
Remove a NEVER in sqlite3PagerPagecount() that can in fact be true.
...
FossilOrigin-Name: 8f00533782a0eae5613caaf86608384cb702fc51
2010-04-01 02:47:01 +00:00
drh
1f5b467f13
Restore the size information in the BtShared structure when a transaction
...
rolls back.
FossilOrigin-Name: 802aeb30c9baf4059fa84f4693f290f80d3a4085
2010-04-01 02:22:19 +00:00
drh
a792dc5c4a
Make sure an OOM error on sqlite3PagerPagecount() is detected and reported
...
out to the interface.
FossilOrigin-Name: 8aecf302a5aac66e43a8cc6c4e0d917f74e9e0de
2010-03-31 23:20:04 +00:00
drh
8d8626fe2b
Report corruption if a database contains a reference that is out of range
...
according to the filesize-in-header database size.
FossilOrigin-Name: a91db0b1cd0b0fbadc5c8fe2eb8863629b411d87
2010-03-31 20:29:06 +00:00
drh
afc266a76a
Clarification of the implementation of SQLITE_STMTSTATUS_FULLSCAN_STEP.
...
No logical code changes - just commenting and layout changes to improve
readability.
FossilOrigin-Name: 06b9ca32255572a699dc51f46f848d0bf01255e1
2010-03-31 17:47:44 +00:00
dan
67a6a40cf9
Clear the column cache before populating aggregate accumulator registers. Fix fo
...
r [883034dcb5].
FossilOrigin-Name: ffc23409c7fb45dc5a8722fad26e26d207bb3213
2010-03-31 15:02:56 +00:00
drh
d3d986d329
Documentation enhancements for the sqlite3_log() interface. No functional
...
changes to code.
FossilOrigin-Name: ba13a11108d7852c61f959cc8a5fc39c25202cae
2010-03-31 13:57:56 +00:00
drh
4b4580b701
Include shell.c and sqlite3.def in the amalgamation ZIP archive.
...
Ticket [e063139eb3f8]
FossilOrigin-Name: 0077ed5cf4e56eb81cfa850fc98e6b033708fc03
2010-03-31 11:52:57 +00:00
drh
97b59a56d2
Increase test coverage following the introduction of the new
...
filesize-in-header logic.
FossilOrigin-Name: dbc2c3c0144d2c76aec04f80892302c532947dc8
2010-03-31 02:31:33 +00:00
drh
b1299158c7
Continuing refinements to the filesize-in-header enhancement.
...
FossilOrigin-Name: 79e22b95038c50b9b7f35e09262805ff6338b59b
2010-03-30 22:58:33 +00:00
drh
bf59283ba2
Add a NEVER macro around a test in btree.c that can not longer be true.
...
FossilOrigin-Name: c117f99236a009778bb7878da464918554391f0a
2010-03-30 15:51:12 +00:00
dan
7ba4597135
Do not crash when compiling an "INSERT INTO tbl DEFAULT VALUES" when tbl has either BEFORE or INSTEAD OF triggers attached to it. Ticket [f3162063fd].
...
FossilOrigin-Name: ca359a3e8048bd11605c41c4b48134c0343e543b
2010-03-30 12:40:32 +00:00
drh
d454214ddd
Change an #if into an #ifdef.
...
FossilOrigin-Name: 371bab5d6534860ce908e52129c64a49946be33a
2010-03-30 11:57:01 +00:00
drh
4b11b0897a
Pull the experimental file-size-in-header changes into the trunk.
...
FossilOrigin-Name: 0092b36c7bbd04bf3826de7805e8a14739390f31
2010-03-29 21:22:00 +00:00
drh
25a80ad0b1
The btree layer now tracks when a database is empty at the start of a
...
transaction and rolls back to that state.
FossilOrigin-Name: 01ef6c1944507c188a83a434ff00e98ad767f744
2010-03-29 21:13:12 +00:00
drh
5e0ccc216d
Fix issues with the io.test script. There is still a problem with a
...
ROLLBACK TO not working on an initially empty database files. And much
more testing is needed.
FossilOrigin-Name: 09786e2a51817d572a01ae7f3621f03fd27fc363
2010-03-29 19:36:52 +00:00
drh
dd3cd977cc
Experimental changes that cause SQLite to use bytes 28..31 of the database
...
header to determine the database size, rather than using the actual database
size. This allows database space to be preallocated.
FossilOrigin-Name: b844ac6fcb72595a71e5c5283ec461309a87ba79
2010-03-27 17:12:36 +00:00