mistachkin
189143d355
Fix harmless compiler warning in an assert() statement.
...
FossilOrigin-Name: bdbeed01ddc60a4ab322621fc118cc4767660fd3
2015-01-12 20:25:33 +00:00
mistachkin
32562501a1
Add two more classes of harmless MSVC compiler warnings.
...
FossilOrigin-Name: de30d5b053b8e004418c81945d626cfad315d6ba
2015-01-12 20:20:26 +00:00
mistachkin
7bb22ac7ff
Silence some harmless uninitialized local variable warnings.
...
FossilOrigin-Name: 44375a34e59d1b0f0d765a99dcc7e6f30a4be7f7
2015-01-12 19:59:12 +00:00
mistachkin
27b2f05335
Harmless compiler warning fixes for 'testfixture' and the miscellaneous extensions when built with the MSVC makefile.
...
FossilOrigin-Name: 923fd66031ed1876bc63c3a038f0b8e33678184e
2015-01-12 19:49:46 +00:00
mistachkin
9b97b8fed9
Merge updates from trunk.
...
FossilOrigin-Name: ca5f2c545216c82486e66d26f55b49cbf351ffdc
2015-01-12 18:52:57 +00:00
mistachkin
7bb6e8e169
Get things compiling cleanly with MSVC and W4.
...
FossilOrigin-Name: c8725fa5fa361959b0f0a3fb36f204905d6f0ae9
2015-01-12 18:52:41 +00:00
mistachkin
1a51ce78ba
Fix some harmless compiler warnings.
...
FossilOrigin-Name: 2b8eecbfe7935d3d9826fbcd473dd3a49138ad11
2015-01-12 18:38:02 +00:00
mistachkin
c50428fa06
Fix comments and add another disabled warning for MSVC.
...
FossilOrigin-Name: 43b6b4cc051e5a801a992c56d2c82abcdcf45cec
2015-01-12 18:27:31 +00:00
mistachkin
2318d3387d
Work in progress on fixing harmless compiler warnings when using -W4 and MSVC.
...
FossilOrigin-Name: 856dd245ce037f93d5ae2ddeb4fdf949c1e5c8e9
2015-01-12 18:02:52 +00:00
drh
8d9da63dac
Add an assert() in order to calm a scan-build warning.
...
FossilOrigin-Name: 11e81ac2a7c917f7c9afc218d104d9870daf9668
2015-01-12 17:56:06 +00:00
drh
8567d40609
Add detection of the isnan() library function to the configure script. Make
...
the code responsive to the HAVE_ISNAN configuration option.
FossilOrigin-Name: 46f3aba2692d74c29ab5c1f24a6daac600fd6af8
2015-01-10 18:22:06 +00:00
drh
f7a4a1b8c5
Make use of the fdatasync() interface if the HAVE_FDATASYNC macro is true.
...
FossilOrigin-Name: 694228e4632c2999efa47ecb49f679c177db02e5
2015-01-10 18:02:45 +00:00
drh
0ede9ebec7
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
2015-01-10 16:49:23 +00:00
drh
6aed1c4ff0
Add the ability to put comments in the Config and Platform setup sections of
...
the releasetest.tcl script.
FossilOrigin-Name: d6f8c899d8f1bf66a2234e0eb91b259dd64eed31
2015-01-10 15:21:26 +00:00
drh
05c7e0bdb6
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
2015-01-10 14:27:17 +00:00
drh
db6bafaeb8
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
2015-01-09 21:54:58 +00:00
drh
1a803843ce
Add SQLITE_ENABLE_STMT_SCANSTATUS to the Update-Delete-Limit configuration
...
in the releasetest.tcl script.
FossilOrigin-Name: c70d5edaf6327cb18df5285c3fc21b610f3d3294
2015-01-09 20:00:21 +00:00
drh
ea18142624
Remove an unused preprocessor macro from pcache.c.
...
FossilOrigin-Name: 88a7a967116a48aeb5fa7014613c0134b1b47bb3
2015-01-09 19:45:28 +00:00
drh
179c59792e
Improvements to the sqlite3_stmt_scanstatus() documentation. No changes
...
to code.
FossilOrigin-Name: 9309c9bc08c3cd5a96ada76544b11cae8e480c7a
2015-01-09 19:36:36 +00:00
drh
655814d2bd
Fix three crash problems discovered by afl-fuzz.
...
Ticket [a59ae93ee990a55].
FossilOrigin-Name: fe5788633131281a0f27c5b75993ce2ff958bfeb
2015-01-09 01:27:29 +00:00
drh
fa5ed0283c
Add the "ascii" mode to the command-line shell.
...
FossilOrigin-Name: e1518a9478e1ce1ebd98894335e64c953064367f
2015-01-09 00:38:06 +00:00
drh
64134662c0
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
2015-01-08 22:08:57 +00:00
drh
32e1f27960
Try to fix up the "valgrindtest" target in Makefile.in so that it avoids
...
misuse testing that can trigger false errors.
FossilOrigin-Name: 50b5a8af843fff93452cd1c8f82152124a1d864a
2015-01-08 16:47:51 +00:00
drh
bc8b87a1bb
Fix the extension tags on the "smoketest" makefile target for Windows.
...
FossilOrigin-Name: 826fd311e7e2849aefbd81724dcb4a5644cfa126
2015-01-08 02:28:02 +00:00
drh
edb31cd191
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
2015-01-08 02:15:11 +00:00
drh
5bfff9d2f6
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
2015-01-08 01:05:42 +00:00
drh
46350078eb
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
2015-01-07 19:38:49 +00:00
drh
f167a40284
In releasetest.tcl, copy certain command-line arguments (-g, -D..., etc)
...
down into each test run.
FossilOrigin-Name: 889864b58af1e51fb148af2d6a5cef4950f373f4
2015-01-07 18:44:59 +00:00
mistachkin
d3a720e11e
Modify the valgrind target to be consistent with regard to target suffixes.
...
FossilOrigin-Name: dc4aa7321262ace43d985a227ad052dfca7db6c7
2015-01-07 18:19:09 +00:00
mistachkin
b13160f71f
Fix threads-enabled builds on Windows when the amalgamation is not in use.
...
FossilOrigin-Name: 9b92a4d2b6585d5fdf20330e4138081df58960e9
2015-01-07 18:11:29 +00:00
drh
8f45555ddc
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
2015-01-07 14:41:18 +00:00
drh
8a2a0f560e
Add a valgrind test to the Linux-x86_64 platform in releasetest.tcl.
...
FossilOrigin-Name: 4b6df035561add4e304fb56dd70ae4d413d6bd5d
2015-01-07 14:09:41 +00:00
dan
ef3d66cb01
Fix a problem in the unix implementation of FCNTL_SIZE_HINT on systems that do not support posix_fallocate().
...
FossilOrigin-Name: af20eae1e6f608e4e61a07c3d14cf88c12751353
2015-01-06 21:31:47 +00:00
drh
6fab3d469a
Improved and more rigorous test of large VALUES clauses.
...
FossilOrigin-Name: 6917d9f437224229fa103c847c2df87ade64e1e9
2015-01-06 16:53:49 +00:00
drh
a5b43ac2f1
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
2015-01-05 20:13:49 +00:00
drh
3afd2b4d6d
Avoid O(N*N) behavior with very long lists of VALUES.
...
FossilOrigin-Name: ee30fb35217f3429ee89aaad7c19f29710420e4c
2015-01-05 20:04:51 +00:00
drh
45f54a5778
Handle compound-select statements originating from VALUES clauses as a
...
special case that does not use recursion.
FossilOrigin-Name: 9ce9e43af38e6bc362734463d4bfc40ff0c98f8f
2015-01-05 19:16:42 +00:00
drh
a0c01768f0
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
2015-01-05 16:27:43 +00:00
drh
b87fbed5a3
Remove some needless recursion from compound SELECT processing.
...
FossilOrigin-Name: fe677d13f03e24fa667efc0c2e7f5bbb99521791
2015-01-05 15:48:45 +00:00
drh
a780d8d767
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
2015-01-03 18:59:17 +00:00
drh
b96ef64921
Fix a harmless compiler warning.
...
FossilOrigin-Name: e0de580726a0ed35565783ed14440ef9bcdc3a3d
2015-01-02 21:54:32 +00:00
mistachkin
6da0a6d0d4
Merge updates from trunk.
...
FossilOrigin-Name: ea99f4b29afb98dd474d96889c934763f5636891
2015-01-02 20:06:27 +00:00
drh
3bd1791dfb
Add the SQLITE_CONFIG_PMASZ start-time option.
...
FossilOrigin-Name: acb0d1e8324f19da3d4d577d58748848de1bcef7
2015-01-02 15:55:29 +00:00
drh
4081d5da3b
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
2015-01-01 23:02:01 +00:00
drh
149735d946
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
2015-01-01 19:53:10 +00:00
drh
0325d3962a
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
2015-01-01 19:11:22 +00:00
drh
7203aed919
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
2015-01-01 18:54:23 +00:00
drh
f0a88279bd
Fix a harmless compiler warning in rtree.
...
FossilOrigin-Name: 30891c6b8ebe9dfc939f9695bb45a159fbaaf262
2015-01-01 16:47:43 +00:00
drh
a0de826c9f
Fix two test cases in memsubsys1 so that they work with the mmap permutation.
...
FossilOrigin-Name: 66269d0d8e49eb3dc7f508714753584f648bb022
2015-01-01 14:13:45 +00:00
drh
fddfacc371
Fix the fkey-7.1 test so that it sorts its answer and hence always gives the
...
same answer.
FossilOrigin-Name: 5830c557f7ed048056e2faeb82a8705ee7ecfdd7
2015-01-01 14:06:24 +00:00
drh
af700b3971
Fix to releasetest.tcl: When doing the secondary _debug runs, convert
...
"fulltest" to just "test".
FossilOrigin-Name: ec264bdee5ab8047fda9a36af27c8a2c8d964112
2014-12-31 20:35:11 +00:00
drh
0265eb666b
Adjust the memsubsys1-5.5 test case to avoid occasional false positives.
...
FossilOrigin-Name: 432413187f41061a08ecff2697ce85c935fa6fa8
2014-12-31 20:25:33 +00:00
drh
9854248609
Fix a floating-point round-off error problem in the percentile.test module.
...
FossilOrigin-Name: 456948ea64c6980dab79dac30a538b5a6ab8773d
2014-12-31 20:19:20 +00:00
drh
2e5021d5ea
Disable the bigsort.test module on machine with less than 8GB of available
...
RAM or machine, to avoid thrashing.
FossilOrigin-Name: 9d4fe11641043af4e663085e979f637676599da0
2014-12-31 19:58:32 +00:00
drh
bcbac6843e
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
2014-12-31 18:55:09 +00:00
drh
169c464403
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
2014-12-31 18:28:59 +00:00
dan
b8a9d8db87
Add a missing sqlite3_close() call to threadtest3.c.
...
FossilOrigin-Name: a65a44f3ff851b71c9a79e96b9575c6a7006d2dd
2014-12-31 18:25:21 +00:00
drh
fb212d02c5
Only run walthread5 once when running all tests in threadtest3.
...
FossilOrigin-Name: ca2e4a5b22e1dc9ea79f77853e328d401138f747
2014-12-31 18:10:07 +00:00
dan
23f8a7cd2f
Do run pragma3.test as part of the mmap permutation. As it works as of [cf48eb608a].
...
FossilOrigin-Name: 11057e2645d92876fd0fb6d702757408077b7354
2014-12-31 18:08:46 +00:00
drh
c67d650264
Change the width of output lines in releasetest.tcl from 70 to 79 characters.
...
FossilOrigin-Name: a468d96700c05d1a01a745930d13ce89c09ce4fa
2014-12-31 15:14:29 +00:00
drh
542d55865c
Make sure PRAGMA data_version is updated even if the cache is empty when
...
another connection changes the database.
FossilOrigin-Name: cf48eb608af9102a8def2a5b7f5f7b348548116f
2014-12-31 14:18:48 +00:00
dan
e895b87389
Do not run pragma3.test as part of the mmap permutation.
...
FossilOrigin-Name: 94101011966243d599519a69c99c202ea31b928d
2014-12-31 09:52:15 +00:00
drh
bd41d56629
Add the "mptester" tests to releasetest.tcl.
...
FossilOrigin-Name: 93094a68d3a6178779878cbbe0e5e09ef31a323f
2014-12-30 20:40:32 +00:00
dan
592bf7faf5
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
2014-12-30 19:58:31 +00:00
drh
9486c1b020
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
2014-12-30 19:26:07 +00:00
dan
55e115f060
Fix problems with the "inmemory_journal" permutation.
...
FossilOrigin-Name: 79693f0412ffb0486b974ee6c63b4231cfff5a77
2014-12-30 18:07:34 +00:00
dan
d348c66e29
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
2014-12-30 14:40:53 +00:00
drh
51dc84eb70
Make SQLITE_CONFIG_PCACHE_HDRSZ accurate (not an over-estimate) on 32-bit
...
systems.
FossilOrigin-Name: 340b347758e570db3e739b56af0dcf3fc34525be
2014-12-30 13:04:25 +00:00
dan
8ab4b9e964
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
2014-12-30 12:03:35 +00:00
drh
37c057b8ff
Round all object sizes that go into computing SQLITE_CONFIG_PCACHE_HDRSZ up
...
to a multiple of 8 bytes.
FossilOrigin-Name: b28ce75f2d3a6343dc20d581dc55afae89ab5efa
2014-12-30 00:57:29 +00:00
drh
cb281a9a2c
Fix the --dryrun option in releasetest.tcl.
...
FossilOrigin-Name: 0f9e549643ab94b0465e6891384dd20506708a8f
2014-12-29 19:54:10 +00:00
dan
620315840c
Fix some recently added tests so that they work with SQLITE_DEFAULT_AUTOVACUUM=1.
...
FossilOrigin-Name: ef0626ab20f753f01090ca8e8a94e8b516eea55e
2014-12-29 12:02:31 +00:00
drh
622a53d54a
Reinstate an assert() by adding an "|| CORRUPT_DB" term.
...
FossilOrigin-Name: 95ce20348d9b868a0407adccdb222a0e4c762945
2014-12-29 11:50:39 +00:00
drh
277b4e446c
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
2014-12-29 02:55:58 +00:00
drh
e385d8876e
Fix WITHOUT ROWID tables so that they correctly deal with PRIMARY KEYs that
...
contain redundant columns.
FossilOrigin-Name: 0dfef6757056ef0bdea8f049f7469ccf6960e2cb
2014-12-28 22:10:51 +00:00
drh
0ab0e05c6b
Update the SQLITE_CONFIG_PAGECACHE documentation so that the maximum page
...
size is correctly stated to be 65536.
FossilOrigin-Name: 3286424b4d30035de69b88ef0b2897365ff848f9
2014-12-25 12:19:56 +00:00
drh
97876ee666
Fix the error counter in releasetest.tcl. And report the total time in
...
HH:MM:SS instead of just seconds.
FossilOrigin-Name: 6396f8046242286298fecd1748a6e8e786e6794e
2014-12-24 23:35:36 +00:00
dan
ee7172f12a
Fix a failing assert() in balance_nonroot().
...
FossilOrigin-Name: e2e323145f66cca31babe1a979db6ef97038b879
2014-12-24 18:11:50 +00:00
dan
8038953c15
When building the amalgamation with SQLITE_ENABLE_IOTRACE defined, do not mark symbol sqlite3IoTrace as static.
...
FossilOrigin-Name: 5b7ca013b7171a6807b15b128e140ce160f526d3
2014-12-24 17:17:30 +00:00
drh
a7c432c273
Merge the new and improved releasetest.tcl script into trunk. Add a
...
"make releasetest" target to the autoconf makefile.
FossilOrigin-Name: 1deb00ec758c6d213da71ef64294cc816e204338
2014-12-23 21:17:58 +00:00
mistachkin
29f98f3077
Remove 'threadtest' as a target on Windows, due to lack of pthreads. Also, change 'fulltest' to 'fulltestonly'.
...
FossilOrigin-Name: a010c404b5140104b68087dcbb0698b7a85eef65
2014-12-23 21:10:38 +00:00
mistachkin
4d03a381f8
Fix typo in library object file name.
...
FossilOrigin-Name: f49566a79d05e630a86ea7b2acc04672d76d6337
2014-12-23 21:03:09 +00:00
mistachkin
054450f0bd
Permit sqlite3_shutdown() to be called with OMIT_WSD enabled and without having called sqlite3_initialize() first.
...
FossilOrigin-Name: 3f7dbdb5df38bd4b8cd49d22a23b8412b8d506e5
2014-12-23 20:42:48 +00:00
drh
e43ff920ce
In the releasetest.tcl script, show the test target for each configuration
...
that is run. And show the time in HH:MM:SS.
FossilOrigin-Name: 2295e9e0a22220ccb1b9cc2b031c1d8e702a1888
2014-12-23 20:41:13 +00:00
drh
069b8f2cb3
Add the threadtest target to Makefile.in. Add --enable-load-extension to
...
the configure issued by releasetest.tcl.
FossilOrigin-Name: cb128067faabf0503dff1298ed29934f484f71bb
2014-12-23 20:31:43 +00:00
mistachkin
7284056ad6
Draft of changes necessary to make releasetest work on Windows via MinGW.
...
FossilOrigin-Name: af166c5c64216d845269410d1ac2493310694b86
2014-12-23 20:22:57 +00:00
drh
e5d7bf1e4c
Fix a potential segfault following OOM error in the test harness. The
...
SQLite core itself is not at fault.
FossilOrigin-Name: 1bb26695ff28a96d740752e327c2e0a0da1d067e
2014-12-23 20:05:19 +00:00
drh
00fa334a0b
Add the "checksymbols" target to Makefile.in
...
FossilOrigin-Name: 5bd73dba5e278db81f7d728c75e3142c02d37ff7
2014-12-23 19:52:26 +00:00
drh
d477eee312
Rework the test/releasetest.tcl script so that it uses the autoconf makefile
...
instead of the test/releasetest.mk makefile. Also add options like --dryrun
and --buildonly. Omit the --makefile option and replace it with --srcdir
with the default computed relative to the releasetest.tcl script itself.
FossilOrigin-Name: 7c85e831153f9aef2afaf981d53db38a28091be5
2014-12-23 19:40:51 +00:00
drh
4a86d00162
Fix a typo in an evidence mark on a test script. No changes to code.
...
FossilOrigin-Name: a08b0c7512287ce5ae3fffe02c092d0eb25b3a25
2014-12-22 22:02:20 +00:00
drh
3da9c04712
Redefine the way PRAGMA data_version works: It continues to change when
...
any other connection commits, including shared-cache connections, but does not
change if the local connection commits.
FossilOrigin-Name: 7a97826f33460f3b4f3890c9cf97116c3355eeda
2014-12-22 18:41:21 +00:00
drh
dd31b4e709
Fixes to the README.md file. No changes to code.
...
FossilOrigin-Name: ef4b734d1ff3dbb9c802c60dc1384033fdfd87e5
2014-12-21 11:56:02 +00:00
mistachkin
d9d812fc38
Support manually disabling overlapped file I/O for Windows sub-platforms other than Windows CE.
...
FossilOrigin-Name: b9330b887cc8bed2b6b3e6c1b269788e08ccf50d
2014-12-20 22:21:49 +00:00
mistachkin
cd54bab6fe
Minor fixes and enhancements to the SQLITE_ENABLE_API_ARMOR functionality.
...
FossilOrigin-Name: cb3e4219ac9560d2773b85453aafda54b7c9346f
2014-12-20 21:14:14 +00:00
drh
59871fe748
Add the "PRAGMA data_version" command for checking to see if a database has
...
been modified.
FossilOrigin-Name: de50f25ce3226fa4929b8236c72c88b739859d5f
2014-12-20 14:50:28 +00:00
drh
d7107b3852
Update the PRAGMA data_version command so that it reponse to changes made
...
by a shared-cache database connection, and also to changes made by the same
database connection. Add test cases to verify the new behavior.
FossilOrigin-Name: 44ee538374940c50198949f2cbb9213ba2375b6a
2014-12-20 14:34:02 +00:00
mistachkin
129a752bad
Merge updates from trunk.
...
FossilOrigin-Name: 555fb71f6c479936446c2ce75b1b120a9a121f49
2014-12-19 22:20:27 +00:00
drh
0d339e44a0
Adding test cases for the "PRAGMA data_version" command.
...
FossilOrigin-Name: c5fb7d6a106d46f10e71abe3a6d4243b21ed02a5
2014-12-19 20:27:02 +00:00
drh
9161856495
Experimental "PRAGMA data_version" command for detecting when another process
...
has changed the database file.
FossilOrigin-Name: 43db1f44bce5a0ee50197b95ab0d844540b69d86
2014-12-19 19:28:02 +00:00
drh
8e755e7e19
Simplify the implementation of the "header-value" pragmas (schema_version,
...
user_version, freelist_count, and application_id) by making them more
table-driven.
FossilOrigin-Name: da27a09d1d991583b59997f6cc67efa28ffd9d6a
2014-12-19 18:49:55 +00:00
dan
1ac5fed3a7
Experimental opimizations to speed up FK constraint CASCADE and SET NULL action processing.
...
FossilOrigin-Name: 8c5dd6cc259e0cdaaddaa52ccfa96fee6b166906
2014-12-17 15:03:50 +00:00
dan
d457271130
Fix some comments in fkey.c. Add tests to fkey8.test.
...
FossilOrigin-Name: 210cb2a6aaf780365064a26c0c99926bd6346e19
2014-12-17 14:38:45 +00:00
dan
0466883300
Experimental opimizations to speed up FK constraint CASCADE and SET NULL action processing.
...
FossilOrigin-Name: 35a20a5f22245c70faa51965951e8cc011defa93
2014-12-16 20:13:30 +00:00
drh
e8d1777a2d
Fix the e_walauto.test script so that it works on windows.
...
FossilOrigin-Name: 7d092ebb6724c3c0fdc05dc94ca767d158933fb5
2014-12-16 12:46:38 +00:00
drh
58cca03ce5
Enhanced "stress2" testing in the threadtest3.c test program.
...
FossilOrigin-Name: ae43539e62e76676a3daf561b629a1b9b4e2d2c9
2014-12-16 00:20:07 +00:00
drh
7efa426ee9
Make sure the sqlite3BtreeCount() routine does not leave index cursors in an
...
inconsistent state, as doing so might result in an assertion fault inside
of sqlite3BtreeKey() called from saveAllCursors() if content is deleted out
from under the statement that issued the sqlite3BtreeCount() call.
FossilOrigin-Name: 5b1b697040116048e464b3ebab8395fe088e389a
2014-12-16 00:08:31 +00:00
dan
1ee46c01b4
Changes to threadtest3 so that "stress2" is more similar to the SDS stress test.
...
FossilOrigin-Name: 5648af96d8e2521c5b0cca19f1358374d032394d
2014-12-15 20:49:26 +00:00
dan
9af10620ec
Add new test file e_walauto.test.
...
FossilOrigin-Name: 62ef45140cdbff5eeb8bef506db8b78ced3ace94
2014-12-15 16:27:12 +00:00
dan
d44b786ff6
Fix errors in threadtest3 tests caused by earlier tests neglecting to close database handles.
...
FossilOrigin-Name: 1d44f1b1a9fefeb2449892775c59765c46784eb1
2014-12-15 08:46:17 +00:00
dan
053542d72a
Further enhancements to threadtest3 stress tests.
...
FossilOrigin-Name: ba772cff602ca7c3c0c91451e701f52a872e7a14
2014-12-13 17:41:48 +00:00
drh
9bd3cc4681
Add extra tests to threadtest4.c. Fix a benign data race accessing the
...
text encoding using ENC(db).
FossilOrigin-Name: d7bb7ea4ab97ad26f4c84c9b8dc2827010093803
2014-12-12 23:17:54 +00:00
dan
0420954606
Add extra tests to threadtest3.
...
FossilOrigin-Name: f6bf86f907cbff31bed3cbfc922c10c973575498
2014-12-12 16:39:38 +00:00
drh
ef15c6e9e6
Add new tests to the threadtest4.c program. Fix a long-standing data race
...
in WAL mode for shared-cache.
FossilOrigin-Name: d8d3e6d04cbb9e3033ad8613e3dbd4ad0b01765a
2014-12-12 01:27:17 +00:00
drh
2ea0bafae2
Remove the KeyInfo cache (for now - perhaps we will add it back in later - or
...
maybe not since it provides negligible benefit but adds a lot of complexity
and thread-safety risk). Add a mutex to ATTACH to deal with a data race.
FossilOrigin-Name: 03c443eaf24413d6faaa91a33575d9dfd3528b5c
2014-12-12 00:52:10 +00:00
drh
5942b01611
Make sure the Btree mutex is held when setting the locking mode and the
...
secure delete flag when attaching a shared-cache database.
FossilOrigin-Name: 6bef7ede2bbf0a51729e1943b0b0c895cb57c718
2014-12-12 00:40:58 +00:00
drh
5f5c1a0186
Merge the cell overflow page number cache thread race fix from trunk.
...
FossilOrigin-Name: cefad47ec2ad58d7ecd58bab9a261e4d5816cd69
2014-12-12 00:26:59 +00:00
drh
18b67f3f0d
Fix a bug in the threadtest4.c program. Remove the keyinfo cache as it provides
...
minimal performance improvements, and then only at SQL preparation time, not
at runtime, and it has problems with data races in shared-cache mode. We might
later add the keyinfo cache back but only enable it when shared-cache mode
is off.
FossilOrigin-Name: b7489f9451628c68f1dfc1d457fc161a0921c631
2014-12-12 00:20:37 +00:00
drh
1e57430e63
Add the threadtest4.c test program. Not yet working.
...
FossilOrigin-Name: ec3a74469ca2f0f3fb7d82a05fdac7500354e78f
2014-12-11 19:29:42 +00:00
dan
857536623a
Fix a race condition to do with very large index keys in shared-cache mode.
...
FossilOrigin-Name: fc157dd7f18c94b7ae5f155e1b4a5d7714b7da8c
2014-12-11 16:38:18 +00:00
drh
0a3520c0f4
Fix a typo in the documentation for sqlite3_threadsafe().
...
FossilOrigin-Name: 258e747bb7e3a2bc46f932cc2b06c2689d43aeb0
2014-12-11 15:27:04 +00:00
mistachkin
dd11f2d930
Update a comment.
...
FossilOrigin-Name: e0e102a0bd9d07bccdb1feb95767cb81fb57c29f
2014-12-11 04:49:46 +00:00
mistachkin
44b99f7e2e
Rename a structure member to improve code clarity.
...
FossilOrigin-Name: d48eda16ef8a84a93de9c6f38f794aceb4a6ba0d
2014-12-11 03:29:14 +00:00
mistachkin
44ca920625
Remove an unused structure member.
...
FossilOrigin-Name: d8404340cb01af440feebd19d291eb7198cfa576
2014-12-11 03:25:05 +00:00
mistachkin
f1f84a6ec1
Further simplify shell mode changes.
...
FossilOrigin-Name: cf9c6e7eea4cab073e608e6fefdd24be87a8abeb
2014-12-11 03:20:58 +00:00
mistachkin
e0d6885f17
Simplify and cleanup the implementation of the new ASCII mode for the shell.
...
FossilOrigin-Name: 66a28f7abaeaf1ebe6e43d856af88ac64b1ff230
2014-12-11 03:12:33 +00:00
mistachkin
31868243e2
Merge updates from trunk.
...
FossilOrigin-Name: 5b5d3e4d0d158594c0db05ddbf4d926b65825042
2014-12-11 02:28:42 +00:00
dan
1f03b86523
Fix a typo causing a test error in e_walhook.test.
...
FossilOrigin-Name: d9f916ba09f1a61684b4d59548ab6cf71cdb6a37
2014-12-10 20:57:20 +00:00
dan
6e45e0c8d7
Add new test file e_walhook.test.
...
FossilOrigin-Name: 2eb6d3e4fbe388ef28e4b7b846e9e8a4361517a4
2014-12-10 20:29:49 +00:00
mistachkin
684ec98fe3
Revise mutex handling by the sqlite3_win32_reset_heap() function.
...
FossilOrigin-Name: eacb3b7baa910e84f984b8e45695a2a2f5a4c861
2014-12-10 17:34:48 +00:00
drh
6f7febffa2
Fix typos in the documentation for sqlite3_table_column_metadata().
...
No changes to code.
FossilOrigin-Name: 3528f8dd39acace8eeb7337994c8617313f4b04b
2014-12-10 04:58:43 +00:00
drh
45d1b20639
Fix the sqlite3_table_column_metadata() routine so that it gives the correct
...
answer for the "rowid" column in a WITHOUT ROWID table. Enhance it so that
it can be used to check for the existence of a table by setting the column
name parameter to NULL. The routine is now included in the build by
default, even without the SQLITE_ENABLE_COLUMN_METADATA compile-time option.
FossilOrigin-Name: cf9be419a16156a9814e1378bb49b780de977343
2014-12-09 22:24:42 +00:00
dan
9778bd7292
Add extra tests to e_walckpt.test.
...
FossilOrigin-Name: 84f9581019961efa31297f8be48427b17bcca857
2014-12-09 20:13:40 +00:00
drh
80cdfd199b
Lower the default SQLITE_SORTER_PMASZ value back to 10, where it has been for
...
the past couple of releases. Applications that need a larger value can set
one.
FossilOrigin-Name: 1ba8911c18f2fe34c20dc42f25a8f3c1c798fa7a
2014-12-09 19:16:41 +00:00
drh
8c3026ecf3
Make the sqlite3_table_column_metadata() interface available by default and
...
without requiring the SQLITE_ENABLE_COLUMN_METADATA compile-time option.
Other sqlite3_column_* interfaces that have a run-time penalty even if they
are unused still require the SQLITE_ENABLE_COLUMN_METADATA option at
compile-time.
FossilOrigin-Name: 4f7549ff924b8ed8f90fc447cd4be11421453984
2014-12-09 19:07:29 +00:00
drh
f5471925c9
Add the SQLITE_REVERSE_UNORDERED_SELECTS compile-time option that causes the
...
"PRAGMA reverse_unordered_selects" setting to be on by default.
FossilOrigin-Name: 75a803e694d2c4e67579f45d54a0aaf120411a6e
2014-12-09 15:12:11 +00:00
drh
b11c3f22b8
Increase the default minimum PMA size for multi-threaded sorting from 10x
...
the page size to 250x the page size. Provide the SQLITE_SORTER_PMASZ
compile-time option to change this default.
FossilOrigin-Name: b05340fe3cd5f1676a55023228dc8d1a92de5936
2014-12-09 14:42:49 +00:00
mistachkin
0fbd7350a1
Fix harmless compiler warning.
...
FossilOrigin-Name: e97b7a8b4df784d148fefb9554da0f511e351d9f
2014-12-09 04:26:56 +00:00
dan
785a38f066
Add extra tests to e_walckpt.test.
...
FossilOrigin-Name: d6832aa24c8d93b4532a651b86605bd0a0d0aa78
2014-12-08 20:29:23 +00:00
dan
0235a0331f
Add missing mutex calls around a call to sqlite3SchemaGet() within sqlite3_open().
...
FossilOrigin-Name: 45415899545767888d36dcc0bafaf0ef415d94c2
2014-12-08 20:20:16 +00:00
drh
b88c7b550c
Add a missing mutex around calls to clear the KeyInfo cache when closing
...
a database connection.
FossilOrigin-Name: 7047ce32a234484b8ba15311e6560aa74ff692c9
2014-12-08 18:08:45 +00:00
dan
8f1eb8a1cb
Avoid accessing a single uninitialized byte when moving a rare 3-byte cell from an internal page to a leaf. This was not actually causing a problem, just a valgrind warning.
...
FossilOrigin-Name: 6aeece19a235344be2537e66a3fe08b1febfb5a0
2014-12-06 14:56:49 +00:00
drh
d52d52be80
Fix a (harmless) uninitialized variable reference in b-tree balancing for
...
auto-vacuumed tables with overflow pages.
FossilOrigin-Name: dd1dd4451f468599f7a0c2f7b5ee6125db3bb152
2014-12-06 02:05:44 +00:00
drh
cd934c3d2c
Avoid a potential NULL pointer deference in the sqlite3_stmt_scanstatus()
...
logic.
FossilOrigin-Name: 42d44adc13d52b8dd571c9375eb48298123d5a60
2014-12-05 21:18:19 +00:00
dan
5cca94ea71
Fix a buffer overread that might occur in analyze.c if SQLITE_ENABLE_STAT4 was defined.
...
FossilOrigin-Name: c1ae1268b9023a771fda98f26bf451c6066fe70b
2014-12-05 21:04:26 +00:00
dan
2928d32791
Add new test file e_walckpt.test. Still some tests to come.
...
FossilOrigin-Name: e4db3db3a65ecfd4069a40d436aa7a5512d61a30
2014-12-05 20:46:19 +00:00
drh
fe32daaeaa
Make sure the WhereTerm objects are fully zeroed when they are allocated.
...
FossilOrigin-Name: fdb667335c2250239a66143aec4235325dec8274
2014-12-05 19:50:58 +00:00
drh
ebdb81dd45
The KeyInfo cache must be cleared before closing the btree, not after.
...
Revised fix for ticket [e4a18565a36884b00edf].
FossilOrigin-Name: 7ed3346e8c10dbf52fd44ab69900699d4f7ad3fd
2014-12-05 15:31:33 +00:00
drh
318dc0b425
When closing a (shared-cache) database connection, be sure to clear out
...
all KeyInfo objects cached on Index objects.
Fix for ticket [e4a18565a36884b00edf].
FossilOrigin-Name: adca7688de20ff40d8ddf2107dfaf92af3873b83
2014-12-05 14:44:57 +00:00
drh
351064b452
Improved comment on the sharedB.test test script.
...
FossilOrigin-Name: 71f589e3f82a07513425e212072f32748c0732d4
2014-12-05 14:34:30 +00:00
drh
a895a4d22c
Test case demonstrating the problem described by
...
ticket [e4a18565a36884b00edf].
FossilOrigin-Name: ffea3e905adc108d2dc37f5d6da2024f0389f176
2014-12-05 14:07:53 +00:00