]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
10 years agoBackport the 'stdcall' related enhancements from trunk. stdcall-3.8.8
mistachkin [Wed, 25 Mar 2015 00:09:44 +0000 (00:09 +0000)] 
Backport the 'stdcall' related enhancements from trunk.

FossilOrigin-Name: cbb93d1aa1f992f17f76fd71fe9a99e03082f103

10 years agoVersion 3.8.8.3 branch-3.8.8 version-3.8.8.3
drh [Wed, 25 Feb 2015 13:29:11 +0000 (13:29 +0000)] 
Version 3.8.8.3

FossilOrigin-Name: 9d6c1880fb75660bbabd693175579529785f8a6b

10 years agoAdd support for linenoise to shell.c.
dan [Wed, 25 Feb 2015 12:52:33 +0000 (12:52 +0000)] 
Add support for linenoise to shell.c.

FossilOrigin-Name: ec27ab0eb3a1ee08a73dda23d2a0f9fb70962745

10 years agoMake sure partial indexes are not qualified incorrectly by a constraint that
drh [Tue, 24 Feb 2015 20:12:57 +0000 (20:12 +0000)] 
Make sure partial indexes are not qualified incorrectly by a constraint that
is inside the ON clause of a LEFT JOIN.  Fix for ticket [2326c258d02ead33].
Cherry-pick from [491cfe9b3f87f].

FossilOrigin-Name: 9d94ac6a8b7a2721c15745184b3bb09b15a82503

10 years agoIncrease the version number to 3.8.8.3
drh [Tue, 24 Feb 2015 16:22:01 +0000 (16:22 +0000)] 
Increase the version number to 3.8.8.3

FossilOrigin-Name: a92afe7d8cc7d0e84d843c8ea7ef714994c3585c

10 years agoImprove the performance of fts3/4 queries that use the OR operator and at least one...
dan [Thu, 12 Feb 2015 17:15:17 +0000 (17:15 +0000)] 
Improve the performance of fts3/4 queries that use the OR operator and at least one auxiliary fts function. Cherrypick of [245e8730451f].

FossilOrigin-Name: b20824628f92dfa97533e9f751264b77129cc468

10 years agoVersion 3.8.8.2 version-3.8.8.2
drh [Fri, 30 Jan 2015 14:30:45 +0000 (14:30 +0000)] 
Version 3.8.8.2

FossilOrigin-Name: 7757fc721220e136620a89c9d28247f28bbbc098

10 years agoBump the version number to 3.8.8.2
drh [Thu, 29 Jan 2015 20:01:14 +0000 (20:01 +0000)] 
Bump the version number to 3.8.8.2

FossilOrigin-Name: 65bfbbb416c048521ca749ebfb1c5f3eea0585ce

10 years agoEnsure that "PRAGMA wal_checkpoint = TRUNCATE|FULL|RESTART" block on other connection...
drh [Thu, 29 Jan 2015 19:59:05 +0000 (19:59 +0000)] 
Ensure that "PRAGMA wal_checkpoint = TRUNCATE|FULL|RESTART" block on other connections and truncate the wal file as required even if the entire wal file has already been checkpointed.  Cherry-pick from trunk.

FossilOrigin-Name: 18610617aff622d5212b5fb589b46542a205417a

10 years agoVersion 3.8.8.1 version-3.8.8.1
drh [Tue, 20 Jan 2015 16:51:25 +0000 (16:51 +0000)] 
Version 3.8.8.1

FossilOrigin-Name: f73337e3e289915a76ca96e7a05a1a8d4e890d55

10 years agoChange the version number to 3.8.8.1
drh [Tue, 20 Jan 2015 02:51:33 +0000 (02:51 +0000)] 
Change the version number to 3.8.8.1

FossilOrigin-Name: c75555a354e3fd0195d9595ccf98ef7a93b4359f

10 years agoFix another instance of an incorrect value for KeyInfo.nXField on a
drh [Tue, 20 Jan 2015 02:50:34 +0000 (02:50 +0000)] 
Fix another instance of an incorrect value for KeyInfo.nXField on a
sorting index.

FossilOrigin-Name: dc711db44ec424a7850231a39088229c23238f1b

10 years agoEnsure that the KeyInfo.nXField value for ephemeral tables used to implement
drh [Mon, 19 Jan 2015 21:38:53 +0000 (21:38 +0000)] 
Ensure that the KeyInfo.nXField value for ephemeral tables used to implement
ORDER BY or GROUP BY clauses is set correctly, so that the
sqlite3VdbeFindCompare() routine can choose the correct comparison function.
Add assert() statements to the high-speed comparison functions to detect
cases where they are inappropriately chosen.
Fix for ticket [f97c4637102a3ae72b7911].

FossilOrigin-Name: 59e592f67fb88e2630c04655058fc63439af0913

10 years agoVersion 3.8.8 version-3.8.8
drh [Fri, 16 Jan 2015 12:08:06 +0000 (12:08 +0000)] 
Version 3.8.8

FossilOrigin-Name: 7d68a42face3ab14ed88407d4331872f5b243fdf

10 years agoFix the spelling of "malloc_usable_size" in configure and configure.ac.
drh [Thu, 15 Jan 2015 17:38:35 +0000 (17:38 +0000)] 
Fix the spelling of "malloc_usable_size" in configure and configure.ac.

FossilOrigin-Name: 8f45217cbafef2297cdcec3fd69f4371dfb83922

10 years agoMakefile enhancements: (1) Rename autoconf/tea/configure.in to
drh [Thu, 15 Jan 2015 15:47:06 +0000 (15:47 +0000)] 
Makefile enhancements:  (1) Rename autoconf/tea/configure.in to
autoconf/tea/configure.ac so that it works with the latest versions of
autoconf.  (2) Add the "amalgamation-tarball" targets to Makefile.in and
main.mk (renamed from "dist" in the latter case).  (3) Update the
README.first file in autoconf/  (4) The TOP macro
in Makefile.in is now an absolute rather than a relative path.

FossilOrigin-Name: 3bafeec934e56f633d0de6890e84fca990e54435

10 years agoSimplify some code in rtree, to avoid confusing the optimizer in GCC on
drh [Tue, 13 Jan 2015 21:26:17 +0000 (21:26 +0000)] 
Simplify some code in rtree, to avoid confusing the optimizer in GCC on
some macs:
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00).
Prior to these changes, compiling with -O3 would cause incorrect code to
be generated.  The change to the nodeGetCell() routine is key.  The other
changes are merely cosmetic details discovered while bug hunting.

FossilOrigin-Name: 882181ff9dd75f32db266db6e476671021fc567b

10 years agoFix the e_walauto.test test module so that it works on both little-endian and
drh [Tue, 13 Jan 2015 01:12:43 +0000 (01:12 +0000)] 
Fix the e_walauto.test test module so that it works on both little-endian and
big-ending machines.

FossilOrigin-Name: 5682db7b871689b9ee764afe070736f378e8ae1b

10 years agoFix harmless compiler warnings when using -W4 with MSVC.
mistachkin [Mon, 12 Jan 2015 21:43:00 +0000 (21:43 +0000)] 
Fix harmless compiler warnings when using -W4 with MSVC.

FossilOrigin-Name: e693e11d1b9265974c32bddba873ea30a4d0b708

10 years agoFix harmless compiler warning in an assert() statement. msvcW4
mistachkin [Mon, 12 Jan 2015 20:25:33 +0000 (20:25 +0000)] 
Fix harmless compiler warning in an assert() statement.

FossilOrigin-Name: bdbeed01ddc60a4ab322621fc118cc4767660fd3

10 years agoAdd two more classes of harmless MSVC compiler warnings.
mistachkin [Mon, 12 Jan 2015 20:20:26 +0000 (20:20 +0000)] 
Add two more classes of harmless MSVC compiler warnings.

FossilOrigin-Name: de30d5b053b8e004418c81945d626cfad315d6ba

10 years agoSilence some harmless uninitialized local variable warnings.
mistachkin [Mon, 12 Jan 2015 19:59:12 +0000 (19:59 +0000)] 
Silence some harmless uninitialized local variable warnings.

FossilOrigin-Name: 44375a34e59d1b0f0d765a99dcc7e6f30a4be7f7

10 years agoHarmless compiler warning fixes for 'testfixture' and the miscellaneous extensions...
mistachkin [Mon, 12 Jan 2015 19:49:46 +0000 (19:49 +0000)] 
Harmless compiler warning fixes for 'testfixture' and the miscellaneous extensions when built with the MSVC makefile.

FossilOrigin-Name: 923fd66031ed1876bc63c3a038f0b8e33678184e

10 years agoMerge updates from trunk.
mistachkin [Mon, 12 Jan 2015 18:52:57 +0000 (18:52 +0000)] 
Merge updates from trunk.

FossilOrigin-Name: ca5f2c545216c82486e66d26f55b49cbf351ffdc

10 years agoGet things compiling cleanly with MSVC and W4.
mistachkin [Mon, 12 Jan 2015 18:52:41 +0000 (18:52 +0000)] 
Get things compiling cleanly with MSVC and W4.

FossilOrigin-Name: c8725fa5fa361959b0f0a3fb36f204905d6f0ae9

10 years agoFix some harmless compiler warnings.
mistachkin [Mon, 12 Jan 2015 18:38:02 +0000 (18:38 +0000)] 
Fix some harmless compiler warnings.

FossilOrigin-Name: 2b8eecbfe7935d3d9826fbcd473dd3a49138ad11

10 years agoFix comments and add another disabled warning for MSVC.
mistachkin [Mon, 12 Jan 2015 18:27:31 +0000 (18:27 +0000)] 
Fix comments and add another disabled warning for MSVC.

FossilOrigin-Name: 43b6b4cc051e5a801a992c56d2c82abcdcf45cec

10 years agoWork in progress on fixing harmless compiler warnings when using -W4 and MSVC.
mistachkin [Mon, 12 Jan 2015 18:02:52 +0000 (18:02 +0000)] 
Work in progress on fixing harmless compiler warnings when using -W4 and MSVC.

FossilOrigin-Name: 856dd245ce037f93d5ae2ddeb4fdf949c1e5c8e9

10 years agoAdd an assert() in order to calm a scan-build warning.
drh [Mon, 12 Jan 2015 17:56:06 +0000 (17:56 +0000)] 
Add an assert() in order to calm a scan-build warning.

FossilOrigin-Name: 11e81ac2a7c917f7c9afc218d104d9870daf9668

10 years agoAdd detection of the isnan() library function to the configure script. Make
drh [Sat, 10 Jan 2015 18:22:06 +0000 (18:22 +0000)] 
Add detection of the isnan() library function to the configure script.  Make
the code responsive to the HAVE_ISNAN configuration option.

FossilOrigin-Name: 46f3aba2692d74c29ab5c1f24a6daac600fd6af8

10 years agoMake use of the fdatasync() interface if the HAVE_FDATASYNC macro is true.
drh [Sat, 10 Jan 2015 18:02:45 +0000 (18:02 +0000)] 
Make use of the fdatasync() interface if the HAVE_FDATASYNC macro is true.

FossilOrigin-Name: 694228e4632c2999efa47ecb49f679c177db02e5

10 years agoImprovements to compile-time-option hygiene. Use "#if OPTION" instead of
drh [Sat, 10 Jan 2015 16:49:23 +0000 (16:49 +0000)] 
Improvements to compile-time-option hygiene.  Use "#if OPTION" instead of
"#ifdef OPTION" in cases where that makes sense, so that -DOPTION=0 will work.
Add the "Have-Not" configuration in releasetest.tcl which disables all of
the "HAVE_component" compile-time options.

FossilOrigin-Name: 9e92a5ed5aaba20461ed4ce8359d6e34e7773d68

10 years agoAdd the ability to put comments in the Config and Platform setup sections of
drh [Sat, 10 Jan 2015 15:21:26 +0000 (15:21 +0000)] 
Add the ability to put comments in the Config and Platform setup sections of
the releasetest.tcl script.

FossilOrigin-Name: d6f8c899d8f1bf66a2234e0eb91b259dd64eed31

10 years agoAutoconf configure script updates: (1) remove the long-obsolete
drh [Sat, 10 Jan 2015 14:27:17 +0000 (14:27 +0000)] 
Autoconf configure script updates:  (1) remove the long-obsolete
--enable-cross-thread-connections option.  (2) remove the --with-hints= options.
(3) Extension loading is enabled by default.  (4) Check for strchrnull()
(5) Update the --help text.

FossilOrigin-Name: 5004063ce4c8816125372ecc5fd52140489306dd

10 years agoChange the testfixture binary so that it explicitly enabled core files
drh [Fri, 9 Jan 2015 21:54:58 +0000 (21:54 +0000)] 
Change the testfixture binary so that it explicitly enabled core files
on a crash (on unix).  Add a test case to verify that this works.

FossilOrigin-Name: 90f422ed81311d7ab2a90a381d36cba9c20227fc

10 years agoAdd SQLITE_ENABLE_STMT_SCANSTATUS to the Update-Delete-Limit configuration
drh [Fri, 9 Jan 2015 20:00:21 +0000 (20:00 +0000)] 
Add SQLITE_ENABLE_STMT_SCANSTATUS to the Update-Delete-Limit configuration
in the releasetest.tcl script.

FossilOrigin-Name: c70d5edaf6327cb18df5285c3fc21b610f3d3294

10 years agoRemove an unused preprocessor macro from pcache.c.
drh [Fri, 9 Jan 2015 19:45:28 +0000 (19:45 +0000)] 
Remove an unused preprocessor macro from pcache.c.

FossilOrigin-Name: 88a7a967116a48aeb5fa7014613c0134b1b47bb3

10 years agoImprovements to the sqlite3_stmt_scanstatus() documentation. No changes
drh [Fri, 9 Jan 2015 19:36:36 +0000 (19:36 +0000)] 
Improvements to the sqlite3_stmt_scanstatus() documentation.  No changes
to code.

FossilOrigin-Name: 9309c9bc08c3cd5a96ada76544b11cae8e480c7a

10 years agoFix three crash problems discovered by afl-fuzz.
drh [Fri, 9 Jan 2015 01:27:29 +0000 (01:27 +0000)] 
Fix three crash problems discovered by afl-fuzz.
Ticket [a59ae93ee990a55].

FossilOrigin-Name: fe5788633131281a0f27c5b75993ce2ff958bfeb

10 years agoAdd the "ascii" mode to the command-line shell.
drh [Fri, 9 Jan 2015 00:38:06 +0000 (00:38 +0000)] 
Add the "ascii" mode to the command-line shell.

FossilOrigin-Name: e1518a9478e1ce1ebd98894335e64c953064367f

10 years agoOmit modules from the "valgrind" permutation that fork off separate processes.
drh [Thu, 8 Jan 2015 22:08:57 +0000 (22:08 +0000)] 
Omit modules from the "valgrind" permutation that fork off separate processes.
Also omit selectG.test because it is timing sensitive and valgrind is too slow
to get the right answer.

FossilOrigin-Name: 662932a69a0f69b7227cc05b75a9f1637a3862f4

10 years agoTry to fix up the "valgrindtest" target in Makefile.in so that it avoids
drh [Thu, 8 Jan 2015 16:47:51 +0000 (16:47 +0000)] 
Try to fix up the "valgrindtest" target in Makefile.in so that it avoids
misuse testing that can trigger false errors.

FossilOrigin-Name: 50b5a8af843fff93452cd1c8f82152124a1d864a

10 years agoFix the extension tags on the "smoketest" makefile target for Windows.
drh [Thu, 8 Jan 2015 02:28:02 +0000 (02:28 +0000)] 
Fix the extension tags on the "smoketest" makefile target for Windows.

FossilOrigin-Name: 826fd311e7e2849aefbd81724dcb4a5644cfa126

10 years agoIn releasetest.tcl:
drh [Thu, 8 Jan 2015 02:15:11 +0000 (02:15 +0000)] 
In releasetest.tcl:
(1) Add the Failure-Detection platform.
(2) Re-add the --disable-shared argument on Default that was mistakenly
    removed by the previous commit.
(3) Remove the -ftrapv tests, as we read that -ftrapv does not work in GCC.

FossilOrigin-Name: 1f2fb77781a93427a2348f821b66dba7310c49b8

10 years agoIn releasetest.tcl: add options --veryquick and pass-through compiler
drh [Thu, 8 Jan 2015 01:05:42 +0000 (01:05 +0000)] 
In releasetest.tcl: add options --veryquick and pass-through compiler
optimization settings (ex: -O0).  Collect the SQLite version number from
the main.test output and show it during the summary report at the end.

FossilOrigin-Name: e7e7bc1d9a5c19571e7d87ad345b98c27a826fbd

10 years agoIn releasetest.tcl, always use --disable-shared together with
drh [Wed, 7 Jan 2015 19:38:49 +0000 (19:38 +0000)] 
In releasetest.tcl, always use --disable-shared together with
--disable-amalgamation because mingw generates a binary that crashes and
cannot be debugged using gdb if you don't.

FossilOrigin-Name: 19982439418fbd36c91853cf9e09a66606f293fc

10 years agoIn releasetest.tcl, copy certain command-line arguments (-g, -D..., etc)
drh [Wed, 7 Jan 2015 18:44:59 +0000 (18:44 +0000)] 
In releasetest.tcl, copy certain command-line arguments (-g, -D..., etc)
down into each test run.

FossilOrigin-Name: 889864b58af1e51fb148af2d6a5cef4950f373f4

10 years agoModify the valgrind target to be consistent with regard to target suffixes.
mistachkin [Wed, 7 Jan 2015 18:19:09 +0000 (18:19 +0000)] 
Modify the valgrind target to be consistent with regard to target suffixes.

FossilOrigin-Name: dc4aa7321262ace43d985a227ad052dfca7db6c7

10 years agoFix threads-enabled builds on Windows when the amalgamation is not in use.
mistachkin [Wed, 7 Jan 2015 18:11:29 +0000 (18:11 +0000)] 
Fix threads-enabled builds on Windows when the amalgamation is not in use.

FossilOrigin-Name: 9b92a4d2b6585d5fdf20330e4138081df58960e9

10 years agoIn releasetest.tcl, change the --dryrun option to work as it does in
drh [Wed, 7 Jan 2015 14:41:18 +0000 (14:41 +0000)] 
In releasetest.tcl, change the --dryrun option to work as it does in
multitest.tcl of TH3.  Add the new --trace option that work like the --dryrun
option used to work.  Add the ability to specify additional configure-script
options in the Config array, and create configurations that use
--disable-shared and --disable-amalgamation for testing.

FossilOrigin-Name: be17ef03f1d74187f7d3b5d72a12fc00db513c8e

10 years agoAdd a valgrind test to the Linux-x86_64 platform in releasetest.tcl.
drh [Wed, 7 Jan 2015 14:09:41 +0000 (14:09 +0000)] 
Add a valgrind test to the Linux-x86_64 platform in releasetest.tcl.

FossilOrigin-Name: 4b6df035561add4e304fb56dd70ae4d413d6bd5d

10 years agoFix a problem in the unix implementation of FCNTL_SIZE_HINT on systems that do not...
dan [Tue, 6 Jan 2015 21:31:47 +0000 (21:31 +0000)] 
Fix a problem in the unix implementation of FCNTL_SIZE_HINT on systems that do not support posix_fallocate().

FossilOrigin-Name: af20eae1e6f608e4e61a07c3d14cf88c12751353

10 years agoImproved and more rigorous test of large VALUES clauses.
drh [Tue, 6 Jan 2015 16:53:49 +0000 (16:53 +0000)] 
Improved and more rigorous test of large VALUES clauses.

FossilOrigin-Name: 6917d9f437224229fa103c847c2df87ade64e1e9

10 years agoEnhance "INSERT INTO ... VALUES" so that the number of rows in the VALUES clause
drh [Mon, 5 Jan 2015 20:13:49 +0000 (20:13 +0000)] 
Enhance "INSERT INTO ... VALUES" so that the number of rows in the VALUES clause
is not limited by SQLITE_LIMIT_COMPOUND_SELECT, and so that the stack depth
is constant regardless of the number of rows in VALUES.

FossilOrigin-Name: e1c4a359aacfce97eb1652624789e71981e0d263

10 years agoAvoid O(N*N) behavior with very long lists of VALUES. many-VALUEs
drh [Mon, 5 Jan 2015 20:04:51 +0000 (20:04 +0000)] 
Avoid O(N*N) behavior with very long lists of VALUES.

FossilOrigin-Name: ee30fb35217f3429ee89aaad7c19f29710420e4c

10 years agoHandle compound-select statements originating from VALUES clauses as a
drh [Mon, 5 Jan 2015 19:16:42 +0000 (19:16 +0000)] 
Handle compound-select statements originating from VALUES clauses as a
special case that does not use recursion.

FossilOrigin-Name: 9ce9e43af38e6bc362734463d4bfc40ff0c98f8f

10 years agoTowards getting INSERT statements to except many VALUE terms (more than
drh [Mon, 5 Jan 2015 16:27:43 +0000 (16:27 +0000)] 
Towards getting INSERT statements to except many VALUE terms (more than
the limit imposed by SQLITE_LIMIT_COMPOUND_SELECT).  This check-in segfaults
on a stack overflow.  And it is slow.

FossilOrigin-Name: c9d65f739ad56f016c676e79aa39080be3fe868a

10 years agoRemove some needless recursion from compound SELECT processing.
drh [Mon, 5 Jan 2015 15:48:45 +0000 (15:48 +0000)] 
Remove some needless recursion from compound SELECT processing.

FossilOrigin-Name: fe677d13f03e24fa667efc0c2e7f5bbb99521791

10 years agoIn releasetest.tcl, omit the CC=clang text from the label on Sanitize tests,
drh [Sat, 3 Jan 2015 18:59:17 +0000 (18:59 +0000)] 
In releasetest.tcl, omit the CC=clang text from the label on Sanitize tests,
so that the label fits on an 80-character line.

FossilOrigin-Name: 23d4c07eb81db5a5c6beb56b5820f0b6501f1fb6

10 years agoFix a harmless compiler warning.
drh [Fri, 2 Jan 2015 21:54:32 +0000 (21:54 +0000)] 
Fix a harmless compiler warning.

FossilOrigin-Name: e0de580726a0ed35565783ed14440ef9bcdc3a3d

10 years agoMerge updates from trunk. asciiMode
mistachkin [Fri, 2 Jan 2015 20:06:27 +0000 (20:06 +0000)] 
Merge updates from trunk.

FossilOrigin-Name: ea99f4b29afb98dd474d96889c934763f5636891

10 years agoAdd the SQLITE_CONFIG_PMASZ start-time option.
drh [Fri, 2 Jan 2015 15:55:29 +0000 (15:55 +0000)] 
Add the SQLITE_CONFIG_PMASZ start-time option.

FossilOrigin-Name: acb0d1e8324f19da3d4d577d58748848de1bcef7

10 years agoAdd logic to releasetest.tcl that detects -fsanitize=undefined errors.
drh [Thu, 1 Jan 2015 23:02:01 +0000 (23:02 +0000)] 
Add logic to releasetest.tcl that detects -fsanitize=undefined errors.
Fix a few false-positivies that come up when running the sanitize=undefined
test.

FossilOrigin-Name: 2835e79a0afec6e4d449ac9340afec068c2d4c11

10 years agoAdd the ability to specify an alternative compiler (clang instead of gcc)
drh [Thu, 1 Jan 2015 19:53:10 +0000 (19:53 +0000)] 
Add the ability to specify an alternative compiler (clang instead of gcc)
on the default Makefile.  Use this in releasetest.tcl to implement an
-fsanitize=undefined test.

FossilOrigin-Name: c55c05fe22b9ddb61de55d473a411a11090d3d68

10 years agoEnhance the "lemon" executable so that it ignores -f, -W, -O, and -I
drh [Thu, 1 Jan 2015 19:11:22 +0000 (19:11 +0000)] 
Enhance the "lemon" executable so that it ignores -f, -W, -O, and -I
command-line options.  This permits most of the same options that are passed
to the compiler to also be harmlessly passed to lemon, and thus
simplifies makefiles.

FossilOrigin-Name: da408d128b4301d9fc7a3a00f219dce7ed48bc60

10 years agoFix an error in the computation of the number of hours of runtime for
drh [Thu, 1 Jan 2015 18:54:23 +0000 (18:54 +0000)] 
Fix an error in the computation of the number of hours of runtime for
individual test runs in the releasetest.tcl script.

FossilOrigin-Name: e2b0ebe21cd8a63927decb645efd2db80bf88379

10 years agoFix a harmless compiler warning in rtree.
drh [Thu, 1 Jan 2015 16:47:43 +0000 (16:47 +0000)] 
Fix a harmless compiler warning in rtree.

FossilOrigin-Name: 30891c6b8ebe9dfc939f9695bb45a159fbaaf262

10 years agoFix two test cases in memsubsys1 so that they work with the mmap permutation.
drh [Thu, 1 Jan 2015 14:13:45 +0000 (14:13 +0000)] 
Fix two test cases in memsubsys1 so that they work with the mmap permutation.

FossilOrigin-Name: 66269d0d8e49eb3dc7f508714753584f648bb022

10 years agoFix the fkey-7.1 test so that it sorts its answer and hence always gives the
drh [Thu, 1 Jan 2015 14:06:24 +0000 (14:06 +0000)] 
Fix the fkey-7.1 test so that it sorts its answer and hence always gives the
same answer.

FossilOrigin-Name: 5830c557f7ed048056e2faeb82a8705ee7ecfdd7

10 years agoFix to releasetest.tcl: When doing the secondary _debug runs, convert
drh [Wed, 31 Dec 2014 20:35:11 +0000 (20:35 +0000)] 
Fix to releasetest.tcl:  When doing the secondary _debug runs, convert
"fulltest" to just "test".

FossilOrigin-Name: ec264bdee5ab8047fda9a36af27c8a2c8d964112

10 years agoAdjust the memsubsys1-5.5 test case to avoid occasional false positives.
drh [Wed, 31 Dec 2014 20:25:33 +0000 (20:25 +0000)] 
Adjust the memsubsys1-5.5 test case to avoid occasional false positives.

FossilOrigin-Name: 432413187f41061a08ecff2697ce85c935fa6fa8

10 years agoFix a floating-point round-off error problem in the percentile.test module.
drh [Wed, 31 Dec 2014 20:19:20 +0000 (20:19 +0000)] 
Fix a floating-point round-off error problem in the percentile.test module.

FossilOrigin-Name: 456948ea64c6980dab79dac30a538b5a6ab8773d

10 years agoDisable the bigsort.test module on machine with less than 8GB of available
drh [Wed, 31 Dec 2014 19:58:32 +0000 (19:58 +0000)] 
Disable the bigsort.test module on machine with less than 8GB of available
RAM or machine, to avoid thrashing.

FossilOrigin-Name: 9d4fe11641043af4e663085e979f637676599da0

10 years agoChange threadtest3.c so that SQLITE_SCHEMA returns result in warnings
drh [Wed, 31 Dec 2014 18:55:09 +0000 (18:55 +0000)] 
Change threadtest3.c so that SQLITE_SCHEMA returns result in warnings
not hard errors.  Add the Darwin-x86_64 platform to releasetest.tcl.

FossilOrigin-Name: b09a139c9e2e1a45a3d53395ac1376e952d459e5

10 years agoUpdate the command-line parsing for threadtest3 so that tests are run in the
drh [Wed, 31 Dec 2014 18:28:59 +0000 (18:28 +0000)] 
Update the command-line parsing for threadtest3 so that tests are run in the
order they are specified on the command-line.

FossilOrigin-Name: f489bc31165f043dc10570e6c1250a292673660e

10 years agoAdd a missing sqlite3_close() call to threadtest3.c.
dan [Wed, 31 Dec 2014 18:25:21 +0000 (18:25 +0000)] 
Add a missing sqlite3_close() call to threadtest3.c.

FossilOrigin-Name: a65a44f3ff851b71c9a79e96b9575c6a7006d2dd

10 years agoOnly run walthread5 once when running all tests in threadtest3.
drh [Wed, 31 Dec 2014 18:10:07 +0000 (18:10 +0000)] 
Only run walthread5 once when running all tests in threadtest3.

FossilOrigin-Name: ca2e4a5b22e1dc9ea79f77853e328d401138f747

10 years agoDo run pragma3.test as part of the mmap permutation. As it works as of [cf48eb608a].
dan [Wed, 31 Dec 2014 18:08:46 +0000 (18:08 +0000)] 
Do run pragma3.test as part of the mmap permutation. As it works as of [cf48eb608a].

FossilOrigin-Name: 11057e2645d92876fd0fb6d702757408077b7354

10 years agoChange the width of output lines in releasetest.tcl from 70 to 79 characters.
drh [Wed, 31 Dec 2014 15:14:29 +0000 (15:14 +0000)] 
Change the width of output lines in releasetest.tcl from 70 to 79 characters.

FossilOrigin-Name: a468d96700c05d1a01a745930d13ce89c09ce4fa

10 years agoMake sure PRAGMA data_version is updated even if the cache is empty when
drh [Wed, 31 Dec 2014 14:18:48 +0000 (14:18 +0000)] 
Make sure PRAGMA data_version is updated even if the cache is empty when
another connection changes the database.

FossilOrigin-Name: cf48eb608af9102a8def2a5b7f5f7b348548116f

10 years agoDo not run pragma3.test as part of the mmap permutation.
dan [Wed, 31 Dec 2014 09:52:15 +0000 (09:52 +0000)] 
Do not run pragma3.test as part of the mmap permutation.

FossilOrigin-Name: 94101011966243d599519a69c99c202ea31b928d

10 years agoAdd the "mptester" tests to releasetest.tcl.
drh [Tue, 30 Dec 2014 20:40:32 +0000 (20:40 +0000)] 
Add the "mptester" tests to releasetest.tcl.

FossilOrigin-Name: 93094a68d3a6178779878cbbe0e5e09ef31a323f

10 years agoEnsure that when a file is extended using FCNTL_SIZE_HINT the last page is allocated...
dan [Tue, 30 Dec 2014 19:58:31 +0000 (19:58 +0000)] 
Ensure that when a file is extended using FCNTL_SIZE_HINT the last page is allocated on disk, even if the file will only use part of it.

FossilOrigin-Name: c7f84717d61197afa9e0ac607c4b349361e6e2b7

10 years agoUpdate the threadtest3 test program so that its output summary is
drh [Tue, 30 Dec 2014 19:26:07 +0000 (19:26 +0000)] 
Update the threadtest3 test program so that its output summary is
compatible with releasetest.tcl.  In threadtest3, do not record errors
that contain the string "no such table" as being fatal errors, since they
happen sometimes in a race condition in stress1.

FossilOrigin-Name: 98cb56e2401ae7e113b071df8997ba62265821d3

10 years agoFix problems with the "inmemory_journal" permutation.
dan [Tue, 30 Dec 2014 18:07:34 +0000 (18:07 +0000)] 
Fix problems with the "inmemory_journal" permutation.

FossilOrigin-Name: 79693f0412ffb0486b974ee6c63b4231cfff5a77

10 years agoIf the sorter uses mmap'd temp files, ensure all pages of the temp file have been...
dan [Tue, 30 Dec 2014 14:40:53 +0000 (14:40 +0000)] 
If the sorter uses mmap'd temp files, ensure all pages of the temp file have been allocated before it is accessed. Otherwise, a disk-full condition might result in a SIGBUS exception.

FossilOrigin-Name: 776648412c30dce206f1024ff849c2cb025bb006

10 years agoMake SQLITE_CONFIG_PCACHE_HDRSZ accurate (not an over-estimate) on 32-bit
drh [Tue, 30 Dec 2014 13:04:25 +0000 (13:04 +0000)] 
Make SQLITE_CONFIG_PCACHE_HDRSZ accurate (not an over-estimate) on 32-bit
systems.

FossilOrigin-Name: 340b347758e570db3e739b56af0dcf3fc34525be

10 years agoChange notify2.test to check that sqlite3_blocking_step() uses CPU more efficiently...
dan [Tue, 30 Dec 2014 12:03:35 +0000 (12:03 +0000)] 
Change notify2.test to check that sqlite3_blocking_step() uses CPU more efficiently than sqlite3_step(), not that it results in greater overall throughput for any specific number of threads.

FossilOrigin-Name: d904d29354a5ed85d33bafe4a7143f3c5ecee790

10 years agoRound all object sizes that go into computing SQLITE_CONFIG_PCACHE_HDRSZ up
drh [Tue, 30 Dec 2014 00:57:29 +0000 (00:57 +0000)] 
Round all object sizes that go into computing SQLITE_CONFIG_PCACHE_HDRSZ up
to a multiple of 8 bytes.

FossilOrigin-Name: b28ce75f2d3a6343dc20d581dc55afae89ab5efa

10 years agoFix the --dryrun option in releasetest.tcl.
drh [Mon, 29 Dec 2014 19:54:10 +0000 (19:54 +0000)] 
Fix the --dryrun option in releasetest.tcl.

FossilOrigin-Name: 0f9e549643ab94b0465e6891384dd20506708a8f

10 years agoFix some recently added tests so that they work with SQLITE_DEFAULT_AUTOVACUUM=1.
dan [Mon, 29 Dec 2014 12:02:31 +0000 (12:02 +0000)] 
Fix some recently added tests so that they work with SQLITE_DEFAULT_AUTOVACUUM=1.

FossilOrigin-Name: ef0626ab20f753f01090ca8e8a94e8b516eea55e

10 years agoReinstate an assert() by adding an "|| CORRUPT_DB" term.
drh [Mon, 29 Dec 2014 11:50:39 +0000 (11:50 +0000)] 
Reinstate an assert() by adding an "|| CORRUPT_DB" term.

FossilOrigin-Name: 95ce20348d9b868a0407adccdb222a0e4c762945

10 years agoFix the "checksymbols" target in Makefile.in so that it actually works.
drh [Mon, 29 Dec 2014 02:55:58 +0000 (02:55 +0000)] 
Fix the "checksymbols" target in Makefile.in so that it actually works.
Enhance the releasetest.tcl script to count the total number of tests
run over all configurations.

FossilOrigin-Name: 4eda1c746043acbdb7ef3e1f95bf8b01ee976479

10 years agoFix WITHOUT ROWID tables so that they correctly deal with PRIMARY KEYs that
drh [Sun, 28 Dec 2014 22:10:51 +0000 (22:10 +0000)] 
Fix WITHOUT ROWID tables so that they correctly deal with PRIMARY KEYs that
contain redundant columns.

FossilOrigin-Name: 0dfef6757056ef0bdea8f049f7469ccf6960e2cb

10 years agoUpdate the SQLITE_CONFIG_PAGECACHE documentation so that the maximum page
drh [Thu, 25 Dec 2014 12:19:56 +0000 (12:19 +0000)] 
Update the SQLITE_CONFIG_PAGECACHE documentation so that the maximum page
size is correctly stated to be 65536.

FossilOrigin-Name: 3286424b4d30035de69b88ef0b2897365ff848f9

10 years agoFix the error counter in releasetest.tcl. And report the total time in
drh [Wed, 24 Dec 2014 23:35:36 +0000 (23:35 +0000)] 
Fix the error counter in releasetest.tcl.  And report the total time in
HH:MM:SS instead of just seconds.

FossilOrigin-Name: 6396f8046242286298fecd1748a6e8e786e6794e

10 years agoFix a failing assert() in balance_nonroot().
dan [Wed, 24 Dec 2014 18:11:50 +0000 (18:11 +0000)] 
Fix a failing assert() in balance_nonroot().

FossilOrigin-Name: e2e323145f66cca31babe1a979db6ef97038b879

10 years agoWhen building the amalgamation with SQLITE_ENABLE_IOTRACE defined, do not mark symbol...
dan [Wed, 24 Dec 2014 17:17:30 +0000 (17:17 +0000)] 
When building the amalgamation with SQLITE_ENABLE_IOTRACE defined, do not mark symbol sqlite3IoTrace as static.

FossilOrigin-Name: 5b7ca013b7171a6807b15b128e140ce160f526d3

10 years agoMerge the new and improved releasetest.tcl script into trunk. Add a
drh [Tue, 23 Dec 2014 21:17:58 +0000 (21:17 +0000)] 
Merge the new and improved releasetest.tcl script into trunk.  Add a
"make releasetest" target to the autoconf makefile.

FossilOrigin-Name: 1deb00ec758c6d213da71ef64294cc816e204338

10 years agoRemove 'threadtest' as a target on Windows, due to lack of pthreads. Also, change... releasetest-refactor
mistachkin [Tue, 23 Dec 2014 21:10:38 +0000 (21:10 +0000)] 
Remove 'threadtest' as a target on Windows, due to lack of pthreads.  Also, change 'fulltest' to 'fulltestonly'.

FossilOrigin-Name: a010c404b5140104b68087dcbb0698b7a85eef65