]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
12 years agoAll test cases (veryquick.tcl and min.rc) pass. A few branch operations in qp-enhancements
drh [Mon, 8 Oct 2012 21:01:15 +0000 (21:01 +0000)] 
All test cases (veryquick.tcl and min.rc) pass.  A few branch operations in
ORDER BY optimization logic are untested by min.rc.

FossilOrigin-Name: 8314fd6078a3a71aea9d6386ff277cfeb592b4ba

12 years agoFurther tweaks to the ORDER BY optimizer, to fix a bug and to get the
drh [Mon, 8 Oct 2012 20:27:35 +0000 (20:27 +0000)] 
Further tweaks to the ORDER BY optimizer, to fix a bug and to get the
optimizer to recognize some additional cases.

FossilOrigin-Name: bcb4f262476193cfb17818d8c62bab528dddeef9

12 years agoBug fixes in the ORDER BY optimizer.
drh [Mon, 8 Oct 2012 19:41:38 +0000 (19:41 +0000)] 
Bug fixes in the ORDER BY optimizer.

FossilOrigin-Name: 301bbee4045aa169e29fb4fb75743b71eb4760a1

12 years agoContinued refactoring of the ORDER BY optimization logic. This check-in
drh [Mon, 8 Oct 2012 18:23:51 +0000 (18:23 +0000)] 
Continued refactoring of the ORDER BY optimization logic.  This check-in
is close to working, but it still has issues.  A few test cases fail.

FossilOrigin-Name: adbdc663f3d22ff03f21040a811d585cf2218626

12 years agoYet another refactoring of ORDER BY logic in the query planner. This
drh [Thu, 4 Oct 2012 12:10:25 +0000 (12:10 +0000)] 
Yet another refactoring of ORDER BY logic in the query planner.  This
particular check-in works mostly, but still has a few minor issues.

FossilOrigin-Name: 8f4487450be1a2b0371f8251a967cbe341b2dea1

12 years agoFix an out-of-order memset() that occurs before all variable declarations
drh [Wed, 3 Oct 2012 18:09:32 +0000 (18:09 +0000)] 
Fix an out-of-order memset() that occurs before all variable declarations
are finished.  Also fix a line that exceeds the 80-character line length
limit.

FossilOrigin-Name: ba2f492f957ab5556cd540e21a76ebb75efea725

12 years agoUpdate the query planner to recognize more cases where ORDER BY clauses
drh [Wed, 3 Oct 2012 12:56:18 +0000 (12:56 +0000)] 
Update the query planner to recognize more cases where ORDER BY clauses
can be optimized out.  Add test cases to verify correct behavior of the
ORDER BY optimization when the covering-index-scan optimization is disabled.
Fix a harmless compiler warning in the TCL interface.

FossilOrigin-Name: 956e4d7f8958e7065ff2d61cd71519d6f4113d4a

12 years agoFix a query planner problem that only occurs when covering-index-scan is
drh [Wed, 3 Oct 2012 12:38:19 +0000 (12:38 +0000)] 
Fix a query planner problem that only occurs when covering-index-scan is
disabled.  Fix to tests whose output changed due to the new and more
aggressive ORDER BY optimization.

FossilOrigin-Name: 0f9bb90100aa304a7f28023ca4173e68b445e8bd

12 years agoFix the TCL interface so that SQL functions implemented in TCL honor the
drh [Wed, 3 Oct 2012 11:02:33 +0000 (11:02 +0000)] 
Fix the TCL interface so that SQL functions implemented in TCL honor the
"nullvalue" setting.  Also remove from the TCL interface some unused
legacy UTF8 translation code left over from SQLite2.

FossilOrigin-Name: c1f10a2643179ec58f3879764e9e89676d4b5f91

12 years agoFurther attempts to optimize out unnecessary ORDER BY clauses.
drh [Wed, 3 Oct 2012 00:25:54 +0000 (00:25 +0000)] 
Further attempts to optimize out unnecessary ORDER BY clauses.

FossilOrigin-Name: 6744d9a37faffed59b4d5cb96c8671ec46a87ea7

12 years agoWork around an optimization issue with the MSVC compiler for ARM.
mistachkin [Tue, 2 Oct 2012 22:54:27 +0000 (22:54 +0000)] 
Work around an optimization issue with the MSVC compiler for ARM.

FossilOrigin-Name: 7d301fdfeec540e4a58f43bff04d219e9f769dc4

12 years agoMore lenient handling of ORDER BY optimization in joins with mixed ASC/DESC.
drh [Tue, 2 Oct 2012 15:19:19 +0000 (15:19 +0000)] 
More lenient handling of ORDER BY optimization in joins with mixed ASC/DESC.
This is a better and less restrictive fix for the problem addressed by
the previous check-in.

FossilOrigin-Name: abcf6a5d054559ee5a093ba39180c47b4958d9cd

12 years agoOnly continue an ORDER BY optimization into inner loops if the equality
drh [Tue, 2 Oct 2012 14:11:29 +0000 (14:11 +0000)] 
Only continue an ORDER BY optimization into inner loops if the equality
constraints on the inner loop match terms of an outer ordered index that
are actually used by the ORDER BY clause.

FossilOrigin-Name: b0e7b4df6c2a8c479f8d210bde50c737eaa248f0

12 years agoFactor an invariant out the loop termination condition for the ORDER BY
drh [Tue, 2 Oct 2012 01:46:48 +0000 (01:46 +0000)] 
Factor an invariant out the loop termination condition for the ORDER BY
satisfied-by-index analyzer routine.

FossilOrigin-Name: 545bb33688663066cf3f09e4cdc4d5cfe59fb8db

12 years agoMake sure the outer loop cursor numbers are recorded in time for them to be
drh [Tue, 2 Oct 2012 01:25:16 +0000 (01:25 +0000)] 
Make sure the outer loop cursor numbers are recorded in time for them to be
used by the ORDER BY optimizer.

FossilOrigin-Name: 351dc8d9cab8a222f28fb865d3a7d1c622d60d6f

12 years agoImprovements to the wheretrace output.
drh [Tue, 2 Oct 2012 01:10:00 +0000 (01:10 +0000)] 
Improvements to the wheretrace output.

FossilOrigin-Name: 76b277655646a9fe0f336ff106157f1efcd32019

12 years agoFix harmless compiler warnings.
drh [Mon, 1 Oct 2012 20:32:38 +0000 (20:32 +0000)] 
Fix harmless compiler warnings.

FossilOrigin-Name: 59c2be75ff8b8ccd77320b45e4088e5bf456a1d9

12 years agoFix several compiler warnings seen with MSVC. msvcWarnings
mistachkin [Mon, 1 Oct 2012 20:12:30 +0000 (20:12 +0000)] 
Fix several compiler warnings seen with MSVC.

FossilOrigin-Name: 8b5f617c2a5f0bf7bdbd9144aee58d69564db1e2

12 years agoAdd SQLITE_FCNTL_BUSYHANDLER. Invoked to provide access to the busy-handler callback...
dan [Mon, 1 Oct 2012 18:44:33 +0000 (18:44 +0000)] 
Add SQLITE_FCNTL_BUSYHANDLER. Invoked to provide access to the busy-handler callback to custom VFS implementations.

FossilOrigin-Name: 1262d2f471214a3417dd02159a7aa2355b18f789

12 years agoMinor changes to the query planner for improved test coverage.
drh [Mon, 1 Oct 2012 17:44:05 +0000 (17:44 +0000)] 
Minor changes to the query planner for improved test coverage.

FossilOrigin-Name: c12044df322283c9deb0d7dacd8a699ac53f27b6

12 years agoOmit the sqlite3GetReservedNoMutex() routine in build configurations where
drh [Mon, 1 Oct 2012 12:44:26 +0000 (12:44 +0000)] 
Omit the sqlite3GetReservedNoMutex() routine in build configurations where
it is not used.

FossilOrigin-Name: f193dbb6b96b2f49dd0d6345802c9c006cd99e3c

12 years agoMake sure the size parameter to read and write VFS methods in the unix VFS
drh [Mon, 1 Oct 2012 12:16:26 +0000 (12:16 +0000)] 
Make sure the size parameter to read and write VFS methods in the unix VFS
do not become too big or go negative.  This was not actually possible in the
current code.  The checks are added to make sure some future bug does not
make it possible.

FossilOrigin-Name: daebe3bd2d9bd7b6f876a8110cf5045eb3fee078

12 years agoEnsure that the value returned by xSectorSize() is reasonable (currently defined...
dan [Mon, 1 Oct 2012 06:50:55 +0000 (06:50 +0000)] 
Ensure that the value returned by xSectorSize() is reasonable (currently defined as between 2^5 and 2^16 bytes) before using it to calculate the amount of padding to add to a wal file.

FossilOrigin-Name: 6b4ff83bff07d427af585c9fd03be90abf2fc82f

12 years agoImproved ORDER BY optimization when outer loops of a join return a single row.
drh [Sat, 29 Sep 2012 19:10:29 +0000 (19:10 +0000)] 
Improved ORDER BY optimization when outer loops of a join return a single row.

FossilOrigin-Name: 62225b4a4c4bfe1820ef54cb202edf2cd866429f

12 years agoDisable the bigfile tests on Macs.
drh [Sat, 29 Sep 2012 15:45:12 +0000 (15:45 +0000)] 
Disable the bigfile tests on Macs.

FossilOrigin-Name: d869eddaf208c4bf03f6bd1848f510392f9dba49

12 years agoFix compiler warnings found on Lion.
drh [Sat, 29 Sep 2012 14:45:54 +0000 (14:45 +0000)] 
Fix compiler warnings found on Lion.

FossilOrigin-Name: fd74d3d91721ca404537f195fed04c9edef20bf2

12 years agoAvoid calling sqlite3BtreeEnter() in a corner case where the corresponding database...
dan [Fri, 28 Sep 2012 20:23:42 +0000 (20:23 +0000)] 
Avoid calling sqlite3BtreeEnter() in a corner case where the corresponding database handle mutex (sqlite3.mutex) may not be held. This prevents a potential deadlock or crash that can occur if the backup API, shared-cache mode and SQLITE_HAVE_CODEC are all in use.

FossilOrigin-Name: 89b8c377a6f03d9fa885f3f94c1f0b1eec263dea

12 years agoModify the clearCell function to use SQLITE_CORRUPT_BKPT in the one place it was...
mistachkin [Fri, 28 Sep 2012 18:13:35 +0000 (18:13 +0000)] 
Modify the clearCell function to use SQLITE_CORRUPT_BKPT in the one place it was not.

FossilOrigin-Name: 472beb306a4fa7103837d4417aef7d66eef49993

12 years agoQuery planner enhancements to be more agressive about optimizing out ORDER BY
drh [Fri, 28 Sep 2012 00:44:28 +0000 (00:44 +0000)] 
Query planner enhancements to be more agressive about optimizing out ORDER BY
clauses - in particular the query planner now has the ability to omit ORDER BY
clauses that span multiple tables in a join.

FossilOrigin-Name: 1e874629d7cf568368b912b295bd3001147d0b52

12 years agoFix some corner case behavior in the new ORDER BY optimization logic.
drh [Thu, 27 Sep 2012 23:27:23 +0000 (23:27 +0000)] 
Fix some corner case behavior in the new ORDER BY optimization logic.
Remove the SQLITE_OrderByIdx bit from the
SQLITE_TESTCTRL_OPTIMIZATIONS mask, since enabling it caused many
TH3 tests to fail when the NO_OPT configuration parameter was engaged,
and since there really isn't any need to turn that optimization off.
The SQLITE_OrderByIdxJoin bit remains.

FossilOrigin-Name: 98b633717a1c9a08f6a1d00bc6bc891564ae7e9b

12 years agoModify generation of resource header file for MSVC so that it can work from outside...
mistachkin [Thu, 27 Sep 2012 21:03:53 +0000 (21:03 +0000)] 
Modify generation of resource header file for MSVC so that it can work from outside the working directory.

FossilOrigin-Name: 20caf80cb3b65e69a99dbc142db8ee435fb2dbdc

12 years agoMore test cases an bug fixes for the ORDER BY optimization of joins. All
drh [Thu, 27 Sep 2012 19:53:38 +0000 (19:53 +0000)] 
More test cases an bug fixes for the ORDER BY optimization of joins.  All
veryquick tests now pass.

FossilOrigin-Name: 0d573320057b0903a5589cabfb1b1ece1c57958e

12 years agoTest cases and bug fixes applied to the ORDER BY optimization for joins.
drh [Thu, 27 Sep 2012 17:31:32 +0000 (17:31 +0000)] 
Test cases and bug fixes applied to the ORDER BY optimization for joins.
Some test cases fail, but except for the new orderby1.test failures, all
failures appear to be issues with the tests, not with the core code.

FossilOrigin-Name: 75cda864ededb6dc0f84bd52ed3311753a58e351

12 years agoAdd more bits to the bit vector that is used to disable optimizations for
drh [Thu, 27 Sep 2012 15:05:54 +0000 (15:05 +0000)] 
Add more bits to the bit vector that is used to disable optimizations for
built-in test.  Add specific bit patterns to disable ORDER BY using an
index in general and for joins.  Use macros to test for bits in the
disabled-optimization bit vector, in order to make the code clearer.

FossilOrigin-Name: d2fcba1e143beca8c45724d2108870657c269e17

12 years agoEnable ORDER BY clauses that span joins to be optimized out.
drh [Thu, 27 Sep 2012 14:11:36 +0000 (14:11 +0000)] 
Enable ORDER BY clauses that span joins to be optimized out.

FossilOrigin-Name: c29538f9b1ee4d4869999570604c9618ca0d08ac

12 years agoMerge the "PRAGMA busy_timeout" change into trunk.
drh [Thu, 27 Sep 2012 12:11:25 +0000 (12:11 +0000)] 
Merge the "PRAGMA busy_timeout" change into trunk.

FossilOrigin-Name: 1a679a1ef3b4f2d898c8cd83432d2b4c12bd93fa

12 years agoFurther tweaks to the query planner logic in preparation for adding
drh [Thu, 27 Sep 2012 12:05:09 +0000 (12:05 +0000)] 
Further tweaks to the query planner logic in preparation for adding
ORDER BY opt-out for joins.

FossilOrigin-Name: 53efc10af990d3f293551f3cd8ef2f8be2d9d716

12 years agoFurther refactoring of the ORDER BY related query-planning logic in order
drh [Wed, 26 Sep 2012 23:17:01 +0000 (23:17 +0000)] 
Further refactoring of the ORDER BY related query-planning logic in order
to make it easier to extend to support optimizing out ORDER BY on joins.
No actual behavior changes, yet.

FossilOrigin-Name: 96496ddae12a239b30a1fc997fbea43e3a75bfe7

12 years agoAugment the WhereBestIdx structure to pass down into the query planner
drh [Tue, 25 Sep 2012 20:43:35 +0000 (20:43 +0000)] 
Augment the WhereBestIdx structure to pass down into the query planner
information that might be used to better detect ORDER BY and DISTINCT
optimizations spanning multiple tables of a join.

FossilOrigin-Name: 4226e51ff837f0ffe16355491a655d919d13488e

12 years agoPass information around between the major routines of the query planner
drh [Tue, 25 Sep 2012 14:29:39 +0000 (14:29 +0000)] 
Pass information around between the major routines of the query planner
using a single pointer to a structure rather than a long list of parameters.

FossilOrigin-Name: 1104d42e104d561ce60d05d158acfe499ee9fd50

12 years agoRemove an unused subfunction parameter and an obsolete comment from the
drh [Mon, 24 Sep 2012 19:50:00 +0000 (19:50 +0000)] 
Remove an unused subfunction parameter and an obsolete comment from the
query planner logic in where.c.

FossilOrigin-Name: 349a55cd8ba9ce65ebfd987ecfebd1204f7d0a85

12 years agoChange the internal sqlite3WhereBegin() to report that the ORDER BY clause
drh [Mon, 24 Sep 2012 15:30:54 +0000 (15:30 +0000)] 
Change the internal sqlite3WhereBegin() to report that the ORDER BY clause
is satisfied by indices using the WhereInfo.nOBSat field of the returned
structure.

FossilOrigin-Name: 22989f3588531efd555cc29d6c576e7a34b7edc4

12 years agoUpdate documentation to describe the threadsafety of
drh [Mon, 24 Sep 2012 11:43:43 +0000 (11:43 +0000)] 
Update documentation to describe the threadsafety of
sqlite3_enable_shared_cache().

FossilOrigin-Name: e081890cd77ad8de4bf55a8f8cf9d63bfaaf8218

12 years agoEnable query planner tracing using the new (and undocumented) ".wheretrace 1"
drh [Fri, 21 Sep 2012 22:50:45 +0000 (22:50 +0000)] 
Enable query planner tracing using the new (and undocumented) ".wheretrace 1"
command in the command-line shell if both the shell and the core are
compiled with SQLITE_DEBUG and SQLITE_ENABLE_WHERETRACE.  This is not a
supported API. Use for testing and debugging only.

FossilOrigin-Name: 1be4b16b9e900181ae6848f2920ea646f407c9dc

12 years agoCommand-line shell enhancements: Added the ".print" command. Enhanced
drh [Fri, 21 Sep 2012 13:40:02 +0000 (13:40 +0000)] 
Command-line shell enhancements:  Added the ".print" command.  Enhanced
the ".width" command so that negative widths will right-justify.

FossilOrigin-Name: a1d8269da3868e41a6603c1a683e324fe21fb317

12 years agoConsolidate more of the DISTINCT processing logic into a single spot in the
drh [Fri, 21 Sep 2012 00:04:28 +0000 (00:04 +0000)] 
Consolidate more of the DISTINCT processing logic into a single spot in the
code.  Reduce the number of OP_Column operations needed to perform a
WHERE_DISTINCT_ORDERED.

FossilOrigin-Name: 79e922f7ae29bbe06d639d648fbd72523cf9a28e

12 years agoContinuing incremental enhancements of SELECT code generation:
drh [Thu, 20 Sep 2012 15:41:31 +0000 (15:41 +0000)] 
Continuing incremental enhancements of SELECT code generation:
Remove the Select.affinity field.  Use SelectDest.affSdst instead.

FossilOrigin-Name: cf40b7b5ebdacc3215d769aadacce8c9e7e9dfbb

12 years agoRefactoring of DISTINCT code. Change the name of the local variable
drh [Thu, 20 Sep 2012 14:26:22 +0000 (14:26 +0000)] 
Refactoring of DISTINCT code.  Change the name of the local variable
"distinct" to "distinctTab".  Generate cleaner code w/o unnecessary P4
and P5 values on the OP_Null for WHERE_DISTINCT_ORDERED.

FossilOrigin-Name: 0cda241a2bcb3c6f2ae6c48f522780bc4eddfc02

12 years agoTighter VDBE code for the WHERE_DISTINCT_ORDERED case of DISTINCT keyword
drh [Wed, 19 Sep 2012 21:15:46 +0000 (21:15 +0000)] 
Tighter VDBE code for the WHERE_DISTINCT_ORDERED case of DISTINCT keyword
handling.

FossilOrigin-Name: 94b48064db3cbb43e911fdf7183218b08146ec10

12 years agoAdd comments to the WHERE_DISTINCT_* macros. No changes to code.
drh [Wed, 19 Sep 2012 17:31:15 +0000 (17:31 +0000)] 
Add comments to the WHERE_DISTINCT_* macros.  No changes to code.

FossilOrigin-Name: 82320501904f65030622a67836ba30f412169056

12 years agoMerge the covering-index-scan optimization into trunk.
drh [Wed, 19 Sep 2012 00:35:31 +0000 (00:35 +0000)] 
Merge the covering-index-scan optimization into trunk.

FossilOrigin-Name: ddd5d789e7ae4a66cd7b7fa79e48d2777f95350b

12 years agoSilence harmless compiler warning seen with SQLITE_OMIT_DEPRECATED.
mistachkin [Tue, 18 Sep 2012 23:21:32 +0000 (23:21 +0000)] 
Silence harmless compiler warning seen with SQLITE_OMIT_DEPRECATED.

FossilOrigin-Name: c5cee969322d14114e4136510c3891a2e743520d

12 years agoEnhance IN processing to allow efficient use of indices with numeric affinities.
drh [Tue, 18 Sep 2012 19:29:06 +0000 (19:29 +0000)] 
Enhance IN processing to allow efficient use of indices with numeric affinities.
Add test cases for IN processing that would have spotted the error in the
[2be661a48023f4] check-in.

FossilOrigin-Name: 5ded9b68388f4024425c11f09b03529ac89454ce

12 years agoEnhancements to the comments on sqlite3FindInIndex(). No code changes.
drh [Tue, 18 Sep 2012 17:08:33 +0000 (17:08 +0000)] 
Enhancements to the comments on sqlite3FindInIndex().  No code changes.

FossilOrigin-Name: b1a4c394995eb90b3fb43ab204704bda03799303

12 years agoAdd the stack_usage.tcl script for analyzing the output of objdump on the
drh [Tue, 18 Sep 2012 14:00:54 +0000 (14:00 +0000)] 
Add the stack_usage.tcl script for analyzing the output of objdump on the
amalgamation and estimating the sizes of stack frames on each function.

FossilOrigin-Name: 030013ff0c7af5f146a64f9ede31297ff003e0c4

12 years agoUpdate the vdbe-compress.tcl script so that it accepts variable declarations
drh [Tue, 18 Sep 2012 13:20:13 +0000 (13:20 +0000)] 
Update the vdbe-compress.tcl script so that it accepts variable declarations
inside of #ifdef...#endif.
This enhancement is needed due to the change of check-in [39866c0ede5d6ef4].

FossilOrigin-Name: e7db056a0d76b2411cadbae077890df189e49414

12 years agoMake sure the WHERE_IDX_ONLY flag is not set on query plans that will not fullscan-covering-index
drh [Mon, 17 Sep 2012 21:24:01 +0000 (21:24 +0000)] 
Make sure the WHERE_IDX_ONLY flag is not set on query plans that will not
be using an index.

FossilOrigin-Name: 698b2a28004a9a2f0eabaadf36d833da4400b2bf

12 years agoAdd the ability to disable the covering-index-scan optimization at compile-time,
drh [Mon, 17 Sep 2012 20:44:46 +0000 (20:44 +0000)] 
Add the ability to disable the covering-index-scan optimization at compile-time,
start-time, or at run-time.  Add test cases to check this configurability.

FossilOrigin-Name: ccb8ecc30c8e6c7760131250297c2e452bbac43b

12 years agoMerge recent trunk changes into the fullscan-covering-index branch.
drh [Mon, 17 Sep 2012 19:26:02 +0000 (19:26 +0000)] 
Merge recent trunk changes into the fullscan-covering-index branch.

FossilOrigin-Name: 1c0bf0305ce9528a0d07c86a390c5872e16bdb57

12 years agoRemove obsolete bits from the bitvector that defines disabled optimizations
drh [Mon, 17 Sep 2012 19:12:39 +0000 (19:12 +0000)] 
Remove obsolete bits from the bitvector that defines disabled optimizations
in the SQLITE_TESTCTRL_OPTIMIZATIONS verb of sqlite3_test_control().

FossilOrigin-Name: 4c21ee2d26466f83dec525153e2b1506bd956701

12 years agoRemove an unnecessary parameter from sqlite3Utf8Read() resulting in a slight
drh [Mon, 17 Sep 2012 18:56:32 +0000 (18:56 +0000)] 
Remove an unnecessary parameter from sqlite3Utf8Read() resulting in a slight
performance increase.

FossilOrigin-Name: 8b962c94a2f829f71efdd0ca770469b02feea3e1

12 years agoMake sure the KeyInfo.aSortOrder array is always allocated so that we never
drh [Mon, 17 Sep 2012 17:16:53 +0000 (17:16 +0000)] 
Make sure the KeyInfo.aSortOrder array is always allocated so that we never
have to test for KeyInfo.aSortOrder==0 in performance-critical loops.

FossilOrigin-Name: 45793f0b844fee7445bc9269b403f89a58f77150

12 years agoPerformance enhancement in the sqlite3VdbeSerialType() routine.
drh [Mon, 17 Sep 2012 15:36:31 +0000 (15:36 +0000)] 
Performance enhancement in the sqlite3VdbeSerialType() routine.

FossilOrigin-Name: ad298f52efd0ff123a1a4d6a0fa16fbd4c6b6dad

12 years agoAttempt to use a covering index even on a full table scan, under the theory
drh [Sat, 15 Sep 2012 18:45:54 +0000 (18:45 +0000)] 
Attempt to use a covering index even on a full table scan, under the theory
that the index will be smaller and require less disk I/O and thus be faster.

FossilOrigin-Name: cfaa7bc12847a7006ccc93815f2395ad5259744a

12 years agoMake sure the name of rollback journal files are double-zero terminated
drh [Sat, 15 Sep 2012 13:39:24 +0000 (13:39 +0000)] 
Make sure the name of rollback journal files are double-zero terminated
when they are passed into the VFS.

FossilOrigin-Name: 8711a8447d28275602287faf533de3d6e50d535d

12 years agoFactor out the code that generates a co-routine for evaluating the SELECT
drh [Sat, 15 Sep 2012 13:29:23 +0000 (13:29 +0000)] 
Factor out the code that generates a co-routine for evaluating the SELECT
on the RHS of an INSERT statement so that the same code can potentially
be reused in other places.

FossilOrigin-Name: a93ee09cdc15987848bf9023e69892ce9a5f989e

12 years agoImproved alignment of fields in the Expr object gives an 8-byte size
drh [Thu, 13 Sep 2012 19:59:09 +0000 (19:59 +0000)] 
Improved alignment of fields in the Expr object gives an 8-byte size
reduction on 64-bit machines.

FossilOrigin-Name: 6b252a0d1a78db7bf2d650bafc214ea4064eef9e

12 years agoFix WAL capability checking in one of the test files.
mistachkin [Thu, 13 Sep 2012 16:12:20 +0000 (16:12 +0000)] 
Fix WAL capability checking in one of the test files.

FossilOrigin-Name: 0ebe7cc57408d6d85910cc976fb8af4436d6e594

12 years agoFix an unused variable warning with SQLITE_OMIT_WAL.
mistachkin [Thu, 13 Sep 2012 15:26:44 +0000 (15:26 +0000)] 
Fix an unused variable warning with SQLITE_OMIT_WAL.

FossilOrigin-Name: 39866c0ede5d6ef4dd4fd57c797f0e86a2d0dc5d

12 years agoImproved reporting of filename translation errors in the Windows VFS.
mistachkin [Thu, 13 Sep 2012 15:24:29 +0000 (15:24 +0000)] 
Improved reporting of filename translation errors in the Windows VFS.

FossilOrigin-Name: eb0f1c292e6fb00c4d9dbb2317fdc4717c5be96b

12 years agoReduce the size of the Table object by 16 bytes on 64-bit machines, mostly
drh [Thu, 13 Sep 2012 14:42:43 +0000 (14:42 +0000)] 
Reduce the size of the Table object by 16 bytes on 64-bit machines, mostly
by avoiding intermixing pointer fields with integer fields.

FossilOrigin-Name: 1cb9aedfcf81f0086fa741cb29a062ee87724a5e

12 years agoChange boolean fields in the Column object from unsigned characters into
drh [Thu, 13 Sep 2012 14:22:47 +0000 (14:22 +0000)] 
Change boolean fields in the Column object from unsigned characters into
bits in a single bit mask variable.

FossilOrigin-Name: 4163f5f194741bc2bdf141973912661c6aac70f1

12 years agoAdd the RTREE_INT_ONLY configuration parameter to the compile-time options
drh [Thu, 13 Sep 2012 12:10:55 +0000 (12:10 +0000)] 
Add the RTREE_INT_ONLY configuration parameter to the compile-time options
logic.

FossilOrigin-Name: 98b971fb24e0ee5f881b13401c7af51fc6effd0e

12 years agoAllow SQLite to work on Win32 with SQLITE_OS_WINNT=0 as long as WAL is disabled.
mistachkin [Thu, 13 Sep 2012 01:51:02 +0000 (01:51 +0000)] 
Allow SQLite to work on Win32 with SQLITE_OS_WINNT=0 as long as WAL is disabled.

FossilOrigin-Name: c1a8557008e56aa9bcb4565e4178fc57295c563d

12 years agoUpdate version number to 3.7.15. Delete some obsolete build scripts.
drh [Wed, 12 Sep 2012 00:11:20 +0000 (00:11 +0000)] 
Update version number to 3.7.15.  Delete some obsolete build scripts.

FossilOrigin-Name: 9402f81fade5fcae0a3a6efdc7a5cdf71fc2e79f

12 years agoAdded sqlite3_errstr API to translate a result code to the corresponding error message.
mistachkin [Tue, 11 Sep 2012 02:00:25 +0000 (02:00 +0000)] 
Added sqlite3_errstr API to translate a result code to the corresponding error message.

FossilOrigin-Name: bf8a9ca5b58404112a8af666f5840b462b7bbfe1

12 years agoCorrect two duplicated test names.
mistachkin [Mon, 10 Sep 2012 23:44:12 +0000 (23:44 +0000)] 
Correct two duplicated test names.

FossilOrigin-Name: ced49974a969f11e5ebe2280bd7eec20b059e501

12 years agoRemove the stale implementation of the ifnull and coalesce functions - code
drh [Mon, 10 Sep 2012 15:02:32 +0000 (15:02 +0000)] 
Remove the stale implementation of the ifnull and coalesce functions - code
that has been commented out for ages.  No functional changes.

FossilOrigin-Name: c2ad691174b8af2e8b158d8840cfc93f75d7db71

12 years agoAvoid using the sqlite3ErrStr function in the Tcl package if USE_SYSTEM_SQLITE is...
mistachkin [Mon, 10 Sep 2012 09:33:09 +0000 (09:33 +0000)] 
Avoid using the sqlite3ErrStr function in the Tcl package if USE_SYSTEM_SQLITE is defined.

FossilOrigin-Name: a716b9a3091072774d067c0a1258b0f4c39a4180

12 years agoMake header comments for some Tcl test commands more consistent. No changes to code.
mistachkin [Mon, 10 Sep 2012 08:48:05 +0000 (08:48 +0000)] 
Make header comments for some Tcl test commands more consistent.  No changes to code.

FossilOrigin-Name: af870ca9827d2079a35dbb545660f670c7ca9512

12 years agoRefine error messages in the sqlite3 Tcl command when a NULL database connection...
mistachkin [Mon, 10 Sep 2012 07:29:29 +0000 (07:29 +0000)] 
Refine error messages in the sqlite3 Tcl command when a NULL database connection is returned from sqlite3_open_v2.

FossilOrigin-Name: f260d7d567a1239c483c437d0b18a95bd0c96724

12 years agoFix typo in documentation for sqlite3_open_v2. No changes to code.
mistachkin [Mon, 10 Sep 2012 06:02:57 +0000 (06:02 +0000)] 
Fix typo in documentation for sqlite3_open_v2.  No changes to code.

FossilOrigin-Name: b532120a4a567a3fa54b87dd8ab94cc2c0347c7c

12 years agoCorrect two test names to make them unique. busy-timeout-pragma
mistachkin [Fri, 7 Sep 2012 20:10:30 +0000 (20:10 +0000)] 
Correct two test names to make them unique.

FossilOrigin-Name: 43e474d3e9364e6ed417db06e98faa3e5bc2eb26

12 years agoHave PRAGMA busy_timeout return 0 if the busy handler has been changed
drh [Fri, 7 Sep 2012 18:49:57 +0000 (18:49 +0000)] 
Have PRAGMA busy_timeout return 0 if the busy handler has been changed
or cancelled.

FossilOrigin-Name: 7be5bc36798d30f50658b70fc0bd31af897f3a87

12 years agoAdd an experimental busy_timeout pragma to facilitate access to the
drh [Fri, 7 Sep 2012 16:46:59 +0000 (16:46 +0000)] 
Add an experimental busy_timeout pragma to facilitate access to the
sqlite3_busy_timeout() interfaces for programmers that are working from
behind a language wrapper that does not expose that interface.

FossilOrigin-Name: 22ebc668516bc3dd5782d6d3d42dc7fd2eed7d79

12 years agoAvoid repeating calls to the sqlite3_trace() callback when the same statement
drh [Tue, 4 Sep 2012 21:34:26 +0000 (21:34 +0000)] 
Avoid repeating calls to the sqlite3_trace() callback when the same statement
is evaluted multiple times by sqlite3_step() due to an SQLITE_SCHEMA
reprepare.

FossilOrigin-Name: 39f763bfc04174ee0fe2cdf6a92b7c12f726bd1b

12 years agoVersion 3.7.14 version-3.7.14
drh [Mon, 3 Sep 2012 15:42:36 +0000 (15:42 +0000)] 
Version 3.7.14

FossilOrigin-Name: c0d89d4a9752922f9e367362366efde4f1b06f2a

12 years agoFix compiler warnings in test_spellfix1.c
drh [Mon, 3 Sep 2012 12:40:32 +0000 (12:40 +0000)] 
Fix compiler warnings in test_spellfix1.c

FossilOrigin-Name: ebb08d0b4d1ed674e4a23c3754206ca2df9063ff

12 years agoAdd resources describing the version number and other information to EXEs
drh [Mon, 3 Sep 2012 11:39:59 +0000 (11:39 +0000)] 
Add resources describing the version number and other information to EXEs
and DLLs generated using MSVC.

FossilOrigin-Name: a15a70840e1af55ffe4035f53e894a2d582d8f74

12 years agoInsert additional tab character. win32Resources
mistachkin [Mon, 3 Sep 2012 11:14:53 +0000 (11:14 +0000)] 
Insert additional tab character.

FossilOrigin-Name: 3af7c1a6afacea7b5e47bebce2541aa340c6e946

12 years agoLinking and cleaning fixes for the tclsqlite3.exe target in the MSVC makefile.
mistachkin [Mon, 3 Sep 2012 11:01:21 +0000 (11:01 +0000)] 
Linking and cleaning fixes for the tclsqlite3.exe target in the MSVC makefile.

FossilOrigin-Name: 96d43c7a35684cd8ca6ac0d8325193e69f102fb8

12 years agoAdd Win32 version resources to the applicable binaries built by the MSVC makefile.
mistachkin [Mon, 3 Sep 2012 10:32:32 +0000 (10:32 +0000)] 
Add Win32 version resources to the applicable binaries built by the MSVC makefile.

FossilOrigin-Name: e2f27d28b590164bc6b0d856e79c9345e2188d03

12 years agoIn the spellfix phonehash() function, add letter W into the same character
drh [Fri, 31 Aug 2012 14:55:05 +0000 (14:55 +0000)] 
In the spellfix phonehash() function, add letter W into the same character
class as V.

FossilOrigin-Name: 7536101317c00fbb5bf555120feb55b9bc40e8ba

12 years agoChanges for ERROR_PATH_NOT_FOUND in addition to ERROR_FILE_NOT_FOUND in
drh [Fri, 31 Aug 2012 12:31:18 +0000 (12:31 +0000)] 
Changes for ERROR_PATH_NOT_FOUND in addition to ERROR_FILE_NOT_FOUND in
winAccess().

FossilOrigin-Name: 527340abff18aedbcb0f82ac1296a9f548e24ac4

12 years agoExclude the atof1.test test script from the valgrind permutations test since
drh [Thu, 30 Aug 2012 20:24:39 +0000 (20:24 +0000)] 
Exclude the atof1.test test script from the valgrind permutations test since
valgrind sets up the floating point hardware in an unusual way that makes
atof1 fail.

FossilOrigin-Name: d3cf6832a59fe4c5723761abb4c89614406b03db

12 years agoFix an out-of-bounds read in the demonstration code in test_spellfix.c.
dan [Thu, 30 Aug 2012 11:22:16 +0000 (11:22 +0000)] 
Fix an out-of-bounds read in the demonstration code in test_spellfix.c.

FossilOrigin-Name: 59194311543b95c2aeebe2aba83da3c29b7c6460

12 years agoFix a typo in a comment in vdbe.c. No changes to code.
drh [Wed, 29 Aug 2012 10:28:43 +0000 (10:28 +0000)] 
Fix a typo in a comment in vdbe.c.  No changes to code.

FossilOrigin-Name: 9fbe858b625a346690d5cefca3a6fa2a557bea11

12 years agoFix a case where SQLite was failing to detect a syntax error in queries like "SELECT...
dan [Tue, 28 Aug 2012 14:45:50 +0000 (14:45 +0000)] 
Fix a case where SQLite was failing to detect a syntax error in queries like "SELECT ... FROM (<select-1> UNION ALL <select-2>)" when <select-1> and <select-2> return different numbers of result columns.

FossilOrigin-Name: 200a81358c3117401d2258dd06bb8d2ea4f0ef51

12 years agoIssue a log message if the temporary directory has not been set when running on WinRT.
mistachkin [Tue, 28 Aug 2012 04:20:56 +0000 (04:20 +0000)] 
Issue a log message if the temporary directory has not been set when running on WinRT.

FossilOrigin-Name: 9ee39102942d4a4830417f61f0969f29ac0282a1

12 years agoEnable the use of a simpler command line when cross-compiling in the MSVC build envir...
mistachkin [Tue, 28 Aug 2012 01:44:13 +0000 (01:44 +0000)] 
Enable the use of a simpler command line when cross-compiling in the MSVC build environment.

FossilOrigin-Name: 8ade136a038ee71d741af4a9f9e692fdff4e7911