]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
11 years agoUse the modern MinGW major version macro, not the deprecated one. mingw4x
mistachkin [Sun, 16 Feb 2014 19:20:00 +0000 (19:20 +0000)] 
Use the modern MinGW major version macro, not the deprecated one.

FossilOrigin-Name: 057c16ee9786efcad6372a29b02d743ff3d628ff

11 years agoBetter support for MinGW 4.x.
mistachkin [Fri, 14 Feb 2014 23:35:49 +0000 (23:35 +0000)] 
Better support for MinGW 4.x.

FossilOrigin-Name: e147230767383ed9f64085b613fd18508f74be21

11 years agoReduce the number of cases where it is necessary to check for NULL after
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

11 years agoAdd OP_IdxGT and OP_IdxLE as distinct opcodes. Formerly these operations where
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

11 years agoRevise how the Tcl system encoding is handled by the test suite.
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

11 years agoImprovements to the makefile and README for MSVC.
mistachkin [Thu, 13 Feb 2014 21:57:48 +0000 (21:57 +0000)] 
Improvements to the makefile and README for MSVC.

FossilOrigin-Name: b22b61406899c2694dae984995d2484fdb8122f1

11 years agoEnsure that if the "psow=0" URI option or FCNTL_POWERSAFE_OVERWRITE file-control...
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

11 years agoChange README to README.md and expand it. Remove unrelated and obsolete files.
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

11 years agoAvoid passing a flags argument with the internal WAL_SYNC_TRANSACTIONS bit set when...
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

11 years agoUpdate the tclconfig files to the latest from http://core.tcl.tk/tclconfig.
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

11 years agoMinor simplifications to the "zeroPage()" routine in btree.c.
drh [Wed, 12 Feb 2014 23:52:16 +0000 (23:52 +0000)] 
Minor simplifications to the "zeroPage()" routine in btree.c.

FossilOrigin-Name: cc8f10bcb206c9def69b06f26decf025b8d9119d

11 years agoRemove the "rowid cache" that sought to remember the largest rowid for a
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

11 years agoMake sure "rowid" columns are correctly resolved in joins between normal
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

11 years agoIncrease the version number to 3.8.4
drh [Tue, 11 Feb 2014 16:24:34 +0000 (16:24 +0000)] 
Increase the version number to 3.8.4

FossilOrigin-Name: 0a8bcbbd4e11a60923736b2be9b1ce83ea2263fb

11 years agoUpdates to the command-line shell. Simplify the banner message. Add the
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

11 years agoFixes to the "editline" support in the command-line shell.
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

11 years agoMake sure that virtual WHERE-clause terms do not get transformed into real
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

11 years agoFix a pointless conditional. Add a test case.
drh [Mon, 10 Feb 2014 21:07:51 +0000 (21:07 +0000)] 
Fix a pointless conditional.  Add a test case.

FossilOrigin-Name: 9367632dd7e4fec9197227e35b0627c2e81ebffc

11 years agoAdd the ".save" command as an alias for ".backup". Improvements to the memdb-warning
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

11 years agoOn unix, make the "transient in-memory database" text bold, but not red.
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

11 years agoIn the command-line shell, on the banner, warn about the use of a
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

11 years agoFix the compound-select-to-subquery converter so that it works with the
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

11 years agoModify the command-line shell to print a warning when using an in-memory
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

11 years agoImprovements to a "Synopsis:" comment in the VDBE engine.
drh [Mon, 10 Feb 2014 15:56:34 +0000 (15:56 +0000)] 
Improvements to a "Synopsis:" comment in the VDBE engine.

FossilOrigin-Name: 0dfa7ee9157ea6b1c745732d6c3fcd066cf4f849

11 years agoFaster implementation for sqlite3MulInt64().
drh [Mon, 10 Feb 2014 12:59:15 +0000 (12:59 +0000)] 
Faster implementation for sqlite3MulInt64().

FossilOrigin-Name: 010c48f671e909cb406f3716102a0032bc72a592

11 years agoFaster and smaller implementation of sqlite3_value_type().
drh [Mon, 10 Feb 2014 03:21:57 +0000 (03:21 +0000)] 
Faster and smaller implementation of sqlite3_value_type().

FossilOrigin-Name: 5708bc24b8cab623b833121183042b43e5a7021b

11 years agoAdd a compound-query test to the speedtest1 test program.
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

11 years agoUse the WITH clause to help resolve names for SELECT statements on the left
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

11 years agoAdd the Mandelbrot Set testcase to the "cte" testset of speedtest1.
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

11 years agoAdd a new "testset" to the speedtest1 program: The sudoku solver.
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

11 years agoDo away with the "multi-register pseudo-table" abstration. Instead, just
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

11 years agoChange the OP_Found opcode so that it expands zero-blobs prior to comparing
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

11 years agoFix a harmless compiler warning in VS2013.
drh [Sat, 8 Feb 2014 13:24:04 +0000 (13:24 +0000)] 
Fix a harmless compiler warning in VS2013.

FossilOrigin-Name: 83116ee3e0f2b9110c70a4f73a9badc9c2a56f28

11 years agoFix a harmless compiler warning in VS2013.
drh [Sat, 8 Feb 2014 13:22:36 +0000 (13:22 +0000)] 
Fix a harmless compiler warning in VS2013.

FossilOrigin-Name: 35f2793db5eb58484554477a23f8320843ebcd71

11 years agoTweaks to the generated VDBE code to make it a little easier to follow.
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

11 years agoEnable constant expression factoring even if no tables are read and no
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

11 years agoChange the OP_Trace opcode to OP_Init and give it the ability to jump to the
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

11 years agoAdd opcodes OP_InitCoroutine and OP_EndCoroutine. Use these to remove the
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

11 years agoFix redundant definitions of _LARGE_FILE and _LARGEFILE_SOURCE.
drh [Fri, 7 Feb 2014 19:33:31 +0000 (19:33 +0000)] 
Fix redundant definitions of _LARGE_FILE and _LARGEFILE_SOURCE.

FossilOrigin-Name: 4043d879795bfad55af35e9cb48e0a42eb4087ae

11 years agoIn the TCL bindings, make sure Tcl_AppendResult() is always terminated
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

11 years agoChange the OP_InitCoroutine instruction to jump over the co-routine coroutine-refactor
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

11 years agoGet rid of the OP_Undef and OP_IsUndef opcodes in favor of higher-level
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

11 years agoAdd the OP_Undef and OP_IsUndef opcodes. With these, use the first register
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

11 years agoMore comment updates. No changes to code.
mistachkin [Fri, 7 Feb 2014 03:28:02 +0000 (03:28 +0000)] 
More comment updates.  No changes to code.

FossilOrigin-Name: be24fbc22106e508975e316abe0471edd3833291

11 years agoUpdate comments in vdbe.c. No changes to code.
drh [Fri, 7 Feb 2014 02:29:45 +0000 (02:29 +0000)] 
Update comments in vdbe.c.  No changes to code.

FossilOrigin-Name: 1122b410de68a3c79b4c719a3a4cc4dc6a5bb39d

11 years agoDelete the OP_VerifySchema opcode. Enhance OP_Transaction to do the schema
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

11 years agoChange the spellfix1 virtual table to deterministically names its shadow
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

11 years agoAdd additional error messages and a progress spinner to the ".clone" command.
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

11 years agoRename the '.repair' shell command to '.clone'.
mistachkin [Thu, 6 Feb 2014 01:15:29 +0000 (01:15 +0000)] 
Rename the '.repair' shell command to '.clone'.

FossilOrigin-Name: 4f9d95624ae4e123f83c835b5940f64d4a47be0d

11 years agoAdd the ".repair" command to the command-line shell.
drh [Thu, 6 Feb 2014 00:49:12 +0000 (00:49 +0000)] 
Add the ".repair" command to the command-line shell.

FossilOrigin-Name: d1dfadea87ecf18eeb6d2f21769deaa97473ca0e

11 years agoIn the Win32 VFS, the winSysInfo variable should be static.
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

11 years agoDo not mark the ephemeral tables used to hold the RHS of IN clauses as
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

11 years agoRemove the SF_Materialize flag from the SELECT object as it does not
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

11 years agoRearrange fields in the Parse object for a tighter packing, resulting in
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

11 years agoPerformance optimizations in sqlite3PcacheFetch().
drh [Mon, 3 Feb 2014 17:04:29 +0000 (17:04 +0000)] 
Performance optimizations in sqlite3PcacheFetch().

FossilOrigin-Name: b60cc11ef775c23a2245d9e7a00dab34013f3ccb

11 years agoProvide hints to the btree layer Next and Previous primitives to let them
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

11 years agoVersion 3.8.3 version-3.8.3
drh [Mon, 3 Feb 2014 13:52:03 +0000 (13:52 +0000)] 
Version 3.8.3

FossilOrigin-Name: e816dd924619db5f766de6df74ea2194f3e3b538

11 years agoMinor change to TEA extension docs in an attempt to make links work correctly.
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

11 years agoUpdate the "sqlite3.1" unix manpage document.
drh [Fri, 31 Jan 2014 11:50:20 +0000 (11:50 +0000)] 
Update the "sqlite3.1" unix manpage document.

FossilOrigin-Name: 21ce9e3a53aed62fbe075b0dbed9faa00218aadc

11 years agoMinor change to TEA extension docs in an attempt to make links work correctly. teaDoc
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

11 years agoUpdate evidence marks on SELECT tests. Comment changes only.
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

11 years agoFix requirements marks only. No changes to code or tests.
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

11 years agoUpdate a requirement mark and add some additional test cases to cover
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

11 years agoEnhance the MSVC makefile for better debugging symbol support.
mistachkin [Thu, 30 Jan 2014 12:45:32 +0000 (12:45 +0000)] 
Enhance the MSVC makefile for better debugging symbol support.

FossilOrigin-Name: c9bef0f29a5a7f04914d80e58105104babd4168c

11 years agoDo not run test script mmapfault.test as part of the "inmemory_journal" permutation...
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

11 years agoEnhance the MSVC makefile for better debugging symbol support. msvcDebug
mistachkin [Thu, 30 Jan 2014 11:12:52 +0000 (11:12 +0000)] 
Enhance the MSVC makefile for better debugging symbol support.

FossilOrigin-Name: c723ec2784d6b60c9781a435c84800b2bc7818d5

11 years agoMake sure that sqlite3SelectDup() initializes the nSelectRow of the
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

11 years agoFix harmless compiler warnings in the showdb utility program.
drh [Tue, 28 Jan 2014 20:36:22 +0000 (20:36 +0000)] 
Fix harmless compiler warnings in the showdb utility program.

FossilOrigin-Name: 27c27daa3324b7c9323acfb972330367630bb64e

11 years agoFix a potential over-size and hence undefined shift operation.
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

11 years agoMinor bugfix in main.c so that the library builds with SQLITE_OMIT_WSD defined.
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

11 years agoFix a couple of problems with new test scripts causing the permutations test to fail.
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

11 years agoUpdate some requirements marks to conform with improvements
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

11 years agoFix a problem in pagerfault.test causing an assert() to fail.
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

11 years agoFix (harmless) duplicate variable declaration.
drh [Mon, 27 Jan 2014 13:58:58 +0000 (13:58 +0000)] 
Fix (harmless) duplicate variable declaration.

FossilOrigin-Name: 94ed9bc4207873e0f3f8114009002f56d5aff359

11 years agoFix some problems in test scripts. No code changes.
dan [Mon, 27 Jan 2014 08:48:10 +0000 (08:48 +0000)] 
Fix some problems in test scripts. No code changes.

FossilOrigin-Name: 08acfc65877e207f1a62d31a14afb4add20c4c35

11 years agoFix a problem causing SQLITE_OMIT_COMPOUND_SELECT builds to fail.
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

11 years agoFixes for various clang warnings.
drh [Fri, 24 Jan 2014 22:58:00 +0000 (22:58 +0000)] 
Fixes for various clang warnings.

FossilOrigin-Name: 87bf60637e5863c54c5e2d05aaaca0835b7aace8

11 years agoSelect collation sequences for ORDER BY expressions attached to recursive CTEs in...
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

11 years agoFix harmless compiler warnings in the Tcl interface.
mistachkin [Fri, 24 Jan 2014 17:03:55 +0000 (17:03 +0000)] 
Fix harmless compiler warnings in the Tcl interface.

FossilOrigin-Name: 35bc81f5ad4503c0db03127ba3c2ee4ce5227448

11 years agoAdd test cases for LIMIT and ORDER BY on recursive CTEs.
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

11 years agoUse an unsigned integer to accumulate the string hash. Avoids compiler
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

11 years agoAdd a few more CTE test cases to closure.test.
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

11 years agoAdd test cases that compare the performance of the transitive_closure
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

11 years agoAdd test cases showing the use of ORDER BY on a recursive query to control
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

11 years agoModifications to test files to omit any tests that intentionally access out-of-bounds...
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

11 years agoAvoid an extra seek when inserting records into the epheremal index used to ensure...
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

11 years agoFix harmless compiler warnings.
drh [Wed, 22 Jan 2014 18:31:27 +0000 (18:31 +0000)] 
Fix harmless compiler warnings.

FossilOrigin-Name: dea2ca6a159d5dcfd8deceedf1c2a73fb4ac1cfc

11 years agoChange the WITH RECURSIVE implementation to use a queue instead of a pair of
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

11 years agoAdd support for LIMIT and OFFSET in a recursive query. cte-via-queue
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

11 years agoUpdate the spellfix virtual table to optimize queries of the form "SELECT ... FROM...
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

11 years agoGet ORDER BY working for recursive queries.
drh [Wed, 22 Jan 2014 17:28:35 +0000 (17:28 +0000)] 
Get ORDER BY working for recursive queries.

FossilOrigin-Name: 37b343b01841b338954ddfa9b76d92aa50037aec

11 years agoAdd new SelectDest codes, SRT_Queue and SRT_DistQueue in anticipation of adding
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

11 years agoFix a typo in a comment. No changes to code or tests.
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

11 years agoRemove an unnecessary parameter from selectInnerLoop(). Clean up comments.
drh [Wed, 22 Jan 2014 00:23:49 +0000 (00:23 +0000)] 
Remove an unnecessary parameter from selectInnerLoop().  Clean up comments.

FossilOrigin-Name: 5e6c4a55f6df30da9dbaa8170f3223613cc86f65

11 years agoChange the recursive common table expression algorithm to use a queue instead
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

11 years agoRemove the undocumented requirement for applications that use an SQLITE_ENABLE_SQLLOG...
dan [Tue, 21 Jan 2014 15:04:47 +0000 (15:04 +0000)] 
Remove the undocumented requirement for applications that use an SQLITE_ENABLE_SQLLOG build to define a sqlite3_init_sqllog() function.

FossilOrigin-Name: 5e43bf013253921e4dfbe71de11ee7ed4b3e7eae

11 years agoIn where.c, do not allocate space in sqlite3_index_info structures for the internal...
dan [Mon, 20 Jan 2014 19:55:33 +0000 (19:55 +0000)] 
In where.c, do not allocate space in sqlite3_index_info structures for the internal WHERE clause "terms" generated to record column equivalencies.

FossilOrigin-Name: 7d9e22187daaa3160b875a1df17b924969bf718e

11 years agoHandle a few obscure problems that could manifest if a database corrupted in a certai...
dan [Mon, 20 Jan 2014 18:25:44 +0000 (18:25 +0000)] 
Handle a few obscure problems that could manifest if a database corrupted in a certain way was written by a connection in the middle of a SELECT statement on the same db.

FossilOrigin-Name: eba8a564e62f84a9620008beead80081fe90a1b7

11 years agoRemove an unused #define and add an assert(), both associated with WITH logic.
drh [Mon, 20 Jan 2014 14:58:55 +0000 (14:58 +0000)] 
Remove an unused #define and add an assert(), both associated with WITH logic.

FossilOrigin-Name: a06235e0f6aa1e8fefa3f2873ee035eac9dac750

11 years agoDo not run the tests in with2.test with SQLITE_OMIT_CTE builds.
dan [Mon, 20 Jan 2014 14:17:08 +0000 (14:17 +0000)] 
Do not run the tests in with2.test with SQLITE_OMIT_CTE builds.

FossilOrigin-Name: 8a973912e98c9b1bb9d3f914527d35c1e7f2011a