]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
9 years agoAttempt to treat the arguments to a table-valued function as if they occur tabfunc-in-left-join
drh [Fri, 8 Apr 2016 21:35:34 +0000 (21:35 +0000)] 
Attempt to treat the arguments to a table-valued function as if they occur
in the ON clause of a LEFT JOIN rather than in the WHERE clause.  But this
causes undesirable behavior with generate_series, as demonstrated by test
cases.  This is an incremental check-in pending further work.

FossilOrigin-Name: 00ac73a01caf578c70b7114f84f35fdba9a2097c

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 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

9 years agoFix two instances of undefined behavior in the C code - both harmless for
drh [Fri, 25 Mar 2016 12:10:32 +0000 (12:10 +0000)] 
Fix two instances of undefined behavior in the C code - both harmless for
all current compilers.

FossilOrigin-Name: 99fd194c83dbcfcdcc582983b86678b85b1b9570

9 years agoMake test cases in shell1.test robust against TCL deciding to quote strings
drh [Thu, 24 Mar 2016 20:55:03 +0000 (20:55 +0000)] 
Make test cases in shell1.test robust against TCL deciding to quote strings
using lots of backslashes.

FossilOrigin-Name: 817e93f42c09eb876421e27eb8eceb7b077cb45d

9 years agoPrevent negative values of SQLITE_DEFAULT_CACHE_SIZE from making SQLITE_WIN32_HEAP_IN...
mistachkin [Thu, 24 Mar 2016 20:36:47 +0000 (20:36 +0000)] 
Prevent negative values of SQLITE_DEFAULT_CACHE_SIZE from making SQLITE_WIN32_HEAP_INIT_SIZE negative.

FossilOrigin-Name: e0737f5236ed3e85bd03203c880ee41b34619137

9 years agoLarger margins for one memsubsys1 range check when running with a
drh [Thu, 24 Mar 2016 15:32:19 +0000 (15:32 +0000)] 
Larger margins for one memsubsys1 range check when running with a
non-zero reserved-bytes value.

FossilOrigin-Name: 6db1d1fbc6c1acc896fa635dfdc5564800502c40

9 years agoFix some test scripts so that they work with various permutations.
dan [Thu, 24 Mar 2016 15:09:14 +0000 (15:09 +0000)] 
Fix some test scripts so that they work with various permutations.

FossilOrigin-Name: f4d234b5013bf93b6eac7f8be6d4c074cf9f5293

9 years agoMerge the beta changes into sessions.
drh [Thu, 24 Mar 2016 14:34:26 +0000 (14:34 +0000)] 
Merge the beta changes into sessions.

FossilOrigin-Name: beb5ea1439995fb8ab112451a8ffcc08fe42d0c4

9 years agoAvoid calling realloc() with a zero size in fuzzcheck.c.
drh [Wed, 23 Mar 2016 17:54:19 +0000 (17:54 +0000)] 
Avoid calling realloc() with a zero size in fuzzcheck.c.

FossilOrigin-Name: a1fd14694c1adc54e5c443ebfdef38e38637f5c5

9 years agoFix "ifcapable" tests in capi3.test and capi3c.test so that the tests work with more...
dan [Wed, 23 Mar 2016 16:32:29 +0000 (16:32 +0000)] 
Fix "ifcapable" tests in capi3.test and capi3c.test so that the tests work with more build configurations.

FossilOrigin-Name: 3fa88f68c3e1bbb3421cb0d2b82b9bb3fe7b9b14

9 years agoRemove an unused local variable from FTS5.
drh [Wed, 23 Mar 2016 15:53:45 +0000 (15:53 +0000)] 
Remove an unused local variable from FTS5.

FossilOrigin-Name: 0ed693c29f184223cde3b3d51f0e06273e586803

9 years agoExplicitly limit the size of fts5 tokens to 32768 bytes.
dan [Wed, 23 Mar 2016 15:04:00 +0000 (15:04 +0000)] 
Explicitly limit the size of fts5 tokens to 32768 bytes.

FossilOrigin-Name: 70fc69eed9b09159899d7cbd1416a59d04210a63

9 years agoUpdate a requirement mark. No changes to code.
drh [Wed, 23 Mar 2016 13:46:05 +0000 (13:46 +0000)] 
Update a requirement mark.  No changes to code.

FossilOrigin-Name: 412984642af40578ec611d8c0b7c0508cb5cf9c9

9 years agoThe sqlite3_column_decltype() routine should return NULL, not an empty string,
drh [Tue, 22 Mar 2016 20:05:09 +0000 (20:05 +0000)] 
The sqlite3_column_decltype() routine should return NULL, not an empty string,
if the column has no declared type.

FossilOrigin-Name: 605eba4a756e7185119088e2242f82691d078b01

9 years agoFix harmless compiler warning for MSVC.
mistachkin [Tue, 22 Mar 2016 15:26:03 +0000 (15:26 +0000)] 
Fix harmless compiler warning for MSVC.

FossilOrigin-Name: 142cd359d37f1d8d53de32e329523d9a93c7d6e5

9 years agoFix a harmless compiler warning.
drh [Tue, 22 Mar 2016 15:25:16 +0000 (15:25 +0000)] 
Fix a harmless compiler warning.

FossilOrigin-Name: 5ace870d3ac3e9eb29cb4602c9036873adbcb99d

9 years agoFix some errors in fts5 test scripts.
dan [Tue, 22 Mar 2016 15:01:54 +0000 (15:01 +0000)] 
Fix some errors in fts5 test scripts.

FossilOrigin-Name: e1ab2d376a72786098125a41c1ea8140fcbd15c6

9 years agoCreate the "uptr" typedef (the same as uintptr_t when available) and use it
drh [Tue, 22 Mar 2016 14:37:59 +0000 (14:37 +0000)] 
Create the "uptr" typedef (the same as uintptr_t when available) and use it
to cast pointers before comparison.

FossilOrigin-Name: 2484cc0c3ffc8834a155f89af1581bd07d453a90

9 years agoAvoid the possibility of integer overflow on a pointer comparison test for
drh [Tue, 22 Mar 2016 14:10:45 +0000 (14:10 +0000)] 
Avoid the possibility of integer overflow on a pointer comparison test for
corruption in the database file.

FossilOrigin-Name: ff1b1ac3313ba9d70414e928ef3dd82913298a1a

9 years agoFix harmless compiler warnings.
drh [Mon, 21 Mar 2016 22:28:51 +0000 (22:28 +0000)] 
Fix harmless compiler warnings.

FossilOrigin-Name: 25d776e4523aefeec007943fe29aa17c23ccb301

9 years agoAdd tests to ensure that fts5 is now deterministic.
dan [Mon, 21 Mar 2016 16:25:34 +0000 (16:25 +0000)] 
Add tests to ensure that fts5 is now deterministic.

FossilOrigin-Name: 3d076094ce411bffcfeb76c0284d15d0f83bd459

9 years agoSkip recently added test cases in nolock.test when running in
drh [Mon, 21 Mar 2016 16:19:29 +0000 (16:19 +0000)] 
Skip recently added test cases in nolock.test when running in
the inmemory_journal permutation.

FossilOrigin-Name: a1dcf7af42bb7394d46138318f9367fe9e8be560

9 years agoRemove an unreachable branch from the unlink verification logic in the UNIX
drh [Mon, 21 Mar 2016 16:06:42 +0000 (16:06 +0000)] 
Remove an unreachable branch from the unlink verification logic in the UNIX
VFS.

FossilOrigin-Name: 4dc30cce7fdb7dba9a9aad96bb8b499b965610b2

9 years agoMerge 3.12.0 beta changes from trunk.
drh [Mon, 21 Mar 2016 15:32:19 +0000 (15:32 +0000)] 
Merge 3.12.0 beta changes from trunk.

FossilOrigin-Name: 3296a0ceedef43c2790f0b36471f91138a575243

9 years agoHave fts5 cache the structure of its index in main memory. Use "PRAGMA data_version...
dan [Mon, 21 Mar 2016 15:30:50 +0000 (15:30 +0000)] 
Have fts5 cache the structure of its index in main memory. Use "PRAGMA data_version" to figure out when this cache should be invalidated.

FossilOrigin-Name: 902f221754f3cc6fb4ae049c135f85efce604ed3

9 years agoRearrange code so that tests pass whether SQLITE_DEBUG is defined or not. fts5-data-version
dan [Mon, 21 Mar 2016 15:18:13 +0000 (15:18 +0000)] 
Rearrange code so that tests pass whether SQLITE_DEBUG is defined or not.

FossilOrigin-Name: 89296a46c3b891ee0b637ff6f89d828d6e46e7b5

9 years agoAdd the sqlite3_system_errno() interface.
drh [Mon, 21 Mar 2016 14:46:37 +0000 (14:46 +0000)] 
Add the sqlite3_system_errno() interface.

FossilOrigin-Name: 4bd12b57ea177cfb1f44d54bfa7aedfb8a8c0c64

9 years agoMake sure system errors that occur durign sqlite3_step() are captured for sqlite_system_errno
drh [Mon, 21 Mar 2016 12:28:02 +0000 (12:28 +0000)] 
Make sure system errors that occur durign sqlite3_step() are captured for
use by sqlite3_system_errno().

FossilOrigin-Name: b4a1114f730c62e93623f889bc0e4fd8d0b31efa

9 years agoImproved comments. No logical changes to code.
drh [Mon, 21 Mar 2016 11:57:13 +0000 (11:57 +0000)] 
Improved comments.  No logical changes to code.

FossilOrigin-Name: a6b6c6c466f3feb257b4fc08ef6b9a27a68ca073

9 years agoDo a better job of capturing all system errno values regardless of when
drh [Mon, 21 Mar 2016 11:38:01 +0000 (11:38 +0000)] 
Do a better job of capturing all system errno values regardless of when
they occur.

FossilOrigin-Name: 7d49998d571d841a6d1b55f5f9889e613daaab2a

9 years agoMerge updates from trunk.
drh [Mon, 21 Mar 2016 10:49:49 +0000 (10:49 +0000)] 
Merge updates from trunk.

FossilOrigin-Name: 86ab8643969bd2e51a257d80da9316c668437f7b

9 years agoChange the way fts5 internally allocates segment ids in order to eliminated non-deter...
dan [Mon, 21 Mar 2016 09:56:19 +0000 (09:56 +0000)] 
Change the way fts5 internally allocates segment ids in order to eliminated non-determinism from the module.

FossilOrigin-Name: d6e2637df16764aa9723a30ea2eb8a631d28cb2b

9 years agoChange the Vdbe.aMem array so that it is zero-based instead of one-based.
drh [Mon, 21 Mar 2016 00:38:59 +0000 (00:38 +0000)] 
Change the Vdbe.aMem array so that it is zero-based instead of one-based.

FossilOrigin-Name: c39081e878faccc8552141afa5732a2bf2f77570

9 years agoRemove an unreachable branch. Improvements to comments. zero-base-aMem
drh [Mon, 21 Mar 2016 00:30:40 +0000 (00:30 +0000)] 
Remove an unreachable branch.  Improvements to comments.

FossilOrigin-Name: c5677ecd5cd2637d92a831ec6bd5b002f8d75626

9 years agoChange the Vdbe.aMem array so that it is zero-based instead of one-based.
drh [Sat, 19 Mar 2016 23:32:58 +0000 (23:32 +0000)] 
Change the Vdbe.aMem array so that it is zero-based instead of one-based.

FossilOrigin-Name: e07b0c47eb5a39623f5fe0e66b939bba0906691c

9 years agoFix exclusive.test so that it works with -DSQLITE_TEMP_STORE=3.
dan [Sat, 19 Mar 2016 18:11:59 +0000 (18:11 +0000)] 
Fix exclusive.test so that it works with -DSQLITE_TEMP_STORE=3.

FossilOrigin-Name: d7852c639683a1d305a1e731df3cccafa64b594b

9 years agoUpdates to the Lemon documentation.
drh [Sat, 19 Mar 2016 18:00:44 +0000 (18:00 +0000)] 
Updates to the Lemon documentation.

FossilOrigin-Name: f095341471aa822e6d556cb65512ec081c3918da

9 years agoAdd the sqlite3rbu_bp_progress() API to the RBU extension. Used to obtain the percent...
dan [Sat, 19 Mar 2016 17:48:12 +0000 (17:48 +0000)] 
Add the sqlite3rbu_bp_progress() API to the RBU extension. Used to obtain the percentage progress of an RBU update.

FossilOrigin-Name: 209e31c729b9c8a09a80e43e3e4a2f3cd9384b3a

9 years agoFix a problem detecting invalid values in the rbu_control column of an rbu database... rbu-percent-progress
dan [Sat, 19 Mar 2016 17:09:30 +0000 (17:09 +0000)] 
Fix a problem detecting invalid values in the rbu_control column of an rbu database table.

FossilOrigin-Name: a1132dd9027d1c6dd845be307eeb38e535393f2c

9 years agoUpdate the sqldiff tool so that it generates an rbu_count table.
dan [Sat, 19 Mar 2016 16:21:26 +0000 (16:21 +0000)] 
Update the sqldiff tool so that it generates an rbu_count table.

FossilOrigin-Name: 1f7afb6e9be9f549a91bf2ab492df15698df89fd

9 years agoMerge latest trunk changes, including fixes to test script rbudiff.test, into this...
dan [Sat, 19 Mar 2016 15:34:42 +0000 (15:34 +0000)] 
Merge latest trunk changes, including fixes to test script rbudiff.test, into this branch.

FossilOrigin-Name: 734fc68fb12f06e97026d4637138b82b37809f5b

9 years agoFix another problem in test script rbudiff.test.
dan [Sat, 19 Mar 2016 15:13:59 +0000 (15:13 +0000)] 
Fix another problem in test script rbudiff.test.

FossilOrigin-Name: 41c29c123ff347db720ed1a541c0b2ffc04670aa

9 years agoFix test scripts sqldiff.test and rbudiff.test so that they work with the --testdir...
dan [Sat, 19 Mar 2016 14:53:36 +0000 (14:53 +0000)] 
Fix test scripts sqldiff.test and rbudiff.test so that they work with the --testdir option.

FossilOrigin-Name: 1ffe3cde03f924bb8405a8729c8e1bc01f5b6d3b

9 years agoAdd test file fts5multiclient.test.
dan [Sat, 19 Mar 2016 14:47:28 +0000 (14:47 +0000)] 
Add test file fts5multiclient.test.

FossilOrigin-Name: 7832466f9177cca59455ba272802145297fcd53d

9 years agoFix a register allocation bug in the VDBE code generator for
drh [Sat, 19 Mar 2016 00:35:02 +0000 (00:35 +0000)] 
Fix a register allocation bug in the VDBE code generator for
PRAGMA integrity_check;

FossilOrigin-Name: 88439a866b3b16ad7c308ebe59198662a05e7eeb