]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
11 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

11 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

11 years agoFixes to built-in tokenizers.
dan [Mon, 29 Dec 2014 11:24:46 +0000 (11:24 +0000)] 
Fixes to built-in tokenizers.

FossilOrigin-Name: b33fe0dd89f3180c209fa1f9e75d0a7acab12b8e

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 years agoFix typo in library object file name.
mistachkin [Tue, 23 Dec 2014 21:03:09 +0000 (21:03 +0000)] 
Fix typo in library object file name.

FossilOrigin-Name: f49566a79d05e630a86ea7b2acc04672d76d6337

11 years agoPermit sqlite3_shutdown() to be called with OMIT_WSD enabled and without having calle...
mistachkin [Tue, 23 Dec 2014 20:42:48 +0000 (20:42 +0000)] 
Permit sqlite3_shutdown() to be called with OMIT_WSD enabled and without having called sqlite3_initialize() first.

FossilOrigin-Name: 3f7dbdb5df38bd4b8cd49d22a23b8412b8d506e5

11 years agoIn the releasetest.tcl script, show the test target for each configuration
drh [Tue, 23 Dec 2014 20:41:13 +0000 (20:41 +0000)] 
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

11 years agoAdd the threadtest target to Makefile.in. Add --enable-load-extension to
drh [Tue, 23 Dec 2014 20:31:43 +0000 (20:31 +0000)] 
Add the threadtest target to Makefile.in.  Add --enable-load-extension to
the configure issued by releasetest.tcl.

FossilOrigin-Name: cb128067faabf0503dff1298ed29934f484f71bb

11 years agoDraft of changes necessary to make releasetest work on Windows via MinGW.
mistachkin [Tue, 23 Dec 2014 20:22:57 +0000 (20:22 +0000)] 
Draft of changes necessary to make releasetest work on Windows via MinGW.

FossilOrigin-Name: af166c5c64216d845269410d1ac2493310694b86

11 years agoFix a potential segfault following OOM error in the test harness. The
drh [Tue, 23 Dec 2014 20:05:19 +0000 (20:05 +0000)] 
Fix a potential segfault following OOM error in the test harness.  The
SQLite core itself is not at fault.

FossilOrigin-Name: 1bb26695ff28a96d740752e327c2e0a0da1d067e

11 years agoAdd the "checksymbols" target to Makefile.in
drh [Tue, 23 Dec 2014 19:52:26 +0000 (19:52 +0000)] 
Add the "checksymbols" target to Makefile.in

FossilOrigin-Name: 5bd73dba5e278db81f7d728c75e3142c02d37ff7

11 years agoRework the test/releasetest.tcl script so that it uses the autoconf makefile
drh [Tue, 23 Dec 2014 19:40:51 +0000 (19:40 +0000)] 
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

11 years agoFix the fts5 bm25() function so that it matches the documentation.
dan [Tue, 23 Dec 2014 19:18:34 +0000 (19:18 +0000)] 
Fix the fts5 bm25() function so that it matches the documentation.

FossilOrigin-Name: 1ac7a8d0af9a71ddf6a1421033dcb9fa67c6120c

11 years agoFix a typo in an evidence mark on a test script. No changes to code.
drh [Mon, 22 Dec 2014 22:02:20 +0000 (22:02 +0000)] 
Fix a typo in an evidence mark on a test script.  No changes to code.

FossilOrigin-Name: a08b0c7512287ce5ae3fffe02c092d0eb25b3a25

11 years agoFixes and simplifications for the snippet() and highlight() functions.
dan [Mon, 22 Dec 2014 21:01:52 +0000 (21:01 +0000)] 
Fixes and simplifications for the snippet() and highlight() functions.

FossilOrigin-Name: ca5d44042aa7461dcc8b700b0763df4df9d4a891

11 years agoMerge the PRAGMA data_version redefinition and other fixes from trunk.
drh [Mon, 22 Dec 2014 18:48:48 +0000 (18:48 +0000)] 
Merge the PRAGMA data_version redefinition and other fixes from trunk.

FossilOrigin-Name: 315243e49d30abd0eb31e3795ecf492aee179e4b

11 years agoRedefine the way PRAGMA data_version works: It continues to change when
drh [Mon, 22 Dec 2014 18:41:21 +0000 (18:41 +0000)] 
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

11 years agoFixes to the README.md file. No changes to code.
drh [Sun, 21 Dec 2014 11:56:02 +0000 (11:56 +0000)] 
Fixes to the README.md file.  No changes to code.

FossilOrigin-Name: ef4b734d1ff3dbb9c802c60dc1384033fdfd87e5

11 years agoSupport manually disabling overlapped file I/O for Windows sub-platforms other than...
mistachkin [Sat, 20 Dec 2014 22:21:49 +0000 (22:21 +0000)] 
Support manually disabling overlapped file I/O for Windows sub-platforms other than Windows CE.

FossilOrigin-Name: b9330b887cc8bed2b6b3e6c1b269788e08ccf50d

11 years agoMinor fixes and enhancements to the SQLITE_ENABLE_API_ARMOR functionality.
mistachkin [Sat, 20 Dec 2014 21:14:14 +0000 (21:14 +0000)] 
Minor fixes and enhancements to the SQLITE_ENABLE_API_ARMOR functionality.

FossilOrigin-Name: cb3e4219ac9560d2773b85453aafda54b7c9346f

11 years agoMerge the PRAGMA data_version command and the enhancements to FK query planning
drh [Sat, 20 Dec 2014 14:58:32 +0000 (14:58 +0000)] 
Merge the PRAGMA data_version command and the enhancements to FK query planning
from trunk into the sessions branch.

FossilOrigin-Name: d4f82af0a4a9db222e3405cff05c41157e7bd5d9

11 years agoAdd the "PRAGMA data_version" command for checking to see if a database has
drh [Sat, 20 Dec 2014 14:50:28 +0000 (14:50 +0000)] 
Add the "PRAGMA data_version" command for checking to see if a database has
been modified.

FossilOrigin-Name: de50f25ce3226fa4929b8236c72c88b739859d5f

11 years agoUpdate the PRAGMA data_version command so that it reponse to changes made data_version_pragma
drh [Sat, 20 Dec 2014 14:34:02 +0000 (14:34 +0000)] 
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

11 years agoMerge updates from trunk.
mistachkin [Fri, 19 Dec 2014 22:20:27 +0000 (22:20 +0000)] 
Merge updates from trunk.

FossilOrigin-Name: 555fb71f6c479936446c2ce75b1b120a9a121f49

11 years agoRemove the fts5_test() aux function. Test aux functions using the tcl interface instead.
dan [Fri, 19 Dec 2014 20:53:51 +0000 (20:53 +0000)] 
Remove the fts5_test() aux function. Test aux functions using the tcl interface instead.

FossilOrigin-Name: 67e3ffd950c5347d219a06b33ad51949cffa7d90

11 years agoAdding test cases for the "PRAGMA data_version" command.
drh [Fri, 19 Dec 2014 20:27:02 +0000 (20:27 +0000)] 
Adding test cases for the "PRAGMA data_version" command.

FossilOrigin-Name: c5fb7d6a106d46f10e71abe3a6d4243b21ed02a5

11 years agoExperimental "PRAGMA data_version" command for detecting when another process
drh [Fri, 19 Dec 2014 19:28:02 +0000 (19:28 +0000)] 
Experimental "PRAGMA data_version" command for detecting when another process
has changed the database file.

FossilOrigin-Name: 43db1f44bce5a0ee50197b95ab0d844540b69d86

11 years agoSimplify the implementation of the "header-value" pragmas (schema_version,
drh [Fri, 19 Dec 2014 18:49:55 +0000 (18:49 +0000)] 
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

11 years agoFix a problem with prefix queries and the AND operator.
dan [Thu, 18 Dec 2014 20:01:15 +0000 (20:01 +0000)] 
Fix a problem with prefix queries and the AND operator.

FossilOrigin-Name: 38b3c65e3ee95eb7afadb76e0110570fbbc41e1b

11 years agoFix various problems in fts5 revealed by fault-injection tests.
dan [Thu, 18 Dec 2014 18:25:48 +0000 (18:25 +0000)] 
Fix various problems in fts5 revealed by fault-injection tests.

FossilOrigin-Name: e358c3de5c916f2c851ab9324ceaae4e4e7a0fbd

11 years agoExperimental opimizations to speed up FK constraint CASCADE and SET NULL action proce...
dan [Wed, 17 Dec 2014 15:03:50 +0000 (15:03 +0000)] 
Experimental opimizations to speed up FK constraint CASCADE and SET NULL action processing.

FossilOrigin-Name: 8c5dd6cc259e0cdaaddaa52ccfa96fee6b166906

11 years agoFix some comments in fkey.c. Add tests to fkey8.test. experimental-fk-actions
dan [Wed, 17 Dec 2014 14:38:45 +0000 (14:38 +0000)] 
Fix some comments in fkey.c. Add tests to fkey8.test.

FossilOrigin-Name: 210cb2a6aaf780365064a26c0c99926bd6346e19

11 years agoExperimental opimizations to speed up FK constraint CASCADE and SET NULL action proce...
dan [Tue, 16 Dec 2014 20:13:30 +0000 (20:13 +0000)] 
Experimental opimizations to speed up FK constraint CASCADE and SET NULL action processing.

FossilOrigin-Name: 35a20a5f22245c70faa51965951e8cc011defa93

11 years agoFix the e_walauto.test script so that it works on windows.
drh [Tue, 16 Dec 2014 12:46:38 +0000 (12:46 +0000)] 
Fix the e_walauto.test script so that it works on windows.

FossilOrigin-Name: 7d092ebb6724c3c0fdc05dc94ca767d158933fb5

11 years agoMerge threading fixes from trunk into the sessions branch.
drh [Tue, 16 Dec 2014 01:05:38 +0000 (01:05 +0000)] 
Merge threading fixes from trunk into the sessions branch.

FossilOrigin-Name: 9817a2864eebe2dc90ce505fe0faa8b069ff48ff

11 years agoEnhanced "stress2" testing in the threadtest3.c test program.
drh [Tue, 16 Dec 2014 00:20:07 +0000 (00:20 +0000)] 
Enhanced "stress2" testing in the threadtest3.c test program.

FossilOrigin-Name: ae43539e62e76676a3daf561b629a1b9b4e2d2c9

11 years agoMake sure the sqlite3BtreeCount() routine does not leave index cursors in an
drh [Tue, 16 Dec 2014 00:08:31 +0000 (00:08 +0000)] 
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

11 years agoChanges to threadtest3 so that "stress2" is more similar to the SDS stress test. threadtest3
dan [Mon, 15 Dec 2014 20:49:26 +0000 (20:49 +0000)] 
Changes to threadtest3 so that "stress2" is more similar to the SDS stress test.

FossilOrigin-Name: 5648af96d8e2521c5b0cca19f1358374d032394d

11 years agoAdd new test file e_walauto.test.
dan [Mon, 15 Dec 2014 16:27:12 +0000 (16:27 +0000)] 
Add new test file e_walauto.test.

FossilOrigin-Name: 62ef45140cdbff5eeb8bef506db8b78ced3ace94

11 years agoFix errors in threadtest3 tests caused by earlier tests neglecting to close database...
dan [Mon, 15 Dec 2014 08:46:17 +0000 (08:46 +0000)] 
Fix errors in threadtest3 tests caused by earlier tests neglecting to close database handles.

FossilOrigin-Name: 1d44f1b1a9fefeb2449892775c59765c46784eb1

11 years agoFurther enhancements to threadtest3 stress tests.
dan [Sat, 13 Dec 2014 17:41:48 +0000 (17:41 +0000)] 
Further enhancements to threadtest3 stress tests.

FossilOrigin-Name: ba772cff602ca7c3c0c91451e701f52a872e7a14

11 years agoAdd extra tests to threadtest4.c. Fix a benign data race accessing the
drh [Fri, 12 Dec 2014 23:17:54 +0000 (23:17 +0000)] 
Add extra tests to threadtest4.c.  Fix a benign data race accessing the
text encoding using ENC(db).

FossilOrigin-Name: d7bb7ea4ab97ad26f4c84c9b8dc2827010093803

11 years agoAdd extra tests to threadtest3.
dan [Fri, 12 Dec 2014 16:39:38 +0000 (16:39 +0000)] 
Add extra tests to threadtest3.

FossilOrigin-Name: f6bf86f907cbff31bed3cbfc922c10c973575498

11 years agoAdd new tests to the threadtest4.c program. Fix a long-standing data race
drh [Fri, 12 Dec 2014 01:27:17 +0000 (01:27 +0000)] 
Add new tests to the threadtest4.c program.  Fix a long-standing data race
in WAL mode for shared-cache.

FossilOrigin-Name: d8d3e6d04cbb9e3033ad8613e3dbd4ad0b01765a

11 years agoRemove the KeyInfo cache (for now - perhaps we will add it back in later - or
drh [Fri, 12 Dec 2014 00:52:10 +0000 (00:52 +0000)] 
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

11 years agoMake sure the Btree mutex is held when setting the locking mode and the threadtest4
drh [Fri, 12 Dec 2014 00:40:58 +0000 (00:40 +0000)] 
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

11 years agoMerge the cell overflow page number cache thread race fix from trunk.
drh [Fri, 12 Dec 2014 00:26:59 +0000 (00:26 +0000)] 
Merge the cell overflow page number cache thread race fix from trunk.

FossilOrigin-Name: cefad47ec2ad58d7ecd58bab9a261e4d5816cd69

11 years agoFix a bug in the threadtest4.c program. Remove the keyinfo cache as it provides
drh [Fri, 12 Dec 2014 00:20:37 +0000 (00:20 +0000)] 
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

11 years agoAdd the threadtest4.c test program. Not yet working.
drh [Thu, 11 Dec 2014 19:29:42 +0000 (19:29 +0000)] 
Add the threadtest4.c test program.  Not yet working.

FossilOrigin-Name: ec3a74469ca2f0f3fb7d82a05fdac7500354e78f

11 years agoFix a race condition to do with very large index keys in shared-cache mode.
dan [Thu, 11 Dec 2014 16:38:18 +0000 (16:38 +0000)] 
Fix a race condition to do with very large index keys in shared-cache mode.

FossilOrigin-Name: fc157dd7f18c94b7ae5f155e1b4a5d7714b7da8c

11 years agoFix a typo in the documentation for sqlite3_threadsafe().
drh [Thu, 11 Dec 2014 15:27:04 +0000 (15:27 +0000)] 
Fix a typo in the documentation for sqlite3_threadsafe().

FossilOrigin-Name: 258e747bb7e3a2bc46f932cc2b06c2689d43aeb0

11 years agoUpdate a comment.
mistachkin [Thu, 11 Dec 2014 04:49:46 +0000 (04:49 +0000)] 
Update a comment.

FossilOrigin-Name: e0e102a0bd9d07bccdb1feb95767cb81fb57c29f

11 years agoRename a structure member to improve code clarity.
mistachkin [Thu, 11 Dec 2014 03:29:14 +0000 (03:29 +0000)] 
Rename a structure member to improve code clarity.

FossilOrigin-Name: d48eda16ef8a84a93de9c6f38f794aceb4a6ba0d

11 years agoRemove an unused structure member.
mistachkin [Thu, 11 Dec 2014 03:25:05 +0000 (03:25 +0000)] 
Remove an unused structure member.

FossilOrigin-Name: d8404340cb01af440feebd19d291eb7198cfa576

11 years agoFurther simplify shell mode changes.
mistachkin [Thu, 11 Dec 2014 03:20:58 +0000 (03:20 +0000)] 
Further simplify shell mode changes.

FossilOrigin-Name: cf9c6e7eea4cab073e608e6fefdd24be87a8abeb

11 years agoSimplify and cleanup the implementation of the new ASCII mode for the shell.
mistachkin [Thu, 11 Dec 2014 03:12:33 +0000 (03:12 +0000)] 
Simplify and cleanup the implementation of the new ASCII mode for the shell.

FossilOrigin-Name: 66a28f7abaeaf1ebe6e43d856af88ac64b1ff230

11 years agoMerge updates from trunk.
mistachkin [Thu, 11 Dec 2014 02:28:42 +0000 (02:28 +0000)] 
Merge updates from trunk.

FossilOrigin-Name: 5b5d3e4d0d158594c0db05ddbf4d926b65825042

11 years agoFix a typo causing a test error in e_walhook.test.
dan [Wed, 10 Dec 2014 20:57:20 +0000 (20:57 +0000)] 
Fix a typo causing a test error in e_walhook.test.

FossilOrigin-Name: d9f916ba09f1a61684b4d59548ab6cf71cdb6a37

11 years agoAdd new test file e_walhook.test.
dan [Wed, 10 Dec 2014 20:29:49 +0000 (20:29 +0000)] 
Add new test file e_walhook.test.

FossilOrigin-Name: 2eb6d3e4fbe388ef28e4b7b846e9e8a4361517a4

11 years agoRevise mutex handling by the sqlite3_win32_reset_heap() function.
mistachkin [Wed, 10 Dec 2014 17:34:48 +0000 (17:34 +0000)] 
Revise mutex handling by the sqlite3_win32_reset_heap() function.

FossilOrigin-Name: eacb3b7baa910e84f984b8e45695a2a2f5a4c861

11 years agoFix typos in the documentation for sqlite3_table_column_metadata().
drh [Wed, 10 Dec 2014 04:58:43 +0000 (04:58 +0000)] 
Fix typos in the documentation for sqlite3_table_column_metadata().
No changes to code.

FossilOrigin-Name: 3528f8dd39acace8eeb7337994c8617313f4b04b

11 years agoFix the sqlite3_table_column_metadata() routine so that it gives the correct
drh [Tue, 9 Dec 2014 22:24:42 +0000 (22:24 +0000)] 
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

11 years agoAdd extra tests to e_walckpt.test.
dan [Tue, 9 Dec 2014 20:13:40 +0000 (20:13 +0000)] 
Add extra tests to e_walckpt.test.

FossilOrigin-Name: 84f9581019961efa31297f8be48427b17bcca857

11 years agoLower the default SQLITE_SORTER_PMASZ value back to 10, where it has been for
drh [Tue, 9 Dec 2014 19:16:41 +0000 (19:16 +0000)] 
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

11 years agoMake the sqlite3_table_column_metadata() interface available by default and
drh [Tue, 9 Dec 2014 19:07:29 +0000 (19:07 +0000)] 
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

11 years agoAdd the SQLITE_REVERSE_UNORDERED_SELECTS compile-time option that causes the
drh [Tue, 9 Dec 2014 15:12:11 +0000 (15:12 +0000)] 
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

11 years agoMerge the KeyInfo cache mutex fix from trunk.
drh [Tue, 9 Dec 2014 14:54:26 +0000 (14:54 +0000)] 
Merge the KeyInfo cache mutex fix from trunk.

FossilOrigin-Name: f0940c73bd13cb49a3d229ce2517736324392cfb

11 years agoIncrease the default minimum PMA size for multi-threaded sorting from 10x
drh [Tue, 9 Dec 2014 14:42:49 +0000 (14:42 +0000)] 
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

11 years agoFix harmless compiler warning.
mistachkin [Tue, 9 Dec 2014 04:26:56 +0000 (04:26 +0000)] 
Fix harmless compiler warning.

FossilOrigin-Name: e97b7a8b4df784d148fefb9554da0f511e351d9f

11 years agoAdd extra tests to e_walckpt.test.
dan [Mon, 8 Dec 2014 20:29:23 +0000 (20:29 +0000)] 
Add extra tests to e_walckpt.test.

FossilOrigin-Name: d6832aa24c8d93b4532a651b86605bd0a0d0aa78

11 years agoAdd missing mutex calls around a call to sqlite3SchemaGet() within sqlite3_open().
dan [Mon, 8 Dec 2014 20:20:16 +0000 (20:20 +0000)] 
Add missing mutex calls around a call to sqlite3SchemaGet() within sqlite3_open().

FossilOrigin-Name: 45415899545767888d36dcc0bafaf0ef415d94c2

11 years agoAdd a missing mutex around calls to clear the KeyInfo cache when closing
drh [Mon, 8 Dec 2014 18:08:45 +0000 (18:08 +0000)] 
Add a missing mutex around calls to clear the KeyInfo cache when closing
a database connection.

FossilOrigin-Name: 7047ce32a234484b8ba15311e6560aa74ff692c9

11 years agoUpdate this branch with latest trunk changes.
dan [Mon, 8 Dec 2014 07:50:31 +0000 (07:50 +0000)] 
Update this branch with latest trunk changes.

FossilOrigin-Name: 69a312ad3fe5b39bc394b9ce958cb63d734518c7

11 years agoUpdate comments in sqlite3ota.h to remove the "must have PRIMARY KEY" restriction.
dan [Mon, 8 Dec 2014 07:28:26 +0000 (07:28 +0000)] 
Update comments in sqlite3ota.h to remove the "must have PRIMARY KEY" restriction.

FossilOrigin-Name: 088a41eb8c18886a260cf53fa0cca3bd1958dc05

11 years agoExtra tests for the ota_rowid column.
dan [Mon, 8 Dec 2014 07:22:34 +0000 (07:22 +0000)] 
Extra tests for the ota_rowid column.

FossilOrigin-Name: 46069393b3141ab198f0fcc4f6c05229f06bf1e8

11 years agoAllow the ota extension to write to tables with no PRIMARY KEY declaration.
dan [Sat, 6 Dec 2014 19:30:41 +0000 (19:30 +0000)] 
Allow the ota extension to write to tables with no PRIMARY KEY declaration.

FossilOrigin-Name: ba59a7e2ba97244492cbca9247456df0f3f19248

11 years agoAvoid accessing a single uninitialized byte when moving a rare 3-byte cell from an...
dan [Sat, 6 Dec 2014 14:56:49 +0000 (14:56 +0000)] 
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

11 years agoFix a (harmless) uninitialized variable reference in b-tree balancing for
drh [Sat, 6 Dec 2014 02:05:44 +0000 (02:05 +0000)] 
Fix a (harmless) uninitialized variable reference in b-tree balancing for
auto-vacuumed tables with overflow pages.

FossilOrigin-Name: dd1dd4451f468599f7a0c2f7b5ee6125db3bb152

11 years agoAvoid a potential NULL pointer deference in the sqlite3_stmt_scanstatus()
drh [Fri, 5 Dec 2014 21:18:19 +0000 (21:18 +0000)] 
Avoid a potential NULL pointer deference in the sqlite3_stmt_scanstatus()
logic.

FossilOrigin-Name: 42d44adc13d52b8dd571c9375eb48298123d5a60

11 years agoFix a buffer overread that might occur in analyze.c if SQLITE_ENABLE_STAT4 was defined.
dan [Fri, 5 Dec 2014 21:04:26 +0000 (21:04 +0000)] 
Fix a buffer overread that might occur in analyze.c if SQLITE_ENABLE_STAT4 was defined.

FossilOrigin-Name: c1ae1268b9023a771fda98f26bf451c6066fe70b

11 years agoAdd new test file e_walckpt.test. Still some tests to come.
dan [Fri, 5 Dec 2014 20:46:19 +0000 (20:46 +0000)] 
Add new test file e_walckpt.test. Still some tests to come.

FossilOrigin-Name: e4db3db3a65ecfd4069a40d436aa7a5512d61a30

11 years agoMerge the fix for the shared-cache KeyInfo cache bug from trunk.
drh [Fri, 5 Dec 2014 20:05:10 +0000 (20:05 +0000)] 
Merge the fix for the shared-cache KeyInfo cache bug from trunk.

FossilOrigin-Name: 5a73da6a3083926a3dafd28c0604122296dc9184

11 years agoMake sure the WhereTerm objects are fully zeroed when they are allocated.
drh [Fri, 5 Dec 2014 19:50:58 +0000 (19:50 +0000)] 
Make sure the WhereTerm objects are fully zeroed when they are allocated.

FossilOrigin-Name: fdb667335c2250239a66143aec4235325dec8274

11 years agoThe KeyInfo cache must be cleared before closing the btree, not after.
drh [Fri, 5 Dec 2014 15:31:33 +0000 (15:31 +0000)] 
The KeyInfo cache must be cleared before closing the btree, not after.
Revised fix for ticket [e4a18565a36884b00edf].

FossilOrigin-Name: 7ed3346e8c10dbf52fd44ab69900699d4f7ad3fd

11 years agoWhen closing a (shared-cache) database connection, be sure to clear out
drh [Fri, 5 Dec 2014 14:44:57 +0000 (14:44 +0000)] 
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

11 years agoImproved comment on the sharedB.test test script. fix-stale-keyinfo-cache
drh [Fri, 5 Dec 2014 14:34:30 +0000 (14:34 +0000)] 
Improved comment on the sharedB.test test script.

FossilOrigin-Name: 71f589e3f82a07513425e212072f32748c0732d4

11 years agoTest case demonstrating the problem described by
drh [Fri, 5 Dec 2014 14:07:53 +0000 (14:07 +0000)] 
Test case demonstrating the problem described by
ticket [e4a18565a36884b00edf].

FossilOrigin-Name: ffea3e905adc108d2dc37f5d6da2024f0389f176

11 years agoWhen closing a (shared-cache) database connection, be sure to clear out all
drh [Fri, 5 Dec 2014 05:38:02 +0000 (05:38 +0000)] 
When closing a (shared-cache) database connection, be sure to clear out all
KeyInfo objects cached on Index objects.
Proposed fix for ticket [e4a18565a36884b00edf].

FossilOrigin-Name: 651ed97de13234be60a1138a98b06d308449a791

11 years agoImport from trunk the fix the "test" target on the autoconf and MSVC makefiles
drh [Fri, 5 Dec 2014 00:41:17 +0000 (00:41 +0000)] 
Import from trunk the fix the "test" target on the autoconf and MSVC makefiles
and some minor compiler warning fixes.

FossilOrigin-Name: c9f20eb2fbba0868df85ebb98877f9bb969be8a4

11 years agoFix compiler warnings.
drh [Fri, 5 Dec 2014 00:32:09 +0000 (00:32 +0000)] 
Fix compiler warnings.

FossilOrigin-Name: e9955c0e14d13ba1411f013acb4979958dae2516

11 years agoFix the autoconf and MSVC makefiles, which have been broken for nearly a
drh [Fri, 5 Dec 2014 00:17:39 +0000 (00:17 +0000)] 
Fix the autoconf and MSVC makefiles, which have been broken for nearly a
month.  :-(

FossilOrigin-Name: 520c2b838da8b230487c8c66f3ba8e5daa1ca886

11 years agoIncorporate the SQLITE_CHECKPOINT_TRUNCATE enhancement and a couple of
drh [Thu, 4 Dec 2014 23:35:08 +0000 (23:35 +0000)] 
Incorporate the SQLITE_CHECKPOINT_TRUNCATE enhancement and a couple of
obscure bug fixes from trunk.

FossilOrigin-Name: 34ffa3b3c002b0e87d8382ad76e87dbaec0b2bc6

11 years agoMake sure that a DISTINCT query with an ORDER BY works correctly even if
drh [Thu, 4 Dec 2014 21:54:58 +0000 (21:54 +0000)] 
Make sure that a DISTINCT query with an ORDER BY works correctly even if
it uses a descending index.  Fix for ticket [c5ea805691bfc4204b1cb9e].

FossilOrigin-Name: 0d3aef97ebddf422b8bdcbc5878970c6129e3f54