]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
9 years agoWork toward improving analysis and code generation for DISTINCT and better-distinct-agg
drh [Thu, 14 Apr 2016 19:29:59 +0000 (19:29 +0000)] 
Work toward improving analysis and code generation for DISTINCT and
aggregate queries.

FossilOrigin-Name: 129083bd5e9f8688604a7b7169f15907ec6e332f

9 years agoAdd the SF_HasAgg constant (currently unused). Also enhance the comments on
drh [Thu, 14 Apr 2016 16:40:13 +0000 (16:40 +0000)] 
Add the SF_HasAgg constant (currently unused).  Also enhance the comments on
many other constant definitions to detail constraints on their values.

FossilOrigin-Name: 7b7a69d098f7581a43b818c251717c2450b797de

9 years agoCorrectly interpret negative "PRAGMA cache_size" values when determining the cache...
dan [Thu, 14 Apr 2016 15:44:37 +0000 (15:44 +0000)] 
Correctly interpret negative "PRAGMA cache_size" values when determining the cache-size used for sorting large amounts of data (i.e. the functionality in vdbesort.c).

FossilOrigin-Name: 79147dca87cfd7eb62d57baa3b70fa2a8542232a

9 years agoAdd some missing testcase() macros to the pushDownWhereTerms() routine.
drh [Thu, 14 Apr 2016 15:38:33 +0000 (15:38 +0000)] 
Add some missing testcase() macros to the pushDownWhereTerms() routine.

FossilOrigin-Name: 67d7f79c5e5be41a18817c802b5c4d349e3a83a4

9 years agoRename WhereInfo.pResultSet to pDistinctSet to more accurately reflect what
drh [Thu, 14 Apr 2016 13:35:26 +0000 (13:35 +0000)] 
Rename WhereInfo.pResultSet to pDistinctSet to more accurately reflect what
it represents.

FossilOrigin-Name: 5317961411695e107e8cefdeaba62280429979ca

9 years agoSince the return value of sqlite3OsClose() is always ignored, we might as
drh [Thu, 14 Apr 2016 13:16:58 +0000 (13:16 +0000)] 
Since the return value of sqlite3OsClose() is always ignored, we might as
well make it "void" instead of "int", and thereby save 50 bytes in the
compiled binary.

FossilOrigin-Name: 7ee570e7a9a2159a8c0d41805c00f91ca0de00e3

9 years agoAdditional ".selecttrace" debugging output when the query is transformed from a
drh [Thu, 14 Apr 2016 13:06:49 +0000 (13:06 +0000)] 
Additional ".selecttrace" debugging output when the query is transformed from a
DISTINCT into a GROUP BY.

FossilOrigin-Name: 5a46914510af4d5557b299db65c68d5df1070766

9 years agoFix compiler warnings by removing surplus local variables in the schema
drh [Wed, 13 Apr 2016 21:00:36 +0000 (21:00 +0000)] 
Fix compiler warnings by removing surplus local variables in the schema
pretty-printer logic of the command-line shell.

FossilOrigin-Name: 55a62483b9121a8b373d038a26fdebc4308661f6

9 years agoFixes for harmless compiler warnings.
drh [Wed, 13 Apr 2016 15:52:16 +0000 (15:52 +0000)] 
Fixes for harmless compiler warnings.

FossilOrigin-Name: 68142dc541b7a0a36fcb075a26f10f03c1e7c422

9 years agoAdd the --indent option to the .schema and .fullschema commands in the shell,
drh [Wed, 13 Apr 2016 15:33:42 +0000 (15:33 +0000)] 
Add the --indent option to the .schema and .fullschema commands in the shell,
to enable simple but effective pretty-printing.

FossilOrigin-Name: 83cfe82cd6d31ec0a6193525fd92e63a2a43b142

9 years agoA couple more compiler warning fixes.
mistachkin [Tue, 12 Apr 2016 20:26:51 +0000 (20:26 +0000)] 
A couple more compiler warning fixes.

FossilOrigin-Name: 929fa4c31e7c5b8c6cbb1412478ea91b15ad5529

9 years agoEven more compiler warning fixes.
mistachkin [Tue, 12 Apr 2016 20:15:12 +0000 (20:15 +0000)] 
Even more compiler warning fixes.

FossilOrigin-Name: 7faec9ea335c53953338886398b85aef87348a1c

9 years agoMore harmless compiler warning fixes.
mistachkin [Tue, 12 Apr 2016 20:05:06 +0000 (20:05 +0000)] 
More harmless compiler warning fixes.

FossilOrigin-Name: ab69527c1608da0b668f3b49e967661dd99cc3d4

9 years agoCompilation fix for a C99-ism in the 'fts3view' tool.
mistachkin [Tue, 12 Apr 2016 19:30:31 +0000 (19:30 +0000)] 
Compilation fix for a C99-ism in the 'fts3view' tool.

FossilOrigin-Name: bedb88a4b9c808ea781ae69058399a1a3a3d15fa

9 years agoFix harmless compiler warnings in the 'session' module.
mistachkin [Tue, 12 Apr 2016 19:20:22 +0000 (19:20 +0000)] 
Fix harmless compiler warnings in the 'session' module.

FossilOrigin-Name: a18a6ce2271865d04cd75a8a5baa63798b7393db

9 years agoFix speedtest1 so that it automatically unlinks its test database prior
drh [Tue, 12 Apr 2016 17:13:33 +0000 (17:13 +0000)] 
Fix speedtest1 so that it automatically unlinks its test database prior
to startup.

FossilOrigin-Name: b65b69f6b686c6555876b6fc701da95cc49120b5

9 years agoAdd the --temp option to the speedtest1.c performance test program.
drh [Tue, 12 Apr 2016 16:59:39 +0000 (16:59 +0000)] 
Add the --temp option to the speedtest1.c performance test program.

FossilOrigin-Name: 8053a6e2bf616fc9326f0323962176e318d7d2a5

9 years agoImproved localtime() support for WindowsCE
drh [Tue, 12 Apr 2016 16:23:30 +0000 (16:23 +0000)] 
Improved localtime() support for WindowsCE

FossilOrigin-Name: 662c32af0276a9ef4eea2d29e2523ccc44b6d128

9 years agoAdd and adjust comments. winCeLocalTime
mistachkin [Tue, 12 Apr 2016 16:11:52 +0000 (16:11 +0000)] 
Add and adjust comments.

FossilOrigin-Name: 541c6da23850673f5d2a2e31c3967b796ee2effc

9 years agoAdd the sqlite3_snapshot_cmp() interface (available only with
drh [Tue, 12 Apr 2016 16:04:07 +0000 (16:04 +0000)] 
Add the sqlite3_snapshot_cmp() interface (available only with
SQLITE_ENABLE_SNAPSHOT).

FossilOrigin-Name: 7e7289655185e7643ead6d685922528bc4d9e0ae

9 years agoUpdate the documentation for sqlite3_snapshot_cmp() to make the circumstances under... snapshot-cmp
dan [Tue, 12 Apr 2016 15:14:25 +0000 (15:14 +0000)] 
Update the documentation for sqlite3_snapshot_cmp() to make the circumstances under which the comparison is valid clearer. Add tests for the same.

FossilOrigin-Name: 8fc834741bf6c8a832a180795c3d6f5c3dcfcd62

9 years agoUpdate the header comment on the memjournal.c file. No code changes.
drh [Tue, 12 Apr 2016 11:58:18 +0000 (11:58 +0000)] 
Update the header comment on the memjournal.c file.  No code changes.

FossilOrigin-Name: 07f10deabb0f4207408142541e3913d638dfcdeb

9 years agoPerformance optimization the Vdbe allocator.
drh [Tue, 12 Apr 2016 00:26:59 +0000 (00:26 +0000)] 
Performance optimization the Vdbe allocator.

FossilOrigin-Name: e2c4995bf1099cc02bcb1dc4a4631f06a870d171

9 years agoAvoid unnecessary calls to object destructors for a small performance gain.
drh [Tue, 12 Apr 2016 00:16:54 +0000 (00:16 +0000)] 
Avoid unnecessary calls to object destructors for a small performance gain.

FossilOrigin-Name: aec94b6ee68fe50e2cc14388281e2ef531e21d68

9 years agoPerformance improvements in sqlite3WhereExprUsage().
drh [Tue, 12 Apr 2016 00:00:33 +0000 (00:00 +0000)] 
Performance improvements in sqlite3WhereExprUsage().

FossilOrigin-Name: fdf752394b48fb7b9afe7b8a7d83f859985cc2d2

9 years agoFurther refinements.
mistachkin [Mon, 11 Apr 2016 22:45:45 +0000 (22:45 +0000)] 
Further refinements.

FossilOrigin-Name: b35bb928b25492f6dd71ccf9c250cb9f0cce09ff

9 years agoMerge updates from trunk.
mistachkin [Mon, 11 Apr 2016 22:24:03 +0000 (22:24 +0000)] 
Merge updates from trunk.

FossilOrigin-Name: b8094166b3c6a8ec7913b403e08b5e6790fb03c1

9 years agoFix typo in the MSVC makefile.
mistachkin [Mon, 11 Apr 2016 22:23:04 +0000 (22:23 +0000)] 
Fix typo in the MSVC makefile.

FossilOrigin-Name: 3189a7f1851f823218d85a2455bf218d00d81543

9 years agoFix some compilation issues.
mistachkin [Mon, 11 Apr 2016 22:10:26 +0000 (22:10 +0000)] 
Fix some compilation issues.

FossilOrigin-Name: 016481b39f8b23b4f0f851053068d8eaee6122e1

9 years agoAdd the sqlite3_snapshot_cmp() API.
dan [Mon, 11 Apr 2016 19:59:52 +0000 (19:59 +0000)] 
Add the sqlite3_snapshot_cmp() API.

FossilOrigin-Name: c698a21af740ca1019c3a771fb83e569cd6bf23e

9 years agoPerformance optimization to sqlite3Dequote() and its callers.
drh [Mon, 11 Apr 2016 19:01:08 +0000 (19:01 +0000)] 
Performance optimization to sqlite3Dequote() and its callers.

FossilOrigin-Name: 9efe2265b1e70172778d333c5b9d9a76095427ab

9 years agoPerformance optimization for the sqlite3ExprListDelete() routine.
drh [Mon, 11 Apr 2016 18:25:05 +0000 (18:25 +0000)] 
Performance optimization for the sqlite3ExprListDelete() routine.

FossilOrigin-Name: 2764aeaa11f38cf2ff4d6191e6d5466ddb203022

9 years agoPerformance optimizations in the column cache of the code generator, and
drh [Mon, 11 Apr 2016 18:15:37 +0000 (18:15 +0000)] 
Performance optimizations in the column cache of the code generator, and
especially the sqlite3ExprCacheRemove() routine.

FossilOrigin-Name: e35b345cf858018ae0c07f79725f8d58062168db

9 years agoSimplification and performance improvements in sqlite3ExprDup() and its
drh [Mon, 11 Apr 2016 16:43:43 +0000 (16:43 +0000)] 
Simplification and performance improvements in sqlite3ExprDup() and its
subroutines.  More work is possible in this area.

FossilOrigin-Name: 476cc2838824e0667e80ce527b9caa551dee4a77

9 years agoRename the OP_MX_JUMP macro to SQLITE_MX_JUMP_OPCODE to avoid confusing the
drh [Mon, 11 Apr 2016 16:35:05 +0000 (16:35 +0000)] 
Rename the OP_MX_JUMP macro to SQLITE_MX_JUMP_OPCODE to avoid confusing the
opcode name generator.

FossilOrigin-Name: e554a4c38bda9c73bf129bb7c665c53ccc4d96a8

9 years agoPerformance improvement in sqlite3ExprDelete().
drh [Mon, 11 Apr 2016 14:49:39 +0000 (14:49 +0000)] 
Performance improvement in sqlite3ExprDelete().

FossilOrigin-Name: 60ad80e3af4bae9f5c74fedf09eec9689e2e3dbf

9 years agoRemove the VdbeOp.opflags field and its associated initialization overhead.
drh [Mon, 11 Apr 2016 13:36:42 +0000 (13:36 +0000)] 
Remove the VdbeOp.opflags field and its associated initialization overhead.
Update mkopcodeh.tcl to reorder opcode numbers to help the resolveP2Values()
routine run faster.

FossilOrigin-Name: 099478fa7521ba52262ef2bf24dd8f0114ce92e1

9 years agoBack off of the parser optimization in the previous check-in, slightly, to
drh [Mon, 11 Apr 2016 01:43:33 +0000 (01:43 +0000)] 
Back off of the parser optimization in the previous check-in, slightly, to
preserve some backwards compatibility regarding some undocumented behavior
in the '#AAA' style query parameter.

FossilOrigin-Name: ef1966c2469a0f5dbdb31a0287bd37badb2b8f28

9 years agoSmall size reduction and performance improvement in the parser.
drh [Mon, 11 Apr 2016 01:26:31 +0000 (01:26 +0000)] 
Small size reduction and performance improvement in the parser.

FossilOrigin-Name: 16df71284bf081c8b3d3aa57c129a07067ddbed3

9 years agoFactor out the common operation of setting the Expr.x.pSelect field of an
drh [Mon, 11 Apr 2016 01:06:47 +0000 (01:06 +0000)] 
Factor out the common operation of setting the Expr.x.pSelect field of an
Expr object into a subroutine.

FossilOrigin-Name: 6a5cceee486c5e3625556e4c7076ff90e9d8fa43

9 years agoFix a problem in the code generator for joins on virtual tables where the
drh [Sat, 9 Apr 2016 18:04:28 +0000 (18:04 +0000)] 
Fix a problem in the code generator for joins on virtual tables where the
outer loop of the join uses the IN operator.

FossilOrigin-Name: 6c56b3a04778bc62ca50307ad838dd301cd91ac2

9 years agoFix the sqlite3BtreeDelete() routine so that it preserves the correct
drh [Sat, 9 Apr 2016 17:04:05 +0000 (17:04 +0000)] 
Fix the sqlite3BtreeDelete() routine so that it preserves the correct
key even when the row being deleted is not on a leaf page.
Fix for ticket [a306e56ff68b8fa56]

FossilOrigin-Name: ca2ef8a86cf806cbbcc64db03251b1df5b2c5501

9 years agoLimit the number of digits shown in the "prereq" mask for ".wheretrace"
drh [Sat, 9 Apr 2016 14:36:07 +0000 (14:36 +0000)] 
Limit the number of digits shown in the "prereq" mask for ".wheretrace"
debugging output.

FossilOrigin-Name: 3686ed7413ae6cdbc8020c0023205e0455e87467

9 years agoUpdate documentation for sqlite3_snapshot_open(). No code changes.
drh [Fri, 8 Apr 2016 19:44:31 +0000 (19:44 +0000)] 
Update documentation for sqlite3_snapshot_open().  No code changes.

FossilOrigin-Name: 1dfa5234d3ee38c6af2d18a6294afa93232821e7

9 years agoAdd test cases for ticket [7f7f8026eda387d544].
drh [Thu, 7 Apr 2016 21:14:35 +0000 (21:14 +0000)] 
Add test cases for ticket [7f7f8026eda387d544].

FossilOrigin-Name: 87aa9357fbe6749bae60e30af54ca16e48678802

9 years agoPrevent the in-memory journal read cursor from entering an inconsistent state
drh [Thu, 7 Apr 2016 18:42:23 +0000 (18:42 +0000)] 
Prevent the in-memory journal read cursor from entering an inconsistent state
when it reads the last few bytes out of the journal file.  Fix for
ticket [7f7f8026eda38].

FossilOrigin-Name: c4b9c611bdcd85f31d68aaf114ee34a9f27eba6d

9 years agoAvoid decrementing a pointer off the front end of the buffer in OP_MakeRecord.
drh [Thu, 7 Apr 2016 14:16:16 +0000 (14:16 +0000)] 
Avoid decrementing a pointer off the front end of the buffer in OP_MakeRecord.

FossilOrigin-Name: 153135bfb3b8f7c407ccf36571e2d4d5afe28ea3

9 years agoInstead of just commenting out the unneeded code in the previous check-in,
drh [Thu, 7 Apr 2016 14:05:20 +0000 (14:05 +0000)] 
Instead of just commenting out the unneeded code in the previous check-in,
remove it completely.

FossilOrigin-Name: 8415d4848ab36ca33b23d1fad6b063544de04a3b

9 years agoRemove an unnecessary test for a NULL pointer in freeP4().
drh [Thu, 7 Apr 2016 14:01:10 +0000 (14:01 +0000)] 
Remove an unnecessary test for a NULL pointer in freeP4().

FossilOrigin-Name: e84e88e31b67afe42e2494d984ab1cafd107465a

9 years agoUpdate comments on the unix file locking protocol. No changes to code.
drh [Thu, 7 Apr 2016 13:45:20 +0000 (13:45 +0000)] 
Update comments on the unix file locking protocol.  No changes to code.

FossilOrigin-Name: 716b20de4306de1653ba5bcdbfb8d210d2d46e1a

9 years agoRemove an unnecessary branch in the sqlite3LogEstToInt() routine.
drh [Tue, 5 Apr 2016 23:39:53 +0000 (23:39 +0000)] 
Remove an unnecessary branch in the sqlite3LogEstToInt() routine.

FossilOrigin-Name: da81d7afeb0566a09a505ba5fce901e991e4a029

9 years agoCarry table column types through into VIEW definitions, where possible.
drh [Tue, 5 Apr 2016 20:59:12 +0000 (20:59 +0000)] 
Carry table column types through into VIEW definitions, where possible.

FossilOrigin-Name: fb555c3c2af7f5e62ff839658f4fba7b645d3a68

9 years agoRemove superfluous directories from the Makefile clean targets.
mistachkin [Tue, 5 Apr 2016 19:46:10 +0000 (19:46 +0000)] 
Remove superfluous directories from the Makefile clean targets.

FossilOrigin-Name: 0bf9926c7a7865694edd48535777248e73d86bbf

9 years agoMerge updates from trunk.
mistachkin [Tue, 5 Apr 2016 17:59:56 +0000 (17:59 +0000)] 
Merge updates from trunk.

FossilOrigin-Name: 00990020d07d7c87b922cdbfa5373298a86bb4b3

9 years agoIncorrect version of build.c checked in at [87e5f5a6c60e3] (because I
drh [Tue, 5 Apr 2016 15:59:23 +0000 (15:59 +0000)] 
Incorrect version of build.c checked in at [87e5f5a6c60e3] (because I
neglected to press the "Save" button on the text editor).  There is no change
to the logic, just improved presentation.

FossilOrigin-Name: cf569f9f2fab1828e4bfced111fd9a6ee23ea8c0

9 years agoMake sure "0" intended as a NULL pointer is cast to a pointer when used
drh [Tue, 5 Apr 2016 14:02:16 +0000 (14:02 +0000)] 
Make sure "0" intended as a NULL pointer is cast to a pointer when used
in a varargs functions parameter.

FossilOrigin-Name: ed128e8b826cd9620b7146d01d461ed28b9a672d

9 years agoRemove an unnecessary conditional from the index builder.
drh [Tue, 5 Apr 2016 14:01:34 +0000 (14:01 +0000)] 
Remove an unnecessary conditional from the index builder.

FossilOrigin-Name: 87e5f5a6c60e37e943b3ce80617e81b09852515e

9 years agoUse SQLITE_WITHIN() for pointer range comparisons in some testing code.
drh [Tue, 5 Apr 2016 13:35:43 +0000 (13:35 +0000)] 
Use SQLITE_WITHIN() for pointer range comparisons in some testing code.

FossilOrigin-Name: 7cacf4e954c8de5af5efb56d8271a5ac1edc1c04

9 years agoDo not allow pointer arithmetic to move a pointer across a memory allocation
drh [Tue, 5 Apr 2016 13:19:19 +0000 (13:19 +0000)] 
Do not allow pointer arithmetic to move a pointer across a memory allocation
boundary.

FossilOrigin-Name: 85b979319bcb8ec301ae39b36ad60348e4515be7

9 years agoFix documentation typos. Comment changes only. No changes to code.
drh [Mon, 4 Apr 2016 18:04:56 +0000 (18:04 +0000)] 
Fix documentation typos.  Comment changes only.  No changes to code.

FossilOrigin-Name: d5fc2f7f90f8cbd53810c7a445b0e9c9a0e39182

9 years agoImprove error messages from the 'shell1-5.0' test.
mistachkin [Mon, 4 Apr 2016 17:59:37 +0000 (17:59 +0000)] 
Improve error messages from the 'shell1-5.0' test.

FossilOrigin-Name: cefd36ff7b7f142bcebdb16b4d24ae274cdf2709

9 years agoImproved handling of UTF8 by the command-line shell.
drh [Mon, 4 Apr 2016 17:34:54 +0000 (17:34 +0000)] 
Improved handling of UTF8 by the command-line shell.

FossilOrigin-Name: 4534ebf15fbcd6fe2028957b7aa591b6cd5da95f

9 years agoAdd the ".auth ON|OFF" command to the command-line shell.
drh [Mon, 4 Apr 2016 17:23:10 +0000 (17:23 +0000)] 
Add the ".auth ON|OFF" command to the command-line shell.

FossilOrigin-Name: 65c7bcc42786a254966c531ba9062abb8fc8c5bf

9 years agoTest that the view name is passed to the authorization callback when a SELECT stateme...
dan [Mon, 4 Apr 2016 16:40:44 +0000 (16:40 +0000)] 
Test that the view name is passed to the authorization callback when a SELECT statement is run on a view.

FossilOrigin-Name: 8627a4cd6d64bd076b56c1e8ccc3b1dfc1b4c07d

9 years agoAdd and enhance the new tests. altShellFix
mistachkin [Mon, 4 Apr 2016 15:47:46 +0000 (15:47 +0000)] 
Add and enhance the new tests.

FossilOrigin-Name: f4cbd18db47af4af990d7891dcc831e92b3f17e0

9 years agoEnhance sqlite3session_apply() and sqlite3session_apply_strm() so that
drh [Mon, 4 Apr 2016 14:57:25 +0000 (14:57 +0000)] 
Enhance sqlite3session_apply() and sqlite3session_apply_strm() so that
conflicts are retried before the xConflict() callback is invoked, as long
as the "apply" operation is making forward progress.

FossilOrigin-Name: 42a219668413e18dae917b03b04a21d108cc44be

9 years agoMinor performance optimization in the comparison opcodes of the VDBE.
drh [Mon, 4 Apr 2016 13:46:24 +0000 (13:46 +0000)] 
Minor performance optimization in the comparison opcodes of the VDBE.

FossilOrigin-Name: e375fe52cea7903c11ecef71c3452c67a96b663e

9 years agoFix harmless compiler warnings.
drh [Mon, 4 Apr 2016 12:38:05 +0000 (12:38 +0000)] 
Fix harmless compiler warnings.

FossilOrigin-Name: 0213d6af84965676626c2fb4d78b4c74675207cc

9 years agoRefinements to the previous check-in.
mistachkin [Mon, 4 Apr 2016 02:33:34 +0000 (02:33 +0000)] 
Refinements to the previous check-in.

FossilOrigin-Name: b36dfdff787dc4a107b2c3fcbb98bfc4922872d8

9 years agoExperimental changes to the command line shell to make it work better with Unicode...
mistachkin [Mon, 4 Apr 2016 02:16:44 +0000 (02:16 +0000)] 
Experimental changes to the command line shell to make it work better with Unicode on Windows.

FossilOrigin-Name: 74183a5f803999e1d4e288851c72519c3c53f6b5

9 years agoMore refactoring and cleanup work on the Win32 string conversion and utility routines.
mistachkin [Mon, 4 Apr 2016 02:05:46 +0000 (02:05 +0000)] 
More refactoring and cleanup work on the Win32 string conversion and utility routines.

FossilOrigin-Name: 02ccb444a3d0b9a52ffd04cae9d9b6f654128c35

9 years agoRevise and enhance the Win32 string conversion routines.
mistachkin [Sun, 3 Apr 2016 22:44:16 +0000 (22:44 +0000)] 
Revise and enhance the Win32 string conversion routines.

FossilOrigin-Name: 345860c92195544aad44ea9b0d14c9ebbd50adf2

9 years agoReplace the new fprintf() calls.
mistachkin [Sun, 3 Apr 2016 20:50:02 +0000 (20:50 +0000)] 
Replace the new fprintf() calls.

FossilOrigin-Name: f76c3a0ca40989fe9401c3b6f662f8e6ef2a730c

9 years agoMerge updates from trunk.
mistachkin [Sun, 3 Apr 2016 20:45:04 +0000 (20:45 +0000)] 
Merge updates from trunk.

FossilOrigin-Name: 566b551e5a81440a5c8ff865ceb4422c76d67cf7

9 years agoPreupdate hook documentation fixes. No changes to code.
drh [Fri, 1 Apr 2016 17:54:07 +0000 (17:54 +0000)] 
Preupdate hook documentation fixes.  No changes to code.

FossilOrigin-Name: 59814f35d13db1f6379b9ae218b5432bc03c6197

9 years agoWhen reading an sqlite_stat1 table with missing entries for some indexes,
drh [Fri, 1 Apr 2016 12:35:22 +0000 (12:35 +0000)] 
When reading an sqlite_stat1 table with missing entries for some indexes,
set the default for the missing indexes after all other indexes are set
so that the default values are more in line with indexes that are actually
in the stat1 table.

FossilOrigin-Name: a62340dc0507e36f6dec05b1fda68d8399ec62ec

9 years agoUpdate the clean target in the MSVC makefile.
mistachkin [Thu, 31 Mar 2016 22:53:37 +0000 (22:53 +0000)] 
Update the clean target in the MSVC makefile.

FossilOrigin-Name: 69f4d83210f6425b2c0d699b397ef4fa4422d438

9 years agoEnhance the query planner so that IS and IS NULL operators are able to drive
drh [Thu, 31 Mar 2016 20:40:28 +0000 (20:40 +0000)] 
Enhance the query planner so that IS and IS NULL operators are able to drive
an index on a LEFT OUTER JOIN.

FossilOrigin-Name: c648539b52ca28c0b2cb61208e2c32b1d29626a1

9 years agoAdd another OOM test to this branch. session-retry
dan [Thu, 31 Mar 2016 15:08:10 +0000 (15:08 +0000)] 
Add another OOM test to this branch.

FossilOrigin-Name: 49763fc3ae2fb6117b0443ea28661568467f9bf2

9 years agoAdd further tests for the code on this branch. Fix a problem in OOM handling.
dan [Thu, 31 Mar 2016 10:50:26 +0000 (10:50 +0000)] 
Add further tests for the code on this branch. Fix a problem in OOM handling.

FossilOrigin-Name: 195f3340ee4d870420e4f58d44300bab5436b920

9 years agoEnhanced comments describing the sessions file format. No changes to code.
drh [Thu, 31 Mar 2016 02:44:56 +0000 (02:44 +0000)] 
Enhanced comments describing the sessions file format.  No changes to code.

FossilOrigin-Name: 84dc41e2df1092e9724a535b670343181a9cd0dd

9 years agoFix the return code in sessionRetryConstraints().
drh [Thu, 31 Mar 2016 00:45:58 +0000 (00:45 +0000)] 
Fix the return code in sessionRetryConstraints().

FossilOrigin-Name: ea917c14b940f95b20b91dae77567dc25a651ef6

9 years agoHave the sqlite3session_apply() function and its streaming equivalent retry any opera...
dan [Wed, 30 Mar 2016 21:19:00 +0000 (21:19 +0000)] 
Have the sqlite3session_apply() function and its streaming equivalent retry any operations that failed with SQLITE_CONSTRAINT after all other operations on the same table have been attempted. New code is largely untested.

FossilOrigin-Name: 1085911afb51744f32fe9db183b50e8e88bdd73e

9 years agoUpdates for the MSVC makefiles.
mistachkin [Wed, 30 Mar 2016 16:23:06 +0000 (16:23 +0000)] 
Updates for the MSVC makefiles.

FossilOrigin-Name: 7cf0cab730e2d570c82dd789279ad6501ac598c8

9 years agoFix typo in comment. No changes to code.
mistachkin [Wed, 30 Mar 2016 16:22:18 +0000 (16:22 +0000)] 
Fix typo in comment.  No changes to code.

FossilOrigin-Name: 64d75cbe2c45af67124fa7ce5688d91cc6ddb755

9 years agoSimplifications and clarification to update callback handling in the
drh [Wed, 30 Mar 2016 15:30:07 +0000 (15:30 +0000)] 
Simplifications and clarification to update callback handling in the
OP_Delete and OP_Insert opcodes.

FossilOrigin-Name: 47887ef89ed60ddb869d65e0957c1c4b2115f169

9 years agoIncrease the version number to 3.13.0 on account of the new session extension.
drh [Wed, 30 Mar 2016 14:26:36 +0000 (14:26 +0000)] 
Increase the version number to 3.13.0 on account of the new session extension.

FossilOrigin-Name: e9bcd5acb9ab7b3d55c96519ca10f51f35e24cd9

9 years agoRemove a redundant test for disabling RESTRICT with defer_foreign_keys=ON.
drh [Wed, 30 Mar 2016 14:17:36 +0000 (14:17 +0000)] 
Remove a redundant test for disabling RESTRICT with defer_foreign_keys=ON.

FossilOrigin-Name: 9cdf813c6aaaddc01d2d4e04636c83fcda04d971

9 years agoIncorporate the sessions extension and the
drh [Wed, 30 Mar 2016 13:43:09 +0000 (13:43 +0000)] 
Incorporate the sessions extension and the
SQLITE_ENABLE_PREUPDATE_HOOK compile-time option.

FossilOrigin-Name: 4af7a90f980ade3566fc5da2f0db2669ac7d8256

9 years agoAvoid compiler warnings and excess opcodes when SQLITE_ENABLE_PREUPDATE_HOOK sessions
drh [Wed, 30 Mar 2016 12:56:55 +0000 (12:56 +0000)] 
Avoid compiler warnings and excess opcodes when SQLITE_ENABLE_PREUPDATE_HOOK
is not used.  Fix the EXPLAIN output for P4_TABLE opcodes.

FossilOrigin-Name: 5ab46d760dff327491703478d6d7c7c44a0147ca

9 years agoImprovements to the performance testing program "speedtest1.c" and the
drh [Wed, 30 Mar 2016 12:20:24 +0000 (12:20 +0000)] 
Improvements to the performance testing program "speedtest1.c" and the
shell script that invokes it.

FossilOrigin-Name: e4bee561fdead5d35c24da3fe8a11bf6548550c6

9 years agoMerge changes for 3.12.0.
drh [Tue, 29 Mar 2016 10:19:29 +0000 (10:19 +0000)] 
Merge changes for 3.12.0.

FossilOrigin-Name: ed22eb653f2809446ace6a27e7ea3926ac6db30c

9 years agoVersion 3.12.0 version-3.12.0
drh [Tue, 29 Mar 2016 10:14:15 +0000 (10:14 +0000)] 
Version 3.12.0

FossilOrigin-Name: e9bb4cf40f4971974a74468ef922bdee481c988b

9 years agoFix the multiplexor so that it does not assume that the xGetLastError method
drh [Mon, 28 Mar 2016 11:01:54 +0000 (11:01 +0000)] 
Fix the multiplexor so that it does not assume that the xGetLastError method
is non-NULL in the child VFS.

FossilOrigin-Name: f6a88cccbc0c62a0b453f4711298c9d5e1882b18

9 years agoMore changes to the shellN.test scripts to get them working on all variations
drh [Sat, 26 Mar 2016 15:36:36 +0000 (15:36 +0000)] 
More changes to the shellN.test scripts to get them working on all variations
of Windows.

FossilOrigin-Name: 8213c2f58167243411d29cc58e303b4be656f756

9 years agoRemove the catchcmd_collapse_space procedure in tester.tcl - no longer needed.
drh [Sat, 26 Mar 2016 14:41:13 +0000 (14:41 +0000)] 
Remove the catchcmd_collapse_space procedure in tester.tcl - no longer needed.

FossilOrigin-Name: 3bd499d3bdf4e80f83513966c2ee9dd11e67cbd1

9 years agoUpdate shell1.test tests to deal with backslash escaping in TCL on Windows-style
drh [Sat, 26 Mar 2016 13:26:35 +0000 (13:26 +0000)] 
Update shell1.test tests to deal with backslash escaping in TCL on Windows-style
pathnames.

FossilOrigin-Name: 219a251e182bf43376fbc8ae1ce6f77f18a1b092

9 years agoDo not run the shell3.test module under mingw because of mingw's dodgy
drh [Fri, 25 Mar 2016 20:10:20 +0000 (20:10 +0000)] 
Do not run the shell3.test module under mingw because of mingw's dodgy
command-line parsing.

FossilOrigin-Name: a7c080a90a236fbc18b9a42b78dbed4dd8a25160

9 years agoIn the Win32 VFS, avoid trying to use rand_s() on Windows CE.
mistachkin [Fri, 25 Mar 2016 17:19:57 +0000 (17:19 +0000)] 
In the Win32 VFS, avoid trying to use rand_s() on Windows CE.

FossilOrigin-Name: 183350fa7cc6a5ab8bd0a86cab231a6e4c915890

9 years agoAdd the catchcmd_collapse_space command and use it to help make shell testing
drh [Fri, 25 Mar 2016 17:09:16 +0000 (17:09 +0000)] 
Add the catchcmd_collapse_space command and use it to help make shell testing
more robust against TCL space escapes.

FossilOrigin-Name: 93caabb66082f76ef161a51ac822b919517a7171