]>
git.ipfire.org Git - thirdparty/sqlite.git/log
drh [Thu, 29 May 2014 20:39:59 +0000 (20:39 +0000)]
Fix a harmless compiler warning in the command-line shell code.
FossilOrigin-Name:
a80527f60b4856e869f25e7b13afde351bc26a25
drh [Thu, 29 May 2014 20:17:57 +0000 (20:17 +0000)]
Fix to the EXPLAIN indentation logic in the command-line shell.
FossilOrigin-Name:
8f916ed1e185ac728e00624d90e1d7bd2dda4469
drh [Thu, 29 May 2014 12:36:14 +0000 (12:36 +0000)]
Improvements to error messages for errors in the dot-commands of the
command-line shell. Add the ".once" command. The output of ".help"
now goes to the designated output channel.
FossilOrigin-Name:
48dce821a07ac29da6ce05e92cf3f6e52b6eb388
drh [Thu, 29 May 2014 03:17:29 +0000 (03:17 +0000)]
Only quote the arguments to the ".shell" and ".system" commands if they
contain spaces.
FossilOrigin-Name:
e58f4bd39d51c4c1a28684dab6427de81173d564
drh [Wed, 28 May 2014 20:22:28 +0000 (20:22 +0000)]
Add the ".shell" and the ".system" commands (aliases for the same thing)
to the command-line shell.
FossilOrigin-Name:
d018a34a05cec6adda61ed225d084c587343f2a6
dan [Wed, 28 May 2014 10:00:38 +0000 (10:00 +0000)]
Add an extra test to verify that the FTS notindexed option is working.
FossilOrigin-Name:
c461c0fe051d33cc8b4fede4eca13cd71f28126a
mistachkin [Wed, 28 May 2014 03:23:55 +0000 (03:23 +0000)]
Revise how OSTRACE reports logically boolean results in the Win32 VFS.
FossilOrigin-Name:
c405f971cf03e29110019ff863cbfb026d97e1e6
drh [Tue, 27 May 2014 20:19:06 +0000 (20:19 +0000)]
Remove an incorrect assert() in the sorter.
FossilOrigin-Name:
b8b66103de8c554cb87df40bf040760ec29f2ae1
drh [Tue, 27 May 2014 19:18:36 +0000 (19:18 +0000)]
Fix harmless compiler warnings.
FossilOrigin-Name:
20b75460c0661b5dc071177b4a0791aceccda029
drh [Tue, 27 May 2014 18:18:58 +0000 (18:18 +0000)]
Change the name of the Index.autoIndex field to Index.idxType and provide
symbolic names for the various values of that field rather than using
magic numbers.
FossilOrigin-Name:
d16e575dacc811de0f7b58a0d1cd243678dce6c5
drh [Tue, 27 May 2014 17:57:32 +0000 (17:57 +0000)]
Avoid unnecessary cursor opens and seeks when running the OR-optimization
on a WITHOUT ROWID table.
FossilOrigin-Name:
9c785c58327e08dad94a278a643a5443f94aec36
drh [Tue, 27 May 2014 16:41:39 +0000 (16:41 +0000)]
Improved comments on the OR-optimization logic in the query planner.
FossilOrigin-Name:
77fef5a3987fc16f84a8e755283ca6ec1363013c
drh [Tue, 27 May 2014 15:21:42 +0000 (15:21 +0000)]
Remove unused code (previously #ifdef-ed out) from btree.c.
FossilOrigin-Name:
8bc9737112e2700f337ff377cda040c8ba9d729f
drh [Tue, 27 May 2014 11:54:48 +0000 (11:54 +0000)]
Fix a harmless compiler warning in the FTS4 logic.
FossilOrigin-Name:
64a869ad2388d9d62601b93d5139f2dc57f260f7
dan [Tue, 27 May 2014 11:42:23 +0000 (11:42 +0000)]
Add a test to whereI.test that uses a multi-column PK.
FossilOrigin-Name:
aa183e60929bdbbcea3c436dd8cc674fc44ad09a
drh [Tue, 27 May 2014 10:57:37 +0000 (10:57 +0000)]
Fix for (unsupported) SQLITE_USE_FCNTL_TRACE code.
FossilOrigin-Name:
994b2b7a591f08609140eb504253c141aec6206a
drh [Mon, 26 May 2014 22:05:46 +0000 (22:05 +0000)]
Add the OR-optimization to WITHOUT ROWID tables.
FossilOrigin-Name:
06a23b8b32f0439b22936dc4107890481e4a1327
drh [Mon, 26 May 2014 22:01:00 +0000 (22:01 +0000)]
Minor enhancements to comments and clarification of the code.
FossilOrigin-Name:
cbec30d0c49a3f618c3df3ae0ca3d651b48841c2
drh [Mon, 26 May 2014 20:25:34 +0000 (20:25 +0000)]
Add a missing VdbeCoverage() macro on an OP_Found opcode added in the previous
check-in.
FossilOrigin-Name:
b4980a07e287480beddb2c6633c733520e05d074
dan [Mon, 26 May 2014 20:06:45 +0000 (20:06 +0000)]
Enable the OR optimization for WITHOUT ROWID tables. Use a temp table instead of the RowSet object to track the rows that have already been included in the result set.
FossilOrigin-Name:
2c7e277bbebd5c93dec53d381d9737909d40d846
dan [Mon, 26 May 2014 18:27:12 +0000 (18:27 +0000)]
Fix a problem in the shell when importing CSV files. If the leftmost field of the first row in the CSV file was both zero bytes in size and unquoted, no data was imported.
FossilOrigin-Name:
856d44a206d82e96265103556dedda39ca3602b1
dan [Mon, 26 May 2014 16:40:02 +0000 (16:40 +0000)]
Fix a problem in FTS4 where columns with names that are prefixes of any notindexed column were also being (incorrectly) marked as not indexed. For example in "CREATE ... t1(abc, bc, abcd, notindexed=abcd)", both abc and abcd were being treated as notindexed.
FossilOrigin-Name:
d90c4964fcf46b0b043dbfd58267098582267001
drh [Sat, 24 May 2014 17:15:15 +0000 (17:15 +0000)]
Remove references in comments to VDBE opcodes that no longer exist. This
is a documentation change only; no changes to code.
FossilOrigin-Name:
ebfb51fe40756713d269b4c0ade752666910bb6e
dan [Fri, 23 May 2014 17:17:06 +0000 (17:17 +0000)]
Changes to the output of EXPLAIN QUERY PLAN to make it clearer when a query uses the PRIMARY KEY index of a WITHOUT ROWID table.
FossilOrigin-Name:
9268df305b90ac11e44b3107bbab5becf38860b7
drh [Fri, 23 May 2014 12:03:47 +0000 (12:03 +0000)]
In the command-line shell, if three or more interrupt signals (control-c)
are received in a row without a response from sqlite3_interrupt() then
call exit(1) immediately. This allows control-C to interrupt the shell
even if it is stuck in a computation or loop that does not involve the
VDBE.
FossilOrigin-Name:
b5cde57166fd874d00dec23d3a59bf3a23979fc5
drh [Fri, 23 May 2014 11:48:57 +0000 (11:48 +0000)]
Make sure sufficient VDBE registers are allocated for an INSERT...SELECT
when there is an idlist on the insert table that includes an explicit
rowid. Ticket [
9654505cfda93610585fde5a9bbf2e730c8a8d5 ]
FossilOrigin-Name:
9a2dd18776cc7003752980be0a0920a8799e5f35
dan [Thu, 22 May 2014 09:58:45 +0000 (09:58 +0000)]
Add a test for the EQP output of a skip-scan query that uses the PK index of a WITHOUT ROWID table.
FossilOrigin-Name:
10238fad94a198c0639461645227b6c5ebe16eee
drh [Wed, 21 May 2014 08:48:18 +0000 (08:48 +0000)]
Do not burn memory remembering CHECK constraints in a read-only database.
FossilOrigin-Name:
34ddf02d3d21151b8099c0c25706530a03d93887
drh [Wed, 21 May 2014 08:21:07 +0000 (08:21 +0000)]
Fix the sqlite3_db_readonly() API so that it reports true if the database
is readonly because the file format write version (byte 18 of the header)
is too large.
FossilOrigin-Name:
8d8af114dac301335ec10671c1e9a5a6d8266a60
dan [Sat, 17 May 2014 16:56:52 +0000 (16:56 +0000)]
Internally, use a 64-bit integers for segment level numbers.
FossilOrigin-Name:
8180e320ee4090e41511836678e49a98c0b228e8
dan [Sat, 17 May 2014 15:10:37 +0000 (15:10 +0000)]
Fix a broken test case in fts4growth2.test.
FossilOrigin-Name:
9fde5b960af39b187474e5b2909ff0e56d5e0bf9
mistachkin [Fri, 16 May 2014 23:38:59 +0000 (23:38 +0000)]
Fix harmless compiler warnings.
FossilOrigin-Name:
7e60347e21a7473974061965a8d1f2eadde987e2
mistachkin [Fri, 16 May 2014 23:15:50 +0000 (23:15 +0000)]
Work around compilation issue with MSVC.
FossilOrigin-Name:
9623a29c11e3a90513016ea3306c085d2bf91b62
dan [Fri, 16 May 2014 16:16:59 +0000 (16:16 +0000)]
Fixes to prevent an FTS index from growing indefinitely as the corresponding table is updated. Change the FTS 'automerge' option to allow the user to specify the number of segments that should be merged simultaneously by auto-merges.
FossilOrigin-Name:
a75f1800021d30b712053373440041b7b355a36a
dan [Fri, 16 May 2014 15:48:17 +0000 (15:48 +0000)]
Add extra test to backcompat.test to ensure that old and new versions of FTS may work together on the same incremental merge operation.
FossilOrigin-Name:
3997d47bb9c8593a2cd30317ea65163b99db1832
drh [Fri, 16 May 2014 14:17:01 +0000 (14:17 +0000)]
Repurpose the SQLITE_TESTCTRL_FAULT_INSTALL test-control to register a
callback to be invoked by sqlite3FaultSim(). That test-control has been
unused since 2008-06-20 and was never used in any official release.
FossilOrigin-Name:
0d43a7ad9abe821e33e0bf83a997aa4461b1e3f2
dan [Fri, 16 May 2014 10:30:44 +0000 (10:30 +0000)]
Fix a bug causing an incorrect segment size value to be stored if both an old and new FTS version performed work on the same incremental merge operation.
FossilOrigin-Name:
a9a2aeab298ba2ac0b8835e61406e2d83bf7e39b
dan [Thu, 15 May 2014 19:05:55 +0000 (19:05 +0000)]
Merge latest trunk changes with this branch.
FossilOrigin-Name:
5809986ffcc5d9cbab64760f8d7fbfbb6b626ee7
dan [Thu, 15 May 2014 18:36:39 +0000 (18:36 +0000)]
Fix a problem with the handling of delete markers by automerge on large databases.
FossilOrigin-Name:
2b09bd17eb85ea3c682e930d2aabc6441f2265e0
dan [Wed, 14 May 2014 19:49:17 +0000 (19:49 +0000)]
Do not search for promotable segments following an FTS 'optimize' operation or creation of a new segment on the oldest existing level.
FossilOrigin-Name:
34f6b4b8e4cb8ea45fd518672dc96335d1ce06ab
dan [Wed, 14 May 2014 18:45:27 +0000 (18:45 +0000)]
Fix a problem to do with loading the value of the FTS automerge setting from the database.
FossilOrigin-Name:
7268119f74602929b372b88eca7b3c3b4964f7d5
dan [Wed, 14 May 2014 15:58:47 +0000 (15:58 +0000)]
Fix various problems to do with segment promotion. Add test file fts4growth2.test, containing tests to check that the FTS index does not grow indefinitely as the table is updated.
FossilOrigin-Name:
21491a9bc686e63bec32f1a67103622f1160a2f9
dan [Tue, 13 May 2014 20:11:37 +0000 (20:11 +0000)]
Fix a problem preventing delete markers from ever being removed from the FTS index.
FossilOrigin-Name:
7f47ae5c5ddb1227484ddae7c6960183932a052a
mistachkin [Mon, 12 May 2014 22:36:50 +0000 (22:36 +0000)]
Improve a comment in the MSVC makefile. No changes to code.
FossilOrigin-Name:
0901dccedaf5679691ba803ec76d113de170185d
mistachkin [Mon, 12 May 2014 21:12:04 +0000 (21:12 +0000)]
Add VSIX packaging support for Windows Phone 8.1 using Visual Studio 2013 Update 2.
FossilOrigin-Name:
013738f3d531078fb47f9992c18a0d630e771a32
dan [Mon, 12 May 2014 20:04:48 +0000 (20:04 +0000)]
Experimental code to prevent FTS indexes from growing indefinitely as the table is updated.
FossilOrigin-Name:
b3b505a4dd0c679437a4272109f1188175088cd1
mistachkin [Mon, 12 May 2014 15:37:03 +0000 (15:37 +0000)]
In mutex_w32.c, make inclusion of the Windows header file dependent on SQLITE_OS_WIN, not SQLITE_MUTEX_W32.
FossilOrigin-Name:
93ffbcc0b1d207950851dbb16a8c101afb949d5f
mistachkin [Sat, 10 May 2014 17:33:11 +0000 (17:33 +0000)]
Merge updates from trunk. Emit the AppliesTo and DependsOn SDK manifest attributes when building the VSIX for Windows Phone 8.1.
FossilOrigin-Name:
f6237a5f190bd5693ceed0ca1f048c3ec2a4da67
mistachkin [Sat, 10 May 2014 17:28:45 +0000 (17:28 +0000)]
When using Visual Studio 2013, add the appropriate MaxPlatformVersion attribute to the VSIX SDK manifest.
FossilOrigin-Name:
0a4f59676bd0ab33b2c86c9a35a2ebbdbaf09ee7
mistachkin [Fri, 9 May 2014 23:31:55 +0000 (23:31 +0000)]
Further MSVC makefile changes to support Windows Phone 8.1.
FossilOrigin-Name:
a9c81815e1b7a9c05da61f75edac45cb1a954135
mistachkin [Fri, 9 May 2014 20:54:07 +0000 (20:54 +0000)]
Merge updates from trunk.
FossilOrigin-Name:
f4fea7bb8a4b118bdceff400a6c49c6291c0d58e
mistachkin [Fri, 9 May 2014 20:51:17 +0000 (20:51 +0000)]
When cross-compiling with the MSVC makefile, make sure the correct library path is used. Also, keep track of the required compilation options separately.
FossilOrigin-Name:
c3dce2e7390eec3a337be1b99f80ad5f721cc647
drh [Wed, 7 May 2014 21:16:56 +0000 (21:16 +0000)]
Include sqlite3rtree.h in the tsrc/ pile of source files during
target_source in the main.mk makefile.
FossilOrigin-Name:
116bed5af664899a73b46dca528ac0c021fc50c3
drh [Wed, 7 May 2014 20:33:17 +0000 (20:33 +0000)]
Remove a superfluous variable initialization.
FossilOrigin-Name:
68766f837491cb89c2103f2627eb9e23ab326a68
drh [Wed, 7 May 2014 20:24:00 +0000 (20:24 +0000)]
A better fix for the group_concat() problem.
FossilOrigin-Name:
1c086deebd0eb442918972e4b9185a5a0db3b8c3
dan [Wed, 7 May 2014 19:59:36 +0000 (19:59 +0000)]
Fix the way parenthesis in MATCH expressions are handled by FTS if the tokenizer considers them to be token characters.
FossilOrigin-Name:
e21bf7a2ade6373e94ea403c665f78e1ad22143f
drh [Wed, 7 May 2014 18:23:04 +0000 (18:23 +0000)]
Make sure the group_concat() function returns an empty string, not a NULL,
if it has at least one input row. Fix for ticket [
55746f9e65f8587 ].
FossilOrigin-Name:
d01cedaa73d8f9e5502502a1068a9509d1de295c
drh [Wed, 7 May 2014 18:21:56 +0000 (18:21 +0000)]
Ensure that the sqlite3StrAccumAppend() routine is never called with a NULL
second argument. Doing so is harmless when N==0, but it causes an assert()
to fail that was placed to quiet static analyzers.
FossilOrigin-Name:
f03fbf3700d9d4a654e3aa2e5caa810a8416bed9
drh [Wed, 7 May 2014 17:19:31 +0000 (17:19 +0000)]
Make sure the group_concat() function returns an empty string, not a NULL,
if it has at least one input row. Fix for ticket [
55746f9e65f8587 ].
FossilOrigin-Name:
0deac8737545a020d344be96fff16660a7977ab8
drh [Wed, 7 May 2014 15:46:04 +0000 (15:46 +0000)]
Add the SQLITE_IOCAP_IMMUTABLE bit as a possible return value from
the xDeviceCharacteristics method in the VFS. Add the "nolock" and
"immutable" query parameters to URI filenames.
FossilOrigin-Name:
1a0d7d3d9dd54b783e3a805961287dd01f94770c
drh [Wed, 7 May 2014 15:32:03 +0000 (15:32 +0000)]
Fix nolock and immutable so that they work even if READONLY is requested.
FossilOrigin-Name:
e193aced2942e7405d0f45f90d4954b5663b4ba5
drh [Wed, 7 May 2014 15:09:24 +0000 (15:09 +0000)]
Add test cases and documentation for the nolock and immutable query
parameters.
FossilOrigin-Name:
19d56cbaca222b32e2e354063149cccd89441d73
mistachkin [Tue, 6 May 2014 21:37:52 +0000 (21:37 +0000)]
Merge updates from trunk.
FossilOrigin-Name:
69698ae90c415cb32d2c144725853483da65f0ff
mistachkin [Tue, 6 May 2014 21:37:10 +0000 (21:37 +0000)]
Update the template VSIX package file as well.
FossilOrigin-Name:
99d96765cc378fde7b285f4577ea2b5d130d9a61
mistachkin [Tue, 6 May 2014 21:30:25 +0000 (21:30 +0000)]
Merge updates from trunk.
FossilOrigin-Name:
7579c44ac1865133c37b16f2acc074d1eed4fdfd
mistachkin [Tue, 6 May 2014 21:26:34 +0000 (21:26 +0000)]
Enhance the VSIX package creation tool to better support Visual Studio 2013.
FossilOrigin-Name:
c1fb04f61eb74d80d1b7607ae6904fe2e1717988
mistachkin [Tue, 6 May 2014 00:09:46 +0000 (00:09 +0000)]
Refactor VSIX package creation tool to better support Visual Studio 2013.
FossilOrigin-Name:
8be166af239cbdaff3937c4003a6dc6e8a96e53a
mistachkin [Mon, 5 May 2014 22:50:19 +0000 (22:50 +0000)]
Merge updates from trunk.
FossilOrigin-Name:
668ed76ac6cfd5810aea7319c752d77fafaab319
mistachkin [Mon, 5 May 2014 22:43:17 +0000 (22:43 +0000)]
When building for Windows 8.0 using Visual Studio 2013, make sure the cross-compilation native library path is set correctly.
FossilOrigin-Name:
c1ab9092e29bc9d172c1f1a3becbcc83b79f2080
mistachkin [Mon, 5 May 2014 21:08:47 +0000 (21:08 +0000)]
More modularization work on the MSVC batch build tool.
FossilOrigin-Name:
9a06773acc181e981f61f476a8e56417b98beba9
mistachkin [Mon, 5 May 2014 20:35:44 +0000 (20:35 +0000)]
Merge updates from trunk.
FossilOrigin-Name:
eaa8fc810fcff8171b6c5cff8c661a6faf0e023b
drh [Mon, 5 May 2014 20:32:15 +0000 (20:32 +0000)]
Create new header file "os_setup.h" used to detect the operating system
at compile-time, and "os_win.h" that contains windows-specific header in
formation.
FossilOrigin-Name:
bd92e0f80c1158d810b0d47e38f2fe06ff24bb8c
mistachkin [Mon, 5 May 2014 20:24:34 +0000 (20:24 +0000)]
Work on cleaning up the MSVC batch build tool integration with Visual Studio 2013.
FossilOrigin-Name:
b5a72dfd59fba6a9938ac1afdec06a2e6809fd2d
drh [Mon, 5 May 2014 20:21:52 +0000 (20:21 +0000)]
Attempt to fix the build on beagleboard.
FossilOrigin-Name:
3ac75725a66730566105ad184a988a8f80f51055
mistachkin [Mon, 5 May 2014 18:24:47 +0000 (18:24 +0000)]
Centralize and reform use of the Win32 related include files.
FossilOrigin-Name:
857f2baf9b722e4eb1ac0d50fe03e32d5176185b
mistachkin [Mon, 5 May 2014 17:49:16 +0000 (17:49 +0000)]
Merge updates from trunk.
FossilOrigin-Name:
6f07f20e41446212a86989a5e6ce7f12998a3ae3
mistachkin [Mon, 5 May 2014 17:45:44 +0000 (17:45 +0000)]
Merge updates from trunk.
FossilOrigin-Name:
a3cfd81339267c87db511cedf35ec209ee1f1a72
mistachkin [Mon, 5 May 2014 17:43:28 +0000 (17:43 +0000)]
Fix several header file comments. No changes to code.
FossilOrigin-Name:
dd6eb5d1eb4d50023a008fac116497ede29600c1
mistachkin [Fri, 2 May 2014 22:39:54 +0000 (22:39 +0000)]
Enhance the Win32 VFS I/O retry logic.
FossilOrigin-Name:
4760504396bcf44528eb8de9ed7aa5d9659c54b6
mistachkin [Fri, 2 May 2014 21:42:31 +0000 (21:42 +0000)]
Merge updates from trunk.
FossilOrigin-Name:
598a3875ce98015e9a38db54bd0cb6290424c3d8
mistachkin [Fri, 2 May 2014 21:38:02 +0000 (21:38 +0000)]
Merge updates from trunk.
FossilOrigin-Name:
c4d1d8a0db48f523d1624f2468261c171152c0f7
dan [Fri, 2 May 2014 14:54:56 +0000 (14:54 +0000)]
Fix a broken test case in fuzz.test.
FossilOrigin-Name:
faa469355eabb2c407f24638b090725448aac37f
drh [Fri, 2 May 2014 00:09:40 +0000 (00:09 +0000)]
Add a comment explaining why WhereLoop cost adjustments are omitted for
skip-scan loops.
FossilOrigin-Name:
3bc43594aaeee9225c0590677fcce480bedcb37b
dan [Thu, 1 May 2014 20:26:48 +0000 (20:26 +0000)]
Fix an obscure problem to do with temp register allocation that could occur if more than one simple SELECT within a compound SELECT uses a partial sort.
FossilOrigin-Name:
427409ae106cdab7892a6b50fe30c5f52de5addc
drh [Thu, 1 May 2014 20:24:21 +0000 (20:24 +0000)]
Add #ifdefs for test coverage. Add a testcase().
FossilOrigin-Name:
be2702ce35c713b33c9b7689643b45fb0de6af2a
dan [Thu, 1 May 2014 10:19:16 +0000 (10:19 +0000)]
Update a test case in wal2.test that explicitly corrupts a checksum in the wal file to account for the fact that the first byte of said checksum may initially be 0xFF.
FossilOrigin-Name:
2b935bdea1452505f36dc8c7aad49e6c42f4eceb
drh [Thu, 1 May 2014 01:49:22 +0000 (01:49 +0000)]
Take out the special handling of nolock=true in os_win.c and add it to
pager.c, so that it works for all VFSes. Add the pPager->noLock boolean
for clarity.
FossilOrigin-Name:
725c1c14be331bce9bf074960dbfa7b6d4c1ba87
drh [Thu, 1 May 2014 01:20:05 +0000 (01:20 +0000)]
Avoid unnecessary xUnlock operations on temp file.
FossilOrigin-Name:
1829c38c3233c8cb194fae6d560d35a8916b1348
drh [Thu, 1 May 2014 01:13:08 +0000 (01:13 +0000)]
Add the immutable=TRUE query parameter and SQLITE_IOCAP_IMMUTABLE, either
of which prevents locking of the database and omits tests for existance
of journal files.
FossilOrigin-Name:
71f152c85d79ebd9ca48bc9c4c71fc4debaf2437
drh [Wed, 30 Apr 2014 20:32:41 +0000 (20:32 +0000)]
Merge in all recent changes and enhancements from trunk.
FossilOrigin-Name:
84243f844417f888ab731841f7dbf95749f6e034
dan [Wed, 30 Apr 2014 18:11:55 +0000 (18:11 +0000)]
Fix a problem in calculating the costs of "OR" scans.
FossilOrigin-Name:
9bbca48b42e4fe16f2188e18dc736da30a96435c
dan [Wed, 30 Apr 2014 15:22:25 +0000 (15:22 +0000)]
Modify the way the costs of various query plans are estimated. If the user supplies a likelihood() value (or equivalent) on an indexed WHERE constraint, use it to estimate the number of index rows visited.
FossilOrigin-Name:
90e36676476e8db00658772e6c938242f766d306
dan [Wed, 30 Apr 2014 15:00:16 +0000 (15:00 +0000)]
Add text to the header comment of whereLoopAddBtree() describing how the costs of various b-tree loops are estimated.
FossilOrigin-Name:
05e6e16cb28c9ffb4596bd2ef81f687c5403ecbb
dan [Wed, 30 Apr 2014 14:53:21 +0000 (14:53 +0000)]
Update a couple of test cases to account for the fact that this branch prefers an index scan and partial sort over a full-table scan and full external sort.
FossilOrigin-Name:
9b975bf33cd8fc28c64183a9642bf9fb436a4746
dan [Wed, 30 Apr 2014 14:47:01 +0000 (14:47 +0000)]
Fix a couple of out-of-date comments in where.c.
FossilOrigin-Name:
eefeda32d54efbbdf7d20b719299eda48b891fae
drh [Wed, 30 Apr 2014 14:22:38 +0000 (14:22 +0000)]
Improved rendering of LogEst values corresponding to real values near 0.0
in the tool/logest.c utility program.
FossilOrigin-Name:
32910c8c595858245bb7ecfe3aa0f90eeae641af
drh [Wed, 30 Apr 2014 13:19:09 +0000 (13:19 +0000)]
Fix long-standing typos in comments.
FossilOrigin-Name:
b9f91317c34d07769a95dc2f905a6ccabceb64a3
dan [Tue, 29 Apr 2014 19:01:57 +0000 (19:01 +0000)]
Test that the default values used when sqlite_stat1 data is not available are calculated correctly. Fixes for the same.
FossilOrigin-Name:
e2d42f909de85a0586389f2dc0e654f7af2e351a
dan [Tue, 29 Apr 2014 16:46:24 +0000 (16:46 +0000)]
Merge trunk changes into this branch.
FossilOrigin-Name:
d74299f037f3a6a4b3bce8b4d1c76c407c1f3b3e
dan [Tue, 29 Apr 2014 16:10:22 +0000 (16:10 +0000)]
Ignore likelihood() values on indexed IPK lookups.
FossilOrigin-Name:
5bb7757a7b32a74482d3e93e9c9eea02273fe981