]>
git.ipfire.org Git - thirdparty/sqlite.git/log
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
dan [Tue, 6 May 2014 16:21:30 +0000 (16:21 +0000)]
Add a little extra variety to the tests in sort4.test.
FossilOrigin-Name:
7de6aee6a5cb5c7f89dced89f2ebf38f8be7a4fa
dan [Tue, 6 May 2014 15:38:07 +0000 (15:38 +0000)]
Re-implement the core of the multi-threaded sorter tests in sort4.test using C. Run each test in sort4.test ten times, or repeat all tests for 300 seconds as part of the "multithread" permutation test.
FossilOrigin-Name:
208b2b04d4d282bec4424ea7160a123ba549d118
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
dan [Mon, 5 May 2014 20:03:50 +0000 (20:03 +0000)]
Add test file sort4.test, containing brute force tests for the multi-theaded sorter.
FossilOrigin-Name:
9cc364c42cc64ab7b55b5c55e303fb63a456cf00
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
dan [Mon, 5 May 2014 15:58:40 +0000 (15:58 +0000)]
Fix a race condition in the sorter code.
FossilOrigin-Name:
2d2edfe58db101d42a96772b856e6e55b401aab6
dan [Mon, 5 May 2014 09:08:54 +0000 (09:08 +0000)]
Add tests so that the "coverage-sorter" test permutation covers all branches in vdbesort.c. Fix a few minor problems in the same file.
FossilOrigin-Name:
bde28b702dabd02269e333535cc41481351c5efc
dan [Sat, 3 May 2014 20:43:13 +0000 (20:43 +0000)]
Add an extra fault-injection test to sortfault.test. Remove an unreachable branch from vdbesort.c.
FossilOrigin-Name:
a33a366ba8a0da81ddd895d552a348441ef8529a
dan [Sat, 3 May 2014 19:33:00 +0000 (19:33 +0000)]
Fix a race condition in the sorter.
FossilOrigin-Name:
32ccf3ae18531682dfd039fa8df6ad9a907ac455
dan [Sat, 3 May 2014 14:28:14 +0000 (14:28 +0000)]
Fix a problem in the sorter causing it to return spurious SQLITE_NOMEM errors when configured to use memsys3 or memsys5.
FossilOrigin-Name:
3a66c4e1bf311d38668dfcdcd77867feff6db7bd
drh [Sat, 3 May 2014 13:53:37 +0000 (13:53 +0000)]
Get SQLITE_MUTEX_STATIC_APP1 and _APP2 working for the debugMutex
implementation.
FossilOrigin-Name:
f49ba1c926c63ee1c4609930138389fca182c845
drh [Sat, 3 May 2014 12:00:01 +0000 (12:00 +0000)]
Add two new static mutexes, SQLITE_MUTEX_STATIC_APP1 and _APP2, for use by
the application program. First intended use is in test programs for the
memory allocation logic where one does not want to allocating a _FAST
or _RECURSIVE mutex since that would involve using the memory allocation
system under test.
FossilOrigin-Name:
13686035dd1cf67ad9c6d282ab13c3259e7273d1
drh [Sat, 3 May 2014 11:22:09 +0000 (11:22 +0000)]
Add the SQLITE_DEFAULT_WORKER_THREADS compile-time option.
Fix a NULL-pointer dereference that can occur following OOM.
FossilOrigin-Name:
e0dea89b3e9f295f80210fcca007681bf1b08692
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
mistachkin [Fri, 2 May 2014 19:12:37 +0000 (19:12 +0000)]
Fix typo in Windows makefile. Make sure the WaitForSingleObjectEx system call is always available.
FossilOrigin-Name:
d7ed529fa2aa5cb13edaabca2acaad06dffef569
drh [Fri, 2 May 2014 18:46:52 +0000 (18:46 +0000)]
Do not run the vdbeRecordCompareDebug() assert if pKeyInfo->db is NULL since
in that case there would be no way to check for a memory allocation failure.
FossilOrigin-Name:
63ed2d6acb82be8a74dbf6a61388be6da6113985
dan [Fri, 2 May 2014 18:05:38 +0000 (18:05 +0000)]
Merge orderby-planning with this branch.
FossilOrigin-Name:
d9549de31741239ece060e448b592ce8fc5b8042
drh [Fri, 2 May 2014 17:33:16 +0000 (17:33 +0000)]
Simplify assert() statements used to verify correct operation of
record comparison routines.
FossilOrigin-Name:
3300d62dcbe74842cf86ca436959fe4e77a89f84
dan [Fri, 2 May 2014 17:12:41 +0000 (17:12 +0000)]
Fix some broken asserts in btree.c and vdbeaux.c that may fail following an OOM error.
FossilOrigin-Name:
e15f47064bef431c0afd8bf93eb4e160c23ad562
drh [Fri, 2 May 2014 16:22:55 +0000 (16:22 +0000)]
Failure to extend a temp file for use with mmap() in vdbesort.c is benign.
FossilOrigin-Name:
d4d396387d373bd1e82eda2c7c2e7ca35ec099c4
dan [Fri, 2 May 2014 16:03:57 +0000 (16:03 +0000)]
Remove a faulty assert() from vdbesort.c.
FossilOrigin-Name:
d95d68aa1d14b750888d50068380cc107f9070df
drh [Fri, 2 May 2014 15:25:24 +0000 (15:25 +0000)]
Fix a faulty assert() statement.
FossilOrigin-Name:
9196ce407379ca3b151b601b98848771e5cb4e8f
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 13:09:06 +0000 (13:09 +0000)]
Merge latest trunk enhancements and fixes into the orderby-planning branch.
FossilOrigin-Name:
84862d3a095629d20c8e7b8a16f4dc26cd41ab6d
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
dan [Tue, 29 Apr 2014 12:01:35 +0000 (12:01 +0000)]
Fix a test case so that it updates sqlite_stat1 consistently.
FossilOrigin-Name:
2dc5a0b55567f13f0528ed17242e680cde2f2a29
dan [Mon, 28 Apr 2014 20:11:20 +0000 (20:11 +0000)]
Do not reduce the number of rows scanned at all for "IS NOT NULL" constraints. Fix a bug in calculating the number of rows visited by scans of partial indicies.
FossilOrigin-Name:
a8ae93f0cffa116df0ba34d46a53f49d42dace41
dan [Mon, 28 Apr 2014 19:34:06 +0000 (19:34 +0000)]
The trunk assumes that an open range constraint on an indexed term (col>?) term matches 1/4 of the indexed rows, and that a closed constraint (col BETWEEN ? AND ?) matches 1/64. Change this branch to do the same.
FossilOrigin-Name:
4047ac75e2a8f0b330255501c42e4f04e5ab500d
drh [Mon, 28 Apr 2014 18:02:21 +0000 (18:02 +0000)]
Merge all recent trunk enhancements and fixes into the sessions branch.
FossilOrigin-Name:
e158812c34b01ce516d26636a489509bf61d1c27
drh [Mon, 28 Apr 2014 17:56:19 +0000 (17:56 +0000)]
Add the sqlite3_rtree_query_callback() API to the RTree virtual table.
(Cherrypick from the sessions branch.)
FossilOrigin-Name:
af2cbe64adab5f9e3b0f3da00d06428088589d7f
drh [Mon, 28 Apr 2014 17:51:12 +0000 (17:51 +0000)]
Add the sqlite3_rtree_query_callback() API to the RTree virtual table.
FossilOrigin-Name:
3dca2809352c6c6d56db74447a814f77011c6220
dan [Mon, 28 Apr 2014 15:11:25 +0000 (15:11 +0000)]
Update unordered.test to take into account for the fact that SQLite now prefers a full-table scan over a non-covering index scan that visits a large percentage of the table rows.
FossilOrigin-Name:
20f468dfbcb247e51446fad411a6e6cc0d130411
dan [Mon, 28 Apr 2014 12:08:23 +0000 (12:08 +0000)]
Add an extra column to a table in analyze9.test to give the planner a little more reason to select an index.
FossilOrigin-Name:
1b95544f84bf83c28cc15f6d0690fdf8a6bb3941
dan [Mon, 28 Apr 2014 10:00:59 +0000 (10:00 +0000)]
Update test script analyze3.test to account for the fact that SQLite now prefers a full-table scan over a non-covering index scan that visits a large percentage of the table rows.
FossilOrigin-Name:
35f46a55d866b9a87c1321aab8e0cfe86ccadb93
dan [Mon, 28 Apr 2014 09:35:31 +0000 (09:35 +0000)]
Modify internal function whereLoopAdjustCost() so that it does not prefer a skip-scan over a regular index scan even if the regular scan uses a subset of the WHERE terms used by the skip-scan.
FossilOrigin-Name:
88a5758dcce891eb7be15432ebdc9f80071d413b
dan [Mon, 28 Apr 2014 08:49:54 +0000 (08:49 +0000)]
Fix an error in estimating of the number of rows visited by a range scan.
FossilOrigin-Name:
d491de62fce69d93e89f65f7713972f7c2c451f7
dan [Sat, 26 Apr 2014 20:21:14 +0000 (20:21 +0000)]
Fix an sqlite3_stmt_status() problem caused by recent changs on this branch.
FossilOrigin-Name:
dee204092421a239f9f60ab83c3a5b3e24d1baea
drh [Sat, 26 Apr 2014 19:23:14 +0000 (19:23 +0000)]
Update requirements marks to fix typos in the requirements text.
No changes to code.
FossilOrigin-Name:
f5a263658187250044afc1a74000e6f6962733ca
drh [Sat, 26 Apr 2014 17:52:08 +0000 (17:52 +0000)]
Allow the xfer optimization to proceed if the DEFAULT on the very first
column of the two tables is different. This is a refinement of the
fix for ticket [
f67b41381a ].
FossilOrigin-Name:
349f483499dd685a8da94923b6bd810a52e5e236
dan [Sat, 26 Apr 2014 14:07:57 +0000 (14:07 +0000)]
Avoid transfering records between tables unless the default values for all columns are the same. Fix for [
f67b41381a ].
FossilOrigin-Name:
f8c4c495e6de1f124d205383d4bafa46accbff5c
dan [Fri, 25 Apr 2014 20:22:45 +0000 (20:22 +0000)]
If the user provides likelihood() data for a WHERE clause term used as part of an index key, have the planner use it when calculating the expected number of rows visited by the loop.
FossilOrigin-Name:
c51efaa5d29ee0a91b9e6a83a8dd82530670811a
drh [Fri, 25 Apr 2014 17:37:16 +0000 (17:37 +0000)]
Add test cases to ensure correct operation of joins with a virtual table
that include DISTINCT and ORDER BY clauses. Verification for ticket
[
388d01d4bb8f9 ].
FossilOrigin-Name:
5ada136f43ce744ae8c349eff39838eb44611b6e
drh [Fri, 25 Apr 2014 16:29:03 +0000 (16:29 +0000)]
Enhance the sqlite3_rtree_query_info object to report on the number of
elements in the priority queue at each level.
FossilOrigin-Name:
f7dad408dd46a1e3612b6142a3afb1d0d4fcda00
dan [Fri, 25 Apr 2014 15:01:01 +0000 (15:01 +0000)]
Store values loaded from the stat1 table as logarithmic values in memory.
FossilOrigin-Name:
1bd74c49ddab6f53bb6eaa57907eff44c2580dd6
drh [Fri, 25 Apr 2014 14:42:17 +0000 (14:42 +0000)]
Make sure ORDER BY clauses on joins that involve virtual tables and that
have a DISTINCT clause work correctly. This is a candidate fix for
ticket [
388d01d4bb8f9 ]. Test cases for that ticket will be checked in
separately.
FossilOrigin-Name:
171138122690faafde0dcab0201b90bdf02d3637
drh [Fri, 25 Apr 2014 12:35:31 +0000 (12:35 +0000)]
When VDBE_PROFILE is enabled, ignore negative opcode times, which sometimes
occur, perhaps due to context swaps.
FossilOrigin-Name:
4e88042f9d3e678914da96c0eb276f3d8fca5a94
dan [Thu, 24 Apr 2014 20:04:49 +0000 (20:04 +0000)]
Changes to the way the planner calculates the costs of various table and index scans. Some test cases still failing.
FossilOrigin-Name:
c5a6ec0a880652dc8f4593d9f7acd58ddc3dc5f3
drh [Thu, 24 Apr 2014 16:25:25 +0000 (16:25 +0000)]
Improved header comment on the vdbesort.c module. No changes to code.
FossilOrigin-Name:
bf09ce24d054bc68c226064f5f28d97e0e648a13
drh [Thu, 24 Apr 2014 15:06:25 +0000 (15:06 +0000)]
Reopen the orderby-planning branch and merge in the latest trunk enhancements
and fixes.
FossilOrigin-Name:
6077ddcd93318e24b9756adaaf293ba9fb3cedf7
drh [Thu, 24 Apr 2014 12:28:28 +0000 (12:28 +0000)]
Improvements to comments. Store some extra information in SqliteThread that
is useful for debugging.
FossilOrigin-Name:
9fb5e212089d85cdd3b4787dd69c72e6d84560b6
drh [Wed, 23 Apr 2014 12:57:55 +0000 (12:57 +0000)]
Merge all recent trunk changes into the threads branch.
FossilOrigin-Name:
e2c9f71a451e44040624b9f255b4510743513019
drh [Tue, 22 Apr 2014 19:42:22 +0000 (19:42 +0000)]
Change from using the win32-none VFS to just a query parameter.
FossilOrigin-Name:
ffceacf61905dc3553978ba5f68e133947eca2fa
mistachkin [Tue, 22 Apr 2014 19:34:16 +0000 (19:34 +0000)]
Add some OSTRACE calls for consistency.
FossilOrigin-Name:
be292d559748a24ff012266a1f58ce6c027e0411
drh [Tue, 22 Apr 2014 19:30:00 +0000 (19:30 +0000)]
Add the win32-none VFS which omits rollback-journal locking.
FossilOrigin-Name:
03e3c5a8b17a219a49bfbe79b7debd27ace8ad85
drh [Mon, 21 Apr 2014 18:13:37 +0000 (18:13 +0000)]
Fix the generation of sqlite3_rtree_query_info.iRowid and add test cases
to verify that it is fixed.
FossilOrigin-Name:
eba95ead49f8f8ce45d400186562ff0066537c5c
mistachkin [Mon, 21 Apr 2014 18:00:11 +0000 (18:00 +0000)]
Preliminary changes to support building VSIX packages for Windows 8.0 and Windows Phone 8.0 using Visual Studio 2013.
FossilOrigin-Name:
3bf97c811a25babf760f256245c756ed6710f8ba
drh [Mon, 21 Apr 2014 15:53:45 +0000 (15:53 +0000)]
Be sure to initialize the sqlite3_rtree_query_info.iRowid field for the
leaves of the R-Tree when doing a query callback search.
FossilOrigin-Name:
4394693882c04c19ebe87ef7547c57e679554397
drh [Mon, 21 Apr 2014 15:21:19 +0000 (15:21 +0000)]
Fix an off-by-one error in setting the "iLevel" field of the
sqlite3_rtree_query_info structure passed into the RTree query callback.
FossilOrigin-Name:
d708f159abfb3b87e2844463088d4fb7f8da9c97
drh [Mon, 21 Apr 2014 13:36:54 +0000 (13:36 +0000)]
Comment tweaks on the test case for the [
b75a9ca6b0 ] bug fix.
FossilOrigin-Name:
65d2544af9adc1e2f1d193e57f8be0422fb0d5eb
dan [Mon, 21 Apr 2014 13:21:56 +0000 (13:21 +0000)]
Avoid discarding an ORDER BY clause in the case where an identical GROUP BY clauses uses an index to group, but not sort, the rows. Fix for [
b75a9ca6b0 ].
FossilOrigin-Name:
de9a490f594183f337a2ec9e0f87792eac83548b
drh [Fri, 18 Apr 2014 22:20:31 +0000 (22:20 +0000)]
Clean up the proper-subset cost adjustment logic to make it more compact
and easier to read and so that full branch test coverage is more easily
obtained.
FossilOrigin-Name:
9a5d38c79d2482a23bcfbc3ff35ca4fa269c768d
drh [Fri, 18 Apr 2014 13:57:39 +0000 (13:57 +0000)]
Add to speedtest1.c the --threads option for setting the
SQLITE_CONFIG_WORKER_THREADS configuration.
FossilOrigin-Name:
5fce40c44aacf883df2e8e9472c399a6e92197b3
drh [Fri, 18 Apr 2014 13:40:07 +0000 (13:40 +0000)]
Fix harmless compiler warnings.
FossilOrigin-Name:
f8f72ecb9052a4cace1db75879fb8b5131ea4f50
drh [Fri, 18 Apr 2014 12:38:54 +0000 (12:38 +0000)]
Merge recent trunk changes into the threads branch.
FossilOrigin-Name:
8729aa3e3ed1da2e15408ef8705cbe185cd2a5ac
drh [Fri, 18 Apr 2014 01:37:08 +0000 (01:37 +0000)]
Further improvements to the RTREE_DECODE_COORD() method, to take advantage
of known processor byte orders when available. This makes the code 3% faster,
according to valgrind. Also add test cases to make sure the on-disk
representation is correct.
FossilOrigin-Name:
6f3e94f4b1b403cd7bfc5e8e0ffbd61b5174d3a4
drh [Fri, 18 Apr 2014 01:14:46 +0000 (01:14 +0000)]
Merge the latest changes from sessions.
FossilOrigin-Name:
d9eef5b03c7c4bb69c11eda41152ee81aed1cac7
drh [Fri, 18 Apr 2014 01:10:05 +0000 (01:10 +0000)]
Merge recent trunk changes into sessions.
FossilOrigin-Name:
95e77efe076ab421bd246119c47dba5dacf9d087