]>
git.ipfire.org Git - thirdparty/sqlite.git/log
drh [Mon, 17 Feb 2014 22:40:43 +0000 (22:40 +0000)]
Add logic to do test coverage measurements on the VDBE code.
FossilOrigin-Name:
ce184c7bb16988641d37c908d9b3042456d4be3d
drh [Mon, 17 Feb 2014 15:40:19 +0000 (15:40 +0000)]
Add a test case for OP_SoftNull.
FossilOrigin-Name:
f29d194e03d6bcc78bf883b77e591dbccada02f0
drh [Mon, 17 Feb 2014 15:36:39 +0000 (15:36 +0000)]
Merge the VDBE_PROFILE fixes from trunk.
FossilOrigin-Name:
2914e4191121004a3f564b1fbf1c235dcc595503
drh [Mon, 17 Feb 2014 14:59:22 +0000 (14:59 +0000)]
Avoid unnecessary calls to applyAffinity() during INSERT and UPDATE
operations, especially for table that have indices and tables for which
all columns have affinity "NONE".
FossilOrigin-Name:
35b4d6e938164fabaf30b504c54cfd9a69060cee
drh [Mon, 17 Feb 2014 01:13:28 +0000 (01:13 +0000)]
Fix the VDBE_PROFILE logic. Add a script to process the output file.
FossilOrigin-Name:
7adb3da235c8c162c84f05ef4ccf1cc463805d5f
drh [Sun, 16 Feb 2014 01:55:49 +0000 (01:55 +0000)]
Enhance the code generator for INSERT INTO ... SELECT so that the SELECT
generates output directly in the registers that INSERT INTO will be using,
in many cases, and OP_SCopy operations can thus be avoided.
FossilOrigin-Name:
aa2d8b0e8154dd2f5e2c837dc11ab362b083495b
drh [Fri, 14 Feb 2014 23:49:13 +0000 (23:49 +0000)]
Seek past NULLs in a top-constrained search. Avoid checking for NULLs in
the body of the search.
FossilOrigin-Name:
e07a32f30862acf3b322d4d8deb015846d6f8f5f
drh [Fri, 14 Feb 2014 20:59:53 +0000 (20:59 +0000)]
Reduce the number of cases where it is necessary to check for NULL after
the loop terminating condition.
FossilOrigin-Name:
3c1ae447dec8fc2af1c5105134061717594ac0e0
drh [Fri, 14 Feb 2014 15:13:36 +0000 (15:13 +0000)]
Add OP_IdxGT and OP_IdxLE as distinct opcodes. Formerly these operations where
done using OP_IdxGE and OP_IdxLT with the P5 flag set. But VDBE code is easier
to read with distinct opcode names. Also change OP_SeekGe to OP_SeekGE, and
so forth, so that the capitalization is consistent. The whole point of this
change is to improve the readability of VDBE listings.
FossilOrigin-Name:
b6bea903ac8e1717ed50b221d73bd0be061c7663
mistachkin [Fri, 14 Feb 2014 00:25:03 +0000 (00:25 +0000)]
Revise how the Tcl system encoding is handled by the test suite.
FossilOrigin-Name:
9e573198e107f1b85ee37c52a10343d38968bda1
mistachkin [Thu, 13 Feb 2014 21:57:48 +0000 (21:57 +0000)]
Improvements to the makefile and README for MSVC.
FossilOrigin-Name:
b22b61406899c2694dae984995d2484fdb8122f1
dan [Thu, 13 Feb 2014 19:27:08 +0000 (19:27 +0000)]
Ensure that if the "psow=0" URI option or FCNTL_POWERSAFE_OVERWRITE file-control is used to clear the power-safe overwrite flag, extra padding frames are added to the WAL file.
FossilOrigin-Name:
48c821fd97a8f03757c90560c37a46bd0843570e
drh [Thu, 13 Feb 2014 19:10:24 +0000 (19:10 +0000)]
Change README to README.md and expand it. Remove unrelated and obsolete files.
FossilOrigin-Name:
18d4e258c45c32984b23d97b896a761eeef2dbdf
dan [Thu, 13 Feb 2014 18:46:59 +0000 (18:46 +0000)]
Avoid passing a flags argument with the internal WAL_SYNC_TRANSACTIONS bit set when calling sqlite3OsSync().
FossilOrigin-Name:
e3b79e920c298a39613631d689d1a2f182d00496
drh [Thu, 13 Feb 2014 13:42:43 +0000 (13:42 +0000)]
Update the tclconfig files to the latest from http://core.tcl.tk/tclconfig.
FossilOrigin-Name:
b81ba7a4bc7e840fce25fc6801957a64f877ff60
drh [Wed, 12 Feb 2014 23:52:16 +0000 (23:52 +0000)]
Minor simplifications to the "zeroPage()" routine in btree.c.
FossilOrigin-Name:
cc8f10bcb206c9def69b06f26decf025b8d9119d
drh [Wed, 12 Feb 2014 21:31:12 +0000 (21:31 +0000)]
Remove the "rowid cache" that sought to remember the largest rowid for a
table and thereby speed up OP_NewRowid. That cache was ineffective.
Removing it results in a performance increase of 0.4%, less memory usage,
and a slightly smaller library size.
FossilOrigin-Name:
56bc5ce8958c8e6250531b4052b905d7ac993db3
drh [Wed, 12 Feb 2014 14:43:52 +0000 (14:43 +0000)]
Make sure "rowid" columns are correctly resolved in joins between normal
tables and WITHOUT ROWID tables. Fix for ticket [
c34d0557f740c45070 ].
FossilOrigin-Name:
5d01426ddfb2d47c57f93f71378594e637424be0
drh [Tue, 11 Feb 2014 16:24:34 +0000 (16:24 +0000)]
Increase the version number to 3.8.4
FossilOrigin-Name:
0a8bcbbd4e11a60923736b2be9b1ce83ea2263fb
drh [Tue, 11 Feb 2014 16:22:18 +0000 (16:22 +0000)]
Updates to the command-line shell. Simplify the banner message. Add the
".save" command as an alias for ".backup". When starting with no arguments,
include a banner message warning that the database is transient and in-memory
and mention the ".open" command.
FossilOrigin-Name:
f5ad1e1bf2828c5da70c1ff944d8212036142e6f
drh [Tue, 11 Feb 2014 14:37:51 +0000 (14:37 +0000)]
Fixes to the "editline" support in the command-line shell.
FossilOrigin-Name:
7989ce5f105657060a39be295255da8eff9ed56e
drh [Tue, 11 Feb 2014 01:50:29 +0000 (01:50 +0000)]
Make sure that virtual WHERE-clause terms do not get transformed into real
terms when processing set of OR-connected terms.
Fix for ticket [
4c86b126f22ad ].
FossilOrigin-Name:
c950d6c4117d076f871518e738cdf9e8c46a19fc
drh [Mon, 10 Feb 2014 21:07:51 +0000 (21:07 +0000)]
Fix a pointless conditional. Add a test case.
FossilOrigin-Name:
9367632dd7e4fec9197227e35b0627c2e81ebffc
drh [Mon, 10 Feb 2014 19:59:27 +0000 (19:59 +0000)]
Add the ".save" command as an alias for ".backup". Improvements to the
way font changes are implemented on the in-memory database warning.
FossilOrigin-Name:
fe284afe739c497e153ac2bc0275f7c9e862c824
drh [Mon, 10 Feb 2014 19:36:06 +0000 (19:36 +0000)]
On unix, make the "transient in-memory database" text bold, but not red.
Leave the text read on windows.
FossilOrigin-Name:
c9eba2f7be468ae7fc843ffd5b09bd062ee311c3
drh [Mon, 10 Feb 2014 19:27:05 +0000 (19:27 +0000)]
In the command-line shell, on the banner, warn about the use of a
transient in-memory database in bold red text.
FossilOrigin-Name:
0fbc0fcec1b3a67065fa0ebb49375bf675789edc
drh [Mon, 10 Feb 2014 18:56:05 +0000 (18:56 +0000)]
Fix the compound-select-to-subquery converter so that it works with the
new compound-select object linkage introduced as part of the fix
for ticket [
31a19d11b97088296 ].
FossilOrigin-Name:
572d4be4db03ce4afe9ae70f148703c74e0d8de0
drh [Mon, 10 Feb 2014 16:13:42 +0000 (16:13 +0000)]
Modify the command-line shell to print a warning when using an in-memory
database.
FossilOrigin-Name:
90e9deae4a2bf63308a212226314aa7838c161d9
drh [Mon, 10 Feb 2014 15:56:34 +0000 (15:56 +0000)]
Improvements to a "Synopsis:" comment in the VDBE engine.
FossilOrigin-Name:
0dfa7ee9157ea6b1c745732d6c3fcd066cf4f849
drh [Mon, 10 Feb 2014 12:59:15 +0000 (12:59 +0000)]
Faster implementation for sqlite3MulInt64().
FossilOrigin-Name:
010c48f671e909cb406f3716102a0032bc72a592
drh [Mon, 10 Feb 2014 03:21:57 +0000 (03:21 +0000)]
Faster and smaller implementation of sqlite3_value_type().
FossilOrigin-Name:
5708bc24b8cab623b833121183042b43e5a7021b
drh [Sun, 9 Feb 2014 23:59:28 +0000 (23:59 +0000)]
Add a compound-query test to the speedtest1 test program.
FossilOrigin-Name:
532995759114ab7a7cba18cc9d8820d78eb1a96e
drh [Sun, 9 Feb 2014 18:02:09 +0000 (18:02 +0000)]
Use the WITH clause to help resolve names for SELECT statements on the left
of a compound query. Proposed fix for ticket [
31a19d11b97088296a ].
FossilOrigin-Name:
67bfd59d9087a987f15f6148efa1ff104983e1fb
drh [Sun, 9 Feb 2014 00:52:53 +0000 (00:52 +0000)]
Add the Mandelbrot Set testcase to the "cte" testset of speedtest1.
FossilOrigin-Name:
56febbeb575a298ae8839b3a59711150ceb9999d
drh [Sun, 9 Feb 2014 00:18:21 +0000 (00:18 +0000)]
Add a new "testset" to the speedtest1 program: The sudoku solver.
FossilOrigin-Name:
4677ef2f8a726573c48ee2e532c00a68308dd7e1
drh [Sat, 8 Feb 2014 23:20:32 +0000 (23:20 +0000)]
Do away with the "multi-register pseudo-table" abstration. Instead, just
use an OP_SCopy to load results directory from the result registers of
the co-routine.
FossilOrigin-Name:
1e64dd782a126f48d78c43a664844a41d0e6334e
drh [Sat, 8 Feb 2014 19:12:21 +0000 (19:12 +0000)]
Change the OP_Found opcode so that it expands zero-blobs prior to comparing
them. Fix for ticket [
fccbde530a6583b ]
FossilOrigin-Name:
e2303d1b0c17b6e7494fb7db8264f4c2ac193723
drh [Sat, 8 Feb 2014 13:24:04 +0000 (13:24 +0000)]
Fix a harmless compiler warning in VS2013.
FossilOrigin-Name:
83116ee3e0f2b9110c70a4f73a9badc9c2a56f28
drh [Sat, 8 Feb 2014 13:22:36 +0000 (13:22 +0000)]
Fix a harmless compiler warning in VS2013.
FossilOrigin-Name:
35f2793db5eb58484554477a23f8320843ebcd71
drh [Sat, 8 Feb 2014 13:12:19 +0000 (13:12 +0000)]
Tweaks to the generated VDBE code to make it a little easier to follow.
FossilOrigin-Name:
129217ee91782ec77ff82661753ae5bee8ca99d0
drh [Sat, 8 Feb 2014 04:24:37 +0000 (04:24 +0000)]
Enable constant expression factoring even if no tables are read and no
transaction is started.
FossilOrigin-Name:
a45b87713c0afca2be2ace9500513620a024c0a2
drh [Sat, 8 Feb 2014 01:40:27 +0000 (01:40 +0000)]
Change the OP_Trace opcode to OP_Init and give it the ability to jump to the
initialization code at the bottom of the program, thus avoiding the need for
an extra OP_Goto.
FossilOrigin-Name:
192dea97316144f15f6dd0eabff08a0bf9ef203e
drh [Fri, 7 Feb 2014 22:21:07 +0000 (22:21 +0000)]
Add opcodes OP_InitCoroutine and OP_EndCoroutine. Use these to remove the
need for separate boolean registers to record when a co-routine has finished.
FossilOrigin-Name:
5a88b6a7aef3a0d5380e19eee2ee38439cc9b08b
drh [Fri, 7 Feb 2014 19:33:31 +0000 (19:33 +0000)]
Fix redundant definitions of _LARGE_FILE and _LARGEFILE_SOURCE.
FossilOrigin-Name:
4043d879795bfad55af35e9cb48e0a42eb4087ae
drh [Fri, 7 Feb 2014 19:26:13 +0000 (19:26 +0000)]
In the TCL bindings, make sure Tcl_AppendResult() is always terminated
by "(char*)0" and not just "0".
FossilOrigin-Name:
ea4d23d1c0df4fde2e532daa081888712f465884
drh [Fri, 7 Feb 2014 19:18:10 +0000 (19:18 +0000)]
Change the OP_InitCoroutine instruction to jump over the co-routine
implementation.
FossilOrigin-Name:
a522f364a6b8ca6f69c353b30609a2166f6e94cf
drh [Fri, 7 Feb 2014 18:27:53 +0000 (18:27 +0000)]
Get rid of the OP_Undef and OP_IsUndef opcodes in favor of higher-level
OP_InitCoroutine and OP_EndCoroutine.
FossilOrigin-Name:
1ec0e9dd4b26d9f597adc8e062317d4866c5a6a6
drh [Fri, 7 Feb 2014 13:20:31 +0000 (13:20 +0000)]
Add the OP_Undef and OP_IsUndef opcodes. With these, use the first register
in the result register range as the flag to indicate EOF on an INSERT from
a SELECT, rather than allocating a separate boolean register for that task.
FossilOrigin-Name:
6fb7448550f28a3c93053e125faeaf11de1011d0
mistachkin [Fri, 7 Feb 2014 03:28:02 +0000 (03:28 +0000)]
More comment updates. No changes to code.
FossilOrigin-Name:
be24fbc22106e508975e316abe0471edd3833291
drh [Fri, 7 Feb 2014 02:29:45 +0000 (02:29 +0000)]
Update comments in vdbe.c. No changes to code.
FossilOrigin-Name:
1122b410de68a3c79b4c719a3a4cc4dc6a5bb39d
drh [Thu, 6 Feb 2014 23:56:27 +0000 (23:56 +0000)]
Delete the OP_VerifySchema opcode. Enhance OP_Transaction to do the schema
version checks that OP_VerifySchema used to do.
FossilOrigin-Name:
2f3376ebf13df44e6acf27cb1f07172cd8b34033
drh [Thu, 6 Feb 2014 13:18:51 +0000 (13:18 +0000)]
Change the spellfix1 virtual table to deterministically names its shadow
tables.
FossilOrigin-Name:
5219cdfc56ec3e1cd645ae6443ba72ce0df0339a
drh [Thu, 6 Feb 2014 02:46:08 +0000 (02:46 +0000)]
Add additional error messages and a progress spinner to the ".clone" command.
FossilOrigin-Name:
dd0db3f0cef1be46cea16d4e61ea3348b3b3bd3e
mistachkin [Thu, 6 Feb 2014 01:15:29 +0000 (01:15 +0000)]
Rename the '.repair' shell command to '.clone'.
FossilOrigin-Name:
4f9d95624ae4e123f83c835b5940f64d4a47be0d
drh [Thu, 6 Feb 2014 00:49:12 +0000 (00:49 +0000)]
Add the ".repair" command to the command-line shell.
FossilOrigin-Name:
d1dfadea87ecf18eeb6d2f21769deaa97473ca0e
mistachkin [Wed, 5 Feb 2014 11:05:47 +0000 (11:05 +0000)]
In the Win32 VFS, the winSysInfo variable should be static.
FossilOrigin-Name:
4a4dd371a72b7d475185923bebb4cd9bd83e1bd9
drh [Tue, 4 Feb 2014 23:45:45 +0000 (23:45 +0000)]
Do not mark the ephemeral tables used to hold the RHS of IN clauses as
unordered because the NGQP will use those ephemeral tables to help order the
output. This is not an issue for standard SQLite since ephemeral tables
there are always ordered, regardless of the hint. It only affects systems
that substitute an alternative storage engine.
FossilOrigin-Name:
f2504089df0bf4011864e67825b37f6aa3d03458
drh [Tue, 4 Feb 2014 20:46:41 +0000 (20:46 +0000)]
Remove the SF_Materialize flag from the SELECT object as it does not
accomplish anything useful.
FossilOrigin-Name:
65d5dcddbd34dfb2733a7a908c7c652ce2d610fe
drh [Tue, 4 Feb 2014 15:55:25 +0000 (15:55 +0000)]
Rearrange fields in the Parse object for a tighter packing, resulting in
an 8% size reduction on x64.
FossilOrigin-Name:
3e1a3f68d7457ff708222a3448404b593f018fc2
drh [Mon, 3 Feb 2014 17:04:29 +0000 (17:04 +0000)]
Performance optimizations in sqlite3PcacheFetch().
FossilOrigin-Name:
b60cc11ef775c23a2245d9e7a00dab34013f3ccb
drh [Mon, 3 Feb 2014 14:04:11 +0000 (14:04 +0000)]
Provide hints to the btree layer Next and Previous primitives to let them
know if they can be no-ops if the underlying index is unique.
FossilOrigin-Name:
6c643e45c274e755dc5a1a65673df79261c774be
drh [Mon, 3 Feb 2014 13:52:03 +0000 (13:52 +0000)]
drh [Mon, 3 Feb 2014 13:49:40 +0000 (13:49 +0000)]
Minor change to TEA extension docs in an attempt to make links work correctly.
FossilOrigin-Name:
af3c775e5d6a399bfc985a5dae27451908766546
drh [Fri, 31 Jan 2014 11:50:20 +0000 (11:50 +0000)]
Update the "sqlite3.1" unix manpage document.
FossilOrigin-Name:
21ce9e3a53aed62fbe075b0dbed9faa00218aadc
mistachkin [Fri, 31 Jan 2014 06:35:37 +0000 (06:35 +0000)]
Minor change to TEA extension docs in an attempt to make links work correctly.
FossilOrigin-Name:
492585c8208457120dde24f5fbf4db7e4e10ae73
drh [Thu, 30 Jan 2014 17:47:02 +0000 (17:47 +0000)]
Update evidence marks on SELECT tests. Comment changes only.
No changes to code or tests.
FossilOrigin-Name:
1973d80e474cb95d053e04415b22154897d4d710
drh [Thu, 30 Jan 2014 15:03:50 +0000 (15:03 +0000)]
Fix requirements marks only. No changes to code or tests.
FossilOrigin-Name:
4a34378b9b02e463081729186dcb9b0404dbcd06
drh [Thu, 30 Jan 2014 14:10:00 +0000 (14:10 +0000)]
Update a requirement mark and add some additional test cases to cover
the requirement associated with ORDER BY and LIMIT on compound SELECT
statements.
FossilOrigin-Name:
8560091e85f2f99a24810648868bf2e081c32698
mistachkin [Thu, 30 Jan 2014 12:45:32 +0000 (12:45 +0000)]
Enhance the MSVC makefile for better debugging symbol support.
FossilOrigin-Name:
c9bef0f29a5a7f04914d80e58105104babd4168c
dan [Thu, 30 Jan 2014 12:16:23 +0000 (12:16 +0000)]
Do not run test script mmapfault.test as part of the "inmemory_journal" permutation test.
FossilOrigin-Name:
b222b61a98dc1f3c2c48ea06efe7d82d9fcf4d75
mistachkin [Thu, 30 Jan 2014 11:12:52 +0000 (11:12 +0000)]
Enhance the MSVC makefile for better debugging symbol support.
FossilOrigin-Name:
c723ec2784d6b60c9781a435c84800b2bc7818d5
drh [Wed, 29 Jan 2014 01:46:12 +0000 (01:46 +0000)]
Make sure that sqlite3SelectDup() initializes the nSelectRow of the
duplicate Select object.
FossilOrigin-Name:
5bb29b82109224a2ad02920658fabd8fb0f27b3f
drh [Tue, 28 Jan 2014 20:36:22 +0000 (20:36 +0000)]
Fix harmless compiler warnings in the showdb utility program.
FossilOrigin-Name:
27c27daa3324b7c9323acfb972330367630bb64e
drh [Tue, 28 Jan 2014 18:53:29 +0000 (18:53 +0000)]
Fix a potential over-size and hence undefined shift operation.
FossilOrigin-Name:
6379b0729521146bc4ec27a9924492c7dc1d8a31
dan [Tue, 28 Jan 2014 17:49:13 +0000 (17:49 +0000)]
Minor bugfix in main.c so that the library builds with SQLITE_OMIT_WSD defined.
FossilOrigin-Name:
5e3b9ecc7b2b2e50952de819b99bafdb7b9ff59e
dan [Mon, 27 Jan 2014 16:35:15 +0000 (16:35 +0000)]
Fix a couple of problems with new test scripts causing the permutations test to fail.
FossilOrigin-Name:
48d736c0ee1ac0879bd12d2f1901f208e87e538a
drh [Mon, 27 Jan 2014 15:02:07 +0000 (15:02 +0000)]
Update some requirements marks to conform with improvements
in the documentation.
FossilOrigin-Name:
be1acb610f7e594b417dd8409b7a7aa8f3af5f77
dan [Mon, 27 Jan 2014 14:19:22 +0000 (14:19 +0000)]
Fix a problem in pagerfault.test causing an assert() to fail.
FossilOrigin-Name:
ba8d2d507f82e2baaceadcf7ac6d71bb91f7e06b
drh [Mon, 27 Jan 2014 13:58:58 +0000 (13:58 +0000)]
Fix (harmless) duplicate variable declaration.
FossilOrigin-Name:
94ed9bc4207873e0f3f8114009002f56d5aff359
dan [Mon, 27 Jan 2014 08:48:10 +0000 (08:48 +0000)]
Fix some problems in test scripts. No code changes.
FossilOrigin-Name:
08acfc65877e207f1a62d31a14afb4add20c4c35
dan [Sat, 25 Jan 2014 12:16:53 +0000 (12:16 +0000)]
Fix a problem causing SQLITE_OMIT_COMPOUND_SELECT builds to fail.
FossilOrigin-Name:
b30db0ac3096b43d55a6da40cafc7de569082bf8
drh [Fri, 24 Jan 2014 22:58:00 +0000 (22:58 +0000)]
Fixes for various clang warnings.
FossilOrigin-Name:
87bf60637e5863c54c5e2d05aaaca0835b7aace8
dan [Fri, 24 Jan 2014 20:37:18 +0000 (20:37 +0000)]
Select collation sequences for ORDER BY expressions attached to recursive CTEs in the same way as they are selected for other compound SELECT statements.
FossilOrigin-Name:
9554519c126c5e714421a82fd2e8aa9b19e11493
mistachkin [Fri, 24 Jan 2014 17:03:55 +0000 (17:03 +0000)]
Fix harmless compiler warnings in the Tcl interface.
FossilOrigin-Name:
35bc81f5ad4503c0db03127ba3c2ee4ce5227448
dan [Fri, 24 Jan 2014 16:57:42 +0000 (16:57 +0000)]
Add test cases for LIMIT and ORDER BY on recursive CTEs.
FossilOrigin-Name:
67d6c42d44cb191368ce20f553b32fcb14bfc4d7
drh [Fri, 24 Jan 2014 16:36:18 +0000 (16:36 +0000)]
Use an unsigned integer to accumulate the string hash. Avoids compiler
warnings.
FossilOrigin-Name:
b1824344ea4918a13abbda4a3b7134d35fd867c4
drh [Fri, 24 Jan 2014 15:42:51 +0000 (15:42 +0000)]
Add a few more CTE test cases to closure.test.
FossilOrigin-Name:
1b6405d9788c1bb89761b2bcdce560a5020ff503
drh [Fri, 24 Jan 2014 14:37:44 +0000 (14:37 +0000)]
Add test cases that compare the performance of the transitive_closure
virtual table again common table expressions for walking a tree.
FossilOrigin-Name:
9a23f020e8ed0e7a1ad227b4ab379fdf5e2de222
drh [Fri, 24 Jan 2014 11:16:01 +0000 (11:16 +0000)]
Add test cases showing the use of ORDER BY on a recursive query to control
depth-first versus breath-first search of a tree.
FossilOrigin-Name:
83b0b2916589db0184435dbd4c304387f393ed60
dan [Thu, 23 Jan 2014 14:44:08 +0000 (14:44 +0000)]
Modifications to test files to omit any tests that intentionally access out-of-bounds locations in clang -fsanitize=address builds.
FossilOrigin-Name:
f4a701d55f5c4e1e62ed64b779ad4fff89dd31b7
dan [Wed, 22 Jan 2014 19:23:30 +0000 (19:23 +0000)]
Avoid an extra seek when inserting records into the epheremal index used to ensure that rows returned by UNION recursive queries are unique.
FossilOrigin-Name:
72c4b3f07a3faacb5b62d5bc374b4e125a0bd8b3
drh [Wed, 22 Jan 2014 18:31:27 +0000 (18:31 +0000)]
Fix harmless compiler warnings.
FossilOrigin-Name:
dea2ca6a159d5dcfd8deceedf1c2a73fb4ac1cfc
drh [Wed, 22 Jan 2014 18:16:27 +0000 (18:16 +0000)]
Change the WITH RECURSIVE implementation to use a queue instead of a pair of
tables. Add support for ORDER BY, LIMIT, and OFFSET on recursive queries.
FossilOrigin-Name:
b6cea42006910d590373e8f9e296d7672edb114b
drh [Wed, 22 Jan 2014 18:07:04 +0000 (18:07 +0000)]
Add support for LIMIT and OFFSET in a recursive query.
FossilOrigin-Name:
1945484e6b9769c1943f750f5b09860417fb190a
dan [Wed, 22 Jan 2014 17:43:16 +0000 (17:43 +0000)]
Update the spellfix virtual table to optimize queries of the form "SELECT ... FROM tbl WHERE rowid=?".
FossilOrigin-Name:
a0ba55ff0596c5f15e9cdb254c68ef50df2dfaad
drh [Wed, 22 Jan 2014 17:28:35 +0000 (17:28 +0000)]
Get ORDER BY working for recursive queries.
FossilOrigin-Name:
37b343b01841b338954ddfa9b76d92aa50037aec
drh [Wed, 22 Jan 2014 13:35:53 +0000 (13:35 +0000)]
Add new SelectDest codes, SRT_Queue and SRT_DistQueue in anticipation of adding
ORDER BY support on recursive queries. Factor out the recursive query
code generator into a separate procedure.
FossilOrigin-Name:
3eb5f9f8d6ac1ee145cb4119087c516f66fe1456
dan [Wed, 22 Jan 2014 10:22:25 +0000 (10:22 +0000)]
Fix a typo in a comment. No changes to code or tests.
FossilOrigin-Name:
cceacc0e79c4e54682daddf2056c6bb8e88d9484
drh [Wed, 22 Jan 2014 00:23:49 +0000 (00:23 +0000)]
Remove an unnecessary parameter from selectInnerLoop(). Clean up comments.
FossilOrigin-Name:
5e6c4a55f6df30da9dbaa8170f3223613cc86f65
drh [Tue, 21 Jan 2014 22:25:45 +0000 (22:25 +0000)]
Change the recursive common table expression algorithm to use a queue instead
of a pair of tables. Runs about 25% faster on the sudoku solver query.
The OP_SwapCursors opcode is no longer required. The current implementation
uses just a fifo, but the plan is to change it into a queue that will support
ORDER BY and LIMIT in a recursive query.
FossilOrigin-Name:
b2671e1133d2f1fbd36e7cd4b86d6cc7b528aa97