]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
9 years agoFix a couple C99-isms in FTS5 that cause compile errors on MSVC.
mistachkin [Fri, 15 Jan 2016 05:39:55 +0000 (05:39 +0000)] 
Fix a couple C99-isms in FTS5 that cause compile errors on MSVC.

FossilOrigin-Name: 584848d4396d7755027fab377c97e40fbcc90d21

9 years agoCombine the xFunc and xStep pointers of the FuncDef object into a single
drh [Thu, 14 Jan 2016 22:19:58 +0000 (22:19 +0000)] 
Combine the xFunc and xStep pointers of the FuncDef object into a single
pointer xSFunc.

FossilOrigin-Name: 0d1b3d7d3ca66cb0b97493f1aeade1703af3c9f4

9 years agoAdd a test to verify that the fts3 and fts5 "unicode61" tokenizers are byte for byte...
dan [Thu, 14 Jan 2016 20:05:59 +0000 (20:05 +0000)] 
Add a test to verify that the fts3 and fts5 "unicode61" tokenizers are byte for byte compatible.

FossilOrigin-Name: 8ec8314354edc9d6f7d1c8a6370fd984a552a52f

9 years agoSimplification to the ISO8610 parser in the imnplementation of date/time
drh [Thu, 14 Jan 2016 19:32:46 +0000 (19:32 +0000)] 
Simplification to the ISO8610 parser in the imnplementation of date/time
functions.

FossilOrigin-Name: b9159f42a517a95ae52464c96431708c00b7bb36

9 years agoMinor adjustments to the MSVC makefile.
mistachkin [Thu, 14 Jan 2016 18:01:16 +0000 (18:01 +0000)] 
Minor adjustments to the MSVC makefile.

FossilOrigin-Name: e2cba1bbfdcb24e35b2275e29071d8a4e4943417

9 years agoYet another change to FTS5 trying to get it to merge successfully into sessions.
drh [Thu, 14 Jan 2016 14:33:36 +0000 (14:33 +0000)] 
Yet another change to FTS5 trying to get it to merge successfully into sessions.

FossilOrigin-Name: 8dedff3b9ac3e6bf9c131fee19f7d26dc1ebd61f

9 years agoFix more compiler warnings in FTS5.
drh [Thu, 14 Jan 2016 14:29:57 +0000 (14:29 +0000)] 
Fix more compiler warnings in FTS5.

FossilOrigin-Name: f791fc7009d68941c60d7bf953bab19d86112133

9 years agoFix another compiler warning in fts5 code.
dan [Thu, 14 Jan 2016 14:19:50 +0000 (14:19 +0000)] 
Fix another compiler warning in fts5 code.

FossilOrigin-Name: d17bc2c92f4d086280e49a3cc72993be7fee2da7

9 years agoFix compiler warnings in fts5.
dan [Thu, 14 Jan 2016 14:15:54 +0000 (14:15 +0000)] 
Fix compiler warnings in fts5.

FossilOrigin-Name: 5a343cc0336bba056df4449e6cd2e3fb9e75a105

9 years agoFix harmless compiler warnings in RBU and add RBU to the autoconf and windows
drh [Thu, 14 Jan 2016 13:22:24 +0000 (13:22 +0000)] 
Fix harmless compiler warnings in RBU and add RBU to the autoconf and windows
makefiles.

FossilOrigin-Name: fabe78c5d8ab353988f6fe0decacd651edc17ec2

9 years agoFix harmless compiler warnings in sqldiff.c.
drh [Thu, 14 Jan 2016 12:23:16 +0000 (12:23 +0000)] 
Fix harmless compiler warnings in sqldiff.c.

FossilOrigin-Name: 74808a79ea3194f6cc00084b9dccc380846a6051

9 years agoFix the build so that it works for SQLITE_OMIT_WAL again.
drh [Thu, 14 Jan 2016 01:56:43 +0000 (01:56 +0000)] 
Fix the build so that it works for SQLITE_OMIT_WAL again.

FossilOrigin-Name: d55a557bc70460c46a67ae5acd9f8a8356a580c2

9 years agoLook for pthread_mutexattr_init() instead of pthread_create() in autoconf
drh [Wed, 13 Jan 2016 21:23:48 +0000 (21:23 +0000)] 
Look for pthread_mutexattr_init() instead of pthread_create() in autoconf
scripts, to work around issues with ASAN.

FossilOrigin-Name: 9c3a0dc2e8bf202cd846841bd5d4ea67aa189c1a

9 years agoAdd documentation for new API functions to the comments in fts5.h.
dan [Wed, 13 Jan 2016 18:25:36 +0000 (18:25 +0000)] 
Add documentation for new API functions to the comments in fts5.h.

FossilOrigin-Name: 14d296fa7b43b4999a1fd070cf030f83fe1b94c3

9 years agoAdd the SQLITE_FCNTL_JOURNAL_POINTER file control.
drh [Wed, 13 Jan 2016 18:12:44 +0000 (18:12 +0000)] 
Add the SQLITE_FCNTL_JOURNAL_POINTER file control.

FossilOrigin-Name: ad3daa5427672d2d236939ad3285b765f4601801

9 years agoAdd documentation for the SQLITE_FCNTL_JOURNAL_POINTER file-control. file-control-journal
drh [Wed, 13 Jan 2016 18:06:08 +0000 (18:06 +0000)] 
Add documentation for the SQLITE_FCNTL_JOURNAL_POINTER file-control.

FossilOrigin-Name: 807c5aee2e5e5c01eb33688a199755c345c3664e

9 years agoWhen the [https://www.sqlite.org/queryplanner.html#partialsort|block sorting optimiza...
drh [Wed, 13 Jan 2016 17:50:10 +0000 (17:50 +0000)] 
When the [https://www.sqlite.org/queryplanner.html#partialsort|block sorting optimization]
is used in a scalar subquery, be sure to exit the loop as soon as the first
valid output row is received.  Fix for ticket [cb3aa0641d9a4].

FossilOrigin-Name: cdbb0947f9ce18d6d7e29ffab5ea6a2ee5365fbb

9 years agoAdd the "detail" option to fts5. Used to reduce the amount of information stored...
dan [Tue, 12 Jan 2016 19:45:01 +0000 (19:45 +0000)] 
Add the "detail" option to fts5. Used to reduce the amount of information stored in an fts5 index.

FossilOrigin-Name: a220e85fe535af5ef2da6ef5fb76abe5a96b5abf

9 years agoAdd the ".vfslist" command to the command-line shell.
drh [Tue, 12 Jan 2016 19:37:20 +0000 (19:37 +0000)] 
Add the ".vfslist" command to the command-line shell.

FossilOrigin-Name: 5727562b75edf25102cd72607c420d245379c96d

9 years agoImprove performance of fts5 low level iterators. fts5-offsets
dan [Tue, 12 Jan 2016 19:28:51 +0000 (19:28 +0000)] 
Improve performance of fts5 low level iterators.

FossilOrigin-Name: bc5118f40a11f64ffb4e1c086277fa80b9764745

9 years agoFix a harmless use of an uninitialized variable following system errors
drh [Tue, 12 Jan 2016 14:10:05 +0000 (14:10 +0000)] 
Fix a harmless use of an uninitialized variable following system errors
in the multi-threaded sorter.

FossilOrigin-Name: 4bb2c1df105c2d21f5c4c7ef656ff1d6e15f78bc

9 years agoRemove an unused field from the MemPage object.
drh [Tue, 12 Jan 2016 04:08:54 +0000 (04:08 +0000)] 
Remove an unused field from the MemPage object.

FossilOrigin-Name: 5fc0a4c1f353c4c06fcbc4bce8bbe1897ef49eee

9 years agoMake sure all bytes of the WAL file are initialized even if the checksums are
drh [Tue, 12 Jan 2016 02:28:19 +0000 (02:28 +0000)] 
Make sure all bytes of the WAL file are initialized even if the checksums are
not being computed until commit due to WAL overwrite.

FossilOrigin-Name: 1f44a9bdc1577aed088d9b91882527228015dcd3

9 years agoFix an uninitialized field in the Select object when SELECTTRACE is enabled.
drh [Tue, 12 Jan 2016 02:00:24 +0000 (02:00 +0000)] 
Fix an uninitialized field in the Select object when SELECTTRACE is enabled.

FossilOrigin-Name: fc62851667d9120f98a2641c87bbc5a2485482b2

9 years agoVarious #ifdef enhancements for improved VxWorks support.
drh [Tue, 12 Jan 2016 00:37:55 +0000 (00:37 +0000)] 
Various #ifdef enhancements for improved VxWorks support.

FossilOrigin-Name: 75cd41ff179e29c5d45f9d7fed784bc339e0d7a0

9 years agoPerformance optimization in the sqlite3VdbeChangeP4() routine of the
drh [Mon, 11 Jan 2016 22:58:50 +0000 (22:58 +0000)] 
Performance optimization in the sqlite3VdbeChangeP4() routine of the
code generator.

FossilOrigin-Name: 28bd8d5fc541464b69886b7e886939035b42a869

9 years agoFix duplicate test number in 'waloverwrite'.
mistachkin [Mon, 11 Jan 2016 22:43:04 +0000 (22:43 +0000)] 
Fix duplicate test number in 'waloverwrite'.

FossilOrigin-Name: f5fb82686697e5fa1937323b1c1b35cf90ad0302

9 years agoMerge trunk with this branch.
dan [Mon, 11 Jan 2016 18:30:34 +0000 (18:30 +0000)] 
Merge trunk with this branch.

FossilOrigin-Name: a73d245f2e523a57163bc93d9fb6a74c4cdf21e7

9 years agoAdd the fts5speed.tcl script to ext/fts5/tool/.
dan [Mon, 11 Jan 2016 18:23:07 +0000 (18:23 +0000)] 
Add the fts5speed.tcl script to ext/fts5/tool/.

FossilOrigin-Name: 2c0b93553ebb00a70c611eb8dac021877933f088

9 years agoPerformance optimization on the Column opcode.
drh [Mon, 11 Jan 2016 18:05:00 +0000 (18:05 +0000)] 
Performance optimization on the Column opcode.

FossilOrigin-Name: ecc98bef43c2fd07d64e4efddf340929a875ebac

9 years agoFix bugs in fts5 synonym processing for detail=col and other modes.
dan [Mon, 11 Jan 2016 17:30:28 +0000 (17:30 +0000)] 
Fix bugs in fts5 synonym processing for detail=col and other modes.

FossilOrigin-Name: 0e3c545423246231ddac8fed2f103d71d556e17f

9 years agoPerformance optimization in sqlite3WalkExpr().
drh [Mon, 11 Jan 2016 14:19:14 +0000 (14:19 +0000)] 
Performance optimization in sqlite3WalkExpr().

FossilOrigin-Name: 2f8bd5fab8cc51d1f8932c3490fd24dbccf6ef31

9 years agoIncrease the version number to 3.11.0 due to the WAL overwrite enhancement.
drh [Mon, 11 Jan 2016 12:52:55 +0000 (12:52 +0000)] 
Increase the version number to 3.11.0 due to the WAL overwrite enhancement.

FossilOrigin-Name: 8e807bfaa197027d0cb73532baa96755ce71ea12

9 years agoIf a single page is written to the wal file more than once, instead of appending...
dan [Mon, 11 Jan 2016 12:13:47 +0000 (12:13 +0000)] 
If a single page is written to the wal file more than once, instead of appending the second and subsequent copy to the wal file, overwrite the first.

FossilOrigin-Name: d493d4f1186c15da50558a13490cba0191e6f649

9 years agoAdd a test case to waloverwrite.test to check that savepoint rollback does not cause... wal-overwrite-frames
dan [Mon, 11 Jan 2016 08:12:40 +0000 (08:12 +0000)] 
Add a test case to waloverwrite.test to check that savepoint rollback does not cause a problem.

FossilOrigin-Name: 87dae56c322454094d445e474ae36a4f464272a4

9 years agoSlightly smaller and faster LIKE/GLOB comparison implementation.
drh [Mon, 11 Jan 2016 03:48:18 +0000 (03:48 +0000)] 
Slightly smaller and faster LIKE/GLOB comparison implementation.

FossilOrigin-Name: 5dddcc78eec5bcd0c7e8fe1b70875ce775488f0c

9 years agoImproved testability.
drh [Mon, 11 Jan 2016 00:52:32 +0000 (00:52 +0000)] 
Improved testability.

FossilOrigin-Name: e83d3a2a4e06665e8a056f63063bd6df03f063b9

9 years agoAll WAL frame overwrites even if there are active savepoints. This is safe
drh [Sat, 9 Jan 2016 23:55:47 +0000 (23:55 +0000)] 
All WAL frame overwrites even if there are active savepoints.  This is safe
because a ROLLBACK TO will cause all reverted pages to be rewritten to the
WAL file prior to COMMIT.

FossilOrigin-Name: 99b31a6b491c1c51227f478d3713b020d37a17cf

9 years agoIf it is known that checksums will be recalculated on transaction commit, skip calcul...
dan [Sat, 9 Jan 2016 18:57:35 +0000 (18:57 +0000)] 
If it is known that checksums will be recalculated on transaction commit, skip calculating checksums when appending frames to the wal file. When recalculating checksums, recalculate them starting with the first overwritten frame - not the first frame in the transaction.

FossilOrigin-Name: 16b34f2537bbc7846d8e6dc2b35daae5af241c1b

9 years agoIf a single page is written to the wal file more than once, have each subsequent...
dan [Sat, 9 Jan 2016 16:39:29 +0000 (16:39 +0000)] 
If a single page is written to the wal file more than once, have each subsequent copy overwrite the original frame.

FossilOrigin-Name: 5d113aef2c7d746e8eda88d4e36c04a39b0a11be

9 years agoTypo fix in the previous commit.
drh [Fri, 8 Jan 2016 22:31:00 +0000 (22:31 +0000)] 
Typo fix in the previous commit.

FossilOrigin-Name: 52c166039831cc8423e2252019ef64a21b9d7c2a

9 years agoMore #ifdef fixes for the unix VFS.
drh [Fri, 8 Jan 2016 22:18:00 +0000 (22:18 +0000)] 
More #ifdef fixes for the unix VFS.

FossilOrigin-Name: 122c111e360761de8166e16ca151cb7260ee9bf8

9 years agoFix the build for SQLITE_OMIT_SHARED_CACHE, which was broken, possibly
drh [Fri, 8 Jan 2016 19:34:39 +0000 (19:34 +0000)] 
Fix the build for SQLITE_OMIT_SHARED_CACHE, which was broken, possibly
by check-in [2d96aeba].

FossilOrigin-Name: 3392f8fa2ddf2c10ffe91ddd92470040c909b36d

9 years agoFix a problem with #ifdefs on the system calls in the unix VFS that causes
drh [Fri, 8 Jan 2016 19:17:30 +0000 (19:17 +0000)] 
Fix a problem with #ifdefs on the system calls in the unix VFS that causes
problems when compiling with SQLITE_OMIT_WAL.

FossilOrigin-Name: ceceea4c5ee242b20ebf216593c15c11ce2c369a

9 years agoRemove an obsolete #ifdef related to iOS support.
drh [Fri, 8 Jan 2016 17:28:24 +0000 (17:28 +0000)] 
Remove an obsolete #ifdef related to iOS support.

FossilOrigin-Name: e9a51d2a580daa0fb152fe4c891149caa8025b9d

9 years agoBegin adding fts5 tests involving synonyms and detail=none/col tables.
dan [Fri, 8 Jan 2016 17:21:18 +0000 (17:21 +0000)] 
Begin adding fts5 tests involving synonyms and detail=none/col tables.

FossilOrigin-Name: b3e6f15ec2d9a834e2c80b91ffd7097553816228

9 years agoReduce the number of calls to memset() in sqlite3DbMallocZero().
drh [Fri, 8 Jan 2016 12:46:39 +0000 (12:46 +0000)] 
Reduce the number of calls to memset() in sqlite3DbMallocZero().

FossilOrigin-Name: cede2bf8e42ac140a8cc75a1d173083f543ba467

9 years agoFix test file vtabH.test so that it works with SQLITE_ENABLE_ICU builds.
dan [Fri, 8 Jan 2016 08:35:14 +0000 (08:35 +0000)] 
Fix test file vtabH.test so that it works with SQLITE_ENABLE_ICU builds.

FossilOrigin-Name: 19c1f4483e3df7fa1e9ac7c8a510fa1c906ac7c7

9 years agoFix fts5vocab.test so that it works with detail=none tables.
dan [Fri, 8 Jan 2016 07:53:09 +0000 (07:53 +0000)] 
Fix fts5vocab.test so that it works with detail=none tables.

FossilOrigin-Name: d9135cc723fc4227aace6dcf4ffa4630c9d23aa0

9 years agoAdd the experimental SQLITE_FCNTL_JOURNAL_POINTER file control for obtaining
drh [Fri, 8 Jan 2016 02:27:01 +0000 (02:27 +0000)] 
Add the experimental SQLITE_FCNTL_JOURNAL_POINTER file control for obtaining
the sqlite3_file pointer associated with a rollback journal or WAL file.

FossilOrigin-Name: a02ace9a746ff02fc1a5969bf13939b568624f93

9 years agoOmit performance tracking from the memsys5 memory allocator if neither
drh [Thu, 7 Jan 2016 21:12:40 +0000 (21:12 +0000)] 
Omit performance tracking from the memsys5 memory allocator if neither
SQLITE_DEBUG nor SQLITE_TEST are defined.

FossilOrigin-Name: af5c7714e993f060841f1e893f754ddf3870e6d0

9 years agoUpdate the fts5vocab module to work with detail=col and detail=none tables.
dan [Thu, 7 Jan 2016 20:07:41 +0000 (20:07 +0000)] 
Update the fts5vocab module to work with detail=col and detail=none tables.

FossilOrigin-Name: eedd095dc1c81ce45df00093ba237dd7b3cdff3d

9 years agoFix to cause BtShared.db to be set correctly on shared-cache
drh [Thu, 7 Jan 2016 17:19:24 +0000 (17:19 +0000)] 
Fix to cause BtShared.db to be set correctly on shared-cache
connections in SQLITE_THREADSAFE=0 builds.  Added assert()s to verify
the correct setting of BtShared.db.

FossilOrigin-Name: 2d96aeba2460779a0a20356739a0ba49144c8a85

9 years agoSmall performance and size optimization spotted while working on the
drh [Thu, 7 Jan 2016 17:09:43 +0000 (17:09 +0000)] 
Small performance and size optimization spotted while working on the
shared-cache problem.

FossilOrigin-Name: 828958ff77a5c239d55302f570077835c093e0fa

9 years agoAdd some assert() statements to verify, where possible, that BtShared.db is set corre... shared-cache-fix
dan [Thu, 7 Jan 2016 16:43:54 +0000 (16:43 +0000)] 
Add some assert() statements to verify, where possible, that BtShared.db is set correctly.

FossilOrigin-Name: 359277e0e5338f6d7743d58cf99e1c934a8460d5

9 years agoHave the vdbe layer call sqlite3BtreeEnter() on all b-trees in use from within sqlite...
dan [Thu, 7 Jan 2016 16:06:22 +0000 (16:06 +0000)] 
Have the vdbe layer call sqlite3BtreeEnter() on all b-trees in use from within sqlite3VdbeExec() even in SQLITE_THREADSAFE=0 builds. This ensures that BtShared.db is set correctly.

FossilOrigin-Name: d0214602d44d6b84b7463d530720e2560aee6edf

9 years agoAdd the "sqlite3 -sourceid" command in the TCL interface. Use that command and
drh [Thu, 7 Jan 2016 02:06:55 +0000 (02:06 +0000)] 
Add the "sqlite3 -sourceid" command in the TCL interface.  Use that command and
others to output additional information about the test configuration at the
conclusion of a TCL test.

FossilOrigin-Name: 4f80440bf566959306f6ca8cbb1fd29d138ee38b

9 years agoFix a test script problem caused by a change in constraint handling within the core.
dan [Wed, 6 Jan 2016 19:43:26 +0000 (19:43 +0000)] 
Fix a test script problem caused by a change in constraint handling within the core.

FossilOrigin-Name: 625695b3d7d4eae7536b5f761b96cd7519ac6ada

9 years agoMerge latest trunk changes into this branch.
dan [Wed, 6 Jan 2016 19:35:52 +0000 (19:35 +0000)] 
Merge latest trunk changes into this branch.

FossilOrigin-Name: e7dcd013516723941c2fb78ecdc96806d49d310b

9 years agoFix an fts5 problem involving detail=none, "ORDER BY rowid DESC" and deleted items...
dan [Wed, 6 Jan 2016 18:53:57 +0000 (18:53 +0000)] 
Fix an fts5 problem involving detail=none, "ORDER BY rowid DESC" and deleted items. Also add tests to verify that the documented operator precedences are correct.

FossilOrigin-Name: 8d05cfd48db1462dfd3efd502d53bd33214403fb

9 years agoDisable the --limit-mem option on fuzzcheck unless the SQLITE_ENABLE_MEMSYS5 or
drh [Wed, 6 Jan 2016 15:54:53 +0000 (15:54 +0000)] 
Disable the --limit-mem option on fuzzcheck unless the SQLITE_ENABLE_MEMSYS5 or
SQLITE_ENABLE_MEMSYS3 compile-time options are used.

FossilOrigin-Name: 55a11fd627eaf046b3783622b2925399a50a65b4

9 years agoVersion 3.10.0 version-3.10.0
drh [Wed, 6 Jan 2016 11:01:07 +0000 (11:01 +0000)] 
Version 3.10.0

FossilOrigin-Name: fd0a50f0797d154fefff724624f00548b5320566

9 years agoFix a problem with the xPhraseFirstColumn() API in detail=col mode. Remove some unuse...
dan [Wed, 6 Jan 2016 10:17:26 +0000 (10:17 +0000)] 
Fix a problem with the xPhraseFirstColumn() API in detail=col mode. Remove some unused test code from fts5ac.test.

FossilOrigin-Name: a4e55f73b3c81e28b917395089c0201f9a2c9178

9 years agoRationalize and extend some fts5 test code. Fix bugs revealed by the same.
dan [Tue, 5 Jan 2016 21:04:35 +0000 (21:04 +0000)] 
Rationalize and extend some fts5 test code. Fix bugs revealed by the same.

FossilOrigin-Name: fd217fdb396cf22278a496de0e9dec7902ba8b1f

9 years agoAlways use -DSQLITE_ENABLE_MEMSYS5 for fuzzcheck so that the --limit-mem
drh [Tue, 5 Jan 2016 03:39:52 +0000 (03:39 +0000)] 
Always use -DSQLITE_ENABLE_MEMSYS5 for fuzzcheck so that the --limit-mem
option will work.

FossilOrigin-Name: a855697719e288c908ddb7950d32fd17ef546509

9 years agoAnother attempt to get reuse of excess opcode array space working correctly
drh [Tue, 5 Jan 2016 03:39:25 +0000 (03:39 +0000)] 
Another attempt to get reuse of excess opcode array space working correctly
on all architectures and platforms.

FossilOrigin-Name: 2f8583748abab1e15029d3a8693ba9a66c978c2b

9 years agoPermit the 'test_fs' test module to be compiled and used on MinGW.
mistachkin [Tue, 5 Jan 2016 01:48:29 +0000 (01:48 +0000)] 
Permit the 'test_fs' test module to be compiled and used on MinGW.

FossilOrigin-Name: ac27f38eef7a241d56124c263d9f8c91f372a77f

9 years agoFix a corner case in the opcode-array reuse logic where the number of bytes of
drh [Mon, 4 Jan 2016 23:43:47 +0000 (23:43 +0000)] 
Fix a corner case in the opcode-array reuse logic where the number of bytes of
reusable space might be computed to be a negative number, due to unusual
system alignment restrictions and rounding error.

FossilOrigin-Name: 1aa530144643582658c8c1dd66548662f950efe3

9 years agoFix an OOM handling problem in fts5 detail=none and detail=col modes. Also a bug...
dan [Mon, 4 Jan 2016 19:12:00 +0000 (19:12 +0000)] 
Fix an OOM handling problem in fts5 detail=none and detail=col modes. Also a bug in the xInst() API when used with detail=col and column filtering expressions. Update the matchinfo() test function so that 'b' is fast with detail=col tables.

FossilOrigin-Name: ee38f9dff5e9239c541515cd8a1aa3d81fdc0ae9

9 years agoUpdate more fts5 tests to run in detail=none and detail=column modes as well as the...
dan [Mon, 4 Jan 2016 16:19:51 +0000 (16:19 +0000)] 
Update more fts5 tests to run in detail=none and detail=column modes as well as the default detail=full.

FossilOrigin-Name: 3fcf3b1e24483b2cd1c1710f053ed8403e09106d

9 years agoFix the conflict2.test module which was broken by check-in [e30062e9f6c].
drh [Mon, 4 Jan 2016 13:06:53 +0000 (13:06 +0000)] 
Fix the conflict2.test module which was broken by check-in [e30062e9f6c].

FossilOrigin-Name: b779ca8a7580e2a0bb1176316c4540867b635229

9 years agoA new approach to very large sqlite3_mprintf() strings: Back out the
drh [Mon, 4 Jan 2016 12:07:27 +0000 (12:07 +0000)] 
A new approach to very large sqlite3_mprintf() strings:  Back out the
[d655a665] check-in and instead make the size fields in StrAccum unsigned.
Strings generated by sqlite3_mprintf() can now be as large as 2^31-1 bytes.

FossilOrigin-Name: 7adb789f45698e5569b840d23f3f9488db3ed109

9 years agoImproved comment on the vtabH-3.1 test.
drh [Mon, 4 Jan 2016 04:44:31 +0000 (04:44 +0000)] 
Improved comment on the vtabH-3.1 test.

FossilOrigin-Name: 22abe08038cc7b66cbc25e733246d210197c9215

9 years agoAdjust the vtabH.test module to ignore files in the root directory of Windows
drh [Mon, 4 Jan 2016 04:41:13 +0000 (04:41 +0000)] 
Adjust the vtabH.test module to ignore files in the root directory of Windows
machines that contain the "$" character.

FossilOrigin-Name: 73e3355004b8b7ce2e1bb937725f429795528a4f

9 years agoLimit the length of sqlite3_mprintf() output to 2^30 bytes, even if
drh [Mon, 4 Jan 2016 04:28:11 +0000 (04:28 +0000)] 
Limit the length of sqlite3_mprintf() output to 2^30 bytes, even if
SQLITE_MAX_LENGTH is set larger at compile-time.

FossilOrigin-Name: d655a665acfae676d30e90e3731f483bee6acc63

9 years agoFix a harmless compiler warning.
drh [Mon, 4 Jan 2016 03:48:46 +0000 (03:48 +0000)] 
Fix a harmless compiler warning.

FossilOrigin-Name: 4b404a99aa9bfa6cfe8998f5dc1f84f8be20b840

9 years agoAdd releasetest.tcl cases for SQLITE_LIKE_DOESNT_MATCH_BLOB and
drh [Mon, 4 Jan 2016 01:08:50 +0000 (01:08 +0000)] 
Add releasetest.tcl cases for SQLITE_LIKE_DOESNT_MATCH_BLOB and
for SQLITE_ENABLE_CURSOR_HINTS.

FossilOrigin-Name: f300c35efa5f7383b2a74b1c9466c243c17815e4

9 years agoBug fix: the conflict resolution behavior for the implied NOT NULL constraint
drh [Sun, 3 Jan 2016 18:07:57 +0000 (18:07 +0000)] 
Bug fix: the conflict resolution behavior for the implied NOT NULL constraint
on the PRIMARY KEY of a WITHOUT ROWID table should be ABORT.

FossilOrigin-Name: e30062e9f6cae980150dda7df440b36dfdcb7bbe

9 years agoFix a premature reference to utf8_printf in shell.c.
drh [Sun, 3 Jan 2016 11:27:47 +0000 (11:27 +0000)] 
Fix a premature reference to utf8_printf in shell.c.

FossilOrigin-Name: 76f5efa68728d899a63a74f2528dfd0c497aa5f0

9 years agoAdd the number of cores used and the name of the host computer to the
drh [Sun, 3 Jan 2016 11:17:04 +0000 (11:17 +0000)] 
Add the number of cores used and the name of the host computer to the
summary at the end of releasetest.tcl.

FossilOrigin-Name: cd3ae0f14c6b28b328b208431d0effcb7b062ec6

9 years agoChanges to run many fts5 tests with detail=none and detail=col tables as well as...
dan [Sat, 2 Jan 2016 19:01:56 +0000 (19:01 +0000)] 
Changes to run many fts5 tests with detail=none and detail=col tables as well as the default detail=full. Also fixes for the bugs uncovered by running said tests.

FossilOrigin-Name: 6322a1d984e7946735bace8a069ef24b31754b3b

9 years agoFix a (harmless) typo in an #ifdef for SQLITE_ENABLE_CURSOR_HINTS
drh [Sat, 2 Jan 2016 05:00:31 +0000 (05:00 +0000)] 
Fix a (harmless) typo in an #ifdef for SQLITE_ENABLE_CURSOR_HINTS

FossilOrigin-Name: 2047d2deabf2021ea05d620c3dd4919448027b11

9 years agoRemember the size of the Vdbe.aOp[] array in bytes, to avoid unnecessary
drh [Fri, 1 Jan 2016 16:42:09 +0000 (16:42 +0000)] 
Remember the size of the Vdbe.aOp[] array in bytes, to avoid unnecessary
calls to sqlite3_msize().

FossilOrigin-Name: 3e852804c85a5c9f4c4ffafd55d03af6d19fe5cc

9 years agoAvoid misaligned memory allocations on Sparc in sqlite3VdbeMakeReady().
drh [Fri, 1 Jan 2016 16:26:22 +0000 (16:26 +0000)] 
Avoid misaligned memory allocations on Sparc in sqlite3VdbeMakeReady().

FossilOrigin-Name: a304e34675404aee860fcc97fa4ffcc57c014812

9 years agoFix an assert() that might be false for a corrupt database.
drh [Fri, 1 Jan 2016 03:37:44 +0000 (03:37 +0000)] 
Fix an assert() that might be false for a corrupt database.

FossilOrigin-Name: 68360cd2211b7ab25dd4ca55a2e82e31f51f2976

9 years agoRemove unreachable branches from the new JSON aggregate functions.
drh [Fri, 1 Jan 2016 00:15:59 +0000 (00:15 +0000)] 
Remove unreachable branches from the new JSON aggregate functions.

FossilOrigin-Name: 6e30f8c6c3af9b0df39783888a1479f88271f989

9 years agoFix the ieee754.test module so that it works both on systems that report
drh [Thu, 31 Dec 2015 22:29:36 +0000 (22:29 +0000)] 
Fix the ieee754.test module so that it works both on systems that report
infinity as "inf" and as "Inf".

FossilOrigin-Name: d41d4d7396fba60895535f21c438f8c75e7b2097

9 years agoIn the shell, use utf8_printf() when any string formatting is present and raw_printf...
mistachkin [Thu, 31 Dec 2015 19:06:24 +0000 (19:06 +0000)] 
In the shell, use utf8_printf() when any string formatting is present and raw_printf() otherwise.

FossilOrigin-Name: 8cf01fff232d15d3c7b7b62b2d890d983e1945f2

9 years agoFix harmless compiler warning seen with MSVC.
mistachkin [Thu, 31 Dec 2015 19:04:42 +0000 (19:04 +0000)] 
Fix harmless compiler warning seen with MSVC.

FossilOrigin-Name: 98ec778daac835d9ae103f6460b7d897981a5dd6

9 years agoFix the fts5 integrity-check code so that it works with detail=none tables.
dan [Thu, 31 Dec 2015 18:39:14 +0000 (18:39 +0000)] 
Fix the fts5 integrity-check code so that it works with detail=none tables.

FossilOrigin-Name: 3a1df69e58e5830da1dff158eedbe3817743f58f

9 years agoFix some problems with fts5 detail=none tables. Some still remain.
dan [Thu, 31 Dec 2015 17:36:58 +0000 (17:36 +0000)] 
Fix some problems with fts5 detail=none tables. Some still remain.

FossilOrigin-Name: 6a6f7bc40d6b4c8a4a254a9098c9d2f31fde69ca

9 years agoFix harmless compiler warnings associated with SQLITE_ENABLE_HIDDEN_COLUMNS.
drh [Thu, 31 Dec 2015 15:34:03 +0000 (15:34 +0000)] 
Fix harmless compiler warnings associated with SQLITE_ENABLE_HIDDEN_COLUMNS.

FossilOrigin-Name: 9c392c1019ee15f27c8e05b41246d2844f91f6c0

9 years agoSmall size and performance optimization to the VDBE comparison opcodes.
drh [Thu, 31 Dec 2015 04:34:26 +0000 (04:34 +0000)] 
Small size and performance optimization to the VDBE comparison opcodes.

FossilOrigin-Name: 7a0b9413fa94d3f4fa9751ddf9b213a1238954f1

9 years agoUpdates to fts5 to support detail=none mode. As of this commit, many cases are still...
dan [Wed, 30 Dec 2015 19:58:57 +0000 (19:58 +0000)] 
Updates to fts5 to support detail=none mode. As of this commit, many cases are still broken.

FossilOrigin-Name: ac8f4cf0cede6bcbe47eeefb85d80a27e9278212

9 years agoReduce the size of the CellInfo object from 32 to 24 bytes on 64-bit machines,
drh [Wed, 30 Dec 2015 18:18:46 +0000 (18:18 +0000)] 
Reduce the size of the CellInfo object from 32 to 24 bytes on 64-bit machines,
for a small performance increase and library size reduction.

FossilOrigin-Name: 6a4cfc7ab62046eb718ce59eff6b632f239312ac

9 years agoEnhance the command-line shell so that it can handle MBCS characters on
drh [Wed, 30 Dec 2015 17:03:40 +0000 (17:03 +0000)] 
Enhance the command-line shell so that it can handle MBCS characters on
input and output.

FossilOrigin-Name: 3d81dfe3bc5ca9588b7796769d9be7a182f38b1c

9 years agoChanges to the way that the default BINARY collating sequence is recorded
drh [Wed, 30 Dec 2015 16:51:20 +0000 (16:51 +0000)] 
Changes to the way that the default BINARY collating sequence is recorded
result in a slightly smaller and slightly faster executable.  More work could
be done to make this cleaner.

FossilOrigin-Name: 2081d75767dc590b4c8457e5f8e5f18ba5f8eaa7

9 years agoSimplification to the xfer-optimization logic.
drh [Wed, 30 Dec 2015 15:18:16 +0000 (15:18 +0000)] 
Simplification to the xfer-optimization logic.

FossilOrigin-Name: f35ba018da843897acca58f70541b940598bc271

9 years agoRemove unnecessary tests from the LIKE pattern matcher. Slightly faster and
drh [Wed, 30 Dec 2015 14:06:22 +0000 (14:06 +0000)] 
Remove unnecessary tests from the LIKE pattern matcher.  Slightly faster and
slightly smaller, and it should also now works with EBCDIC.

FossilOrigin-Name: 0a99a8c4facf65ec67d8d86108c9a3f723f7cbd6

9 years agoEnhance the command-line shell to handle MBCS characters on input and output. mbcs-shell
drh [Wed, 30 Dec 2015 13:36:57 +0000 (13:36 +0000)] 
Enhance the command-line shell to handle MBCS characters on input and output.

FossilOrigin-Name: a0a08b8c0bbd4d71955261f6b7e997701ca68e18