]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
11 years agoAdd an entry to sqlite3_compileoption_used() for
drh [Thu, 7 May 2015 20:26:20 +0000 (20:26 +0000)] 
Add an entry to sqlite3_compileoption_used() for
SQLITE_ENABLE_DBSTAT_VTAB.

FossilOrigin-Name: 480b4cb04212277ea07e230b6c13cb81a7b769b5

11 years agoChange to storing all keys in a single merge-tree structure instead of one main struc...
dan [Thu, 7 May 2015 19:29:46 +0000 (19:29 +0000)] 
Change to storing all keys in a single merge-tree structure instead of one main structure and a separate one for each prefix index. This is a file-format change. Also introduce a mechanism for managing file-format changes.

FossilOrigin-Name: a684b5e2d9d52cf4700e7e5f9dd547a2ba54e8e9

11 years agoTesting improvements and corner-case bug fixes for the dbstat virtual table.
drh [Thu, 7 May 2015 18:29:04 +0000 (18:29 +0000)] 
Testing improvements and corner-case bug fixes for the dbstat virtual table.

FossilOrigin-Name: d51ce539327b4807150b030a10bb105fa34cbc24

11 years agoEnhance the dbstat virtual table with the ability to analyze ATTACHed
drh [Thu, 7 May 2015 14:41:56 +0000 (14:41 +0000)] 
Enhance the dbstat virtual table with the ability to analyze ATTACHed
databases.

FossilOrigin-Name: 25ec09400b753fcb10a2aae57eb43dbf0548b7ca

11 years agoMerge in the 3.8.10 release changes.
drh [Thu, 7 May 2015 12:29:54 +0000 (12:29 +0000)] 
Merge in the 3.8.10 release changes.

FossilOrigin-Name: 0404ef885e47f0df1daa04feb28452beb4d32a35

11 years agoVersion 3.8.10 version-3.8.10
drh [Thu, 7 May 2015 11:53:08 +0000 (11:53 +0000)] 
Version 3.8.10

FossilOrigin-Name: cf975957b9ae671f34bb65f049acf351e650d437

11 years agoRemove a faulty assert() statement.
drh [Thu, 7 May 2015 00:09:29 +0000 (00:09 +0000)] 
Remove a faulty assert() statement.

FossilOrigin-Name: 5f2539da8cb9df99029ab4ab7023804722697673

11 years agoMerge latest trunk changes with this branch.
dan [Wed, 6 May 2015 18:15:28 +0000 (18:15 +0000)] 
Merge latest trunk changes with this branch.

FossilOrigin-Name: 8a13e1fdbe523f2ace6cbb5bcb22cd4441f3cbf8

11 years agoRemove some dead code from fts3_snippet.c.
dan [Wed, 6 May 2015 17:51:59 +0000 (17:51 +0000)] 
Remove some dead code from fts3_snippet.c.

FossilOrigin-Name: 46b2d3cef5c22a9e6bd0a4f8411f17b7ec72bd18

11 years agoMore optimization for the 'y' and 'b' matchinfo directives.
dan [Wed, 6 May 2015 17:41:19 +0000 (17:41 +0000)] 
More optimization for the 'y' and 'b' matchinfo directives.

FossilOrigin-Name: 8c5b9fedfcee3ac22a222819dceb981ad94a9903

11 years agoHave the autoconf package build the shell tool with SQLite linked in statically.
dan [Wed, 6 May 2015 14:18:58 +0000 (14:18 +0000)] 
Have the autoconf package build the shell tool with SQLite linked in statically.

FossilOrigin-Name: 31834c3aa7deeafee1163a67caf5f3197f07baf4

11 years agoFurther optimizations for the 'y' and 'b' matchinfo operators.
dan [Wed, 6 May 2015 08:43:26 +0000 (08:43 +0000)] 
Further optimizations for the 'y' and 'b' matchinfo operators.

FossilOrigin-Name: fbd038bb57322e1ed2e1ee52f3d134594b6bfcc0

11 years agoAdd the fts3 matchinfo 'b' flag.
dan [Tue, 5 May 2015 20:39:53 +0000 (20:39 +0000)] 
Add the fts3 matchinfo 'b' flag.

FossilOrigin-Name: b9b77972d88171e4239b8194f308eb5d60b5d172

11 years agoOptimizations for the matchinfo() function, particularly the 'y' flag.
dan [Tue, 5 May 2015 19:37:07 +0000 (19:37 +0000)] 
Optimizations for the matchinfo() function, particularly the 'y' flag.

FossilOrigin-Name: dddd7e182943a1d3a9d32830e819a63f1a228d6d

11 years agoRemove four lines of superfluous code identified by clang scan-build.
drh [Tue, 5 May 2015 18:52:54 +0000 (18:52 +0000)] 
Remove four lines of superfluous code identified by clang scan-build.

FossilOrigin-Name: 04afa3febee32854fbb09ef8d4ffffd432119716

11 years agoMerge all trunk enhancements and fixes into the sessions branch.
drh [Tue, 5 May 2015 17:12:27 +0000 (17:12 +0000)] 
Merge all trunk enhancements and fixes into the sessions branch.

FossilOrigin-Name: de7083cfe2bb00b689bec6bcc75e994f564ceda6

11 years agoFix a minor coding inefficiency found during pre-release inspection.
drh [Tue, 5 May 2015 16:57:52 +0000 (16:57 +0000)] 
Fix a minor coding inefficiency found during pre-release inspection.

FossilOrigin-Name: cc50883d67334507227e1384fef6cc7c93fd7de1

11 years agoAdd #ifdef statements to test_blob.c so that it will build
drh [Tue, 5 May 2015 11:08:02 +0000 (11:08 +0000)] 
Add #ifdef statements to test_blob.c so that it will build
with SQLITE_OMIT_INCRBLOB.

FossilOrigin-Name: b8f090e65d010c62df335d0520a36a24904e8bc6

11 years agoSpell SQLITE_OMIT_VIRTUALTABLE correctly in a #if in dbstat.c.
drh [Tue, 5 May 2015 10:46:02 +0000 (10:46 +0000)] 
Spell SQLITE_OMIT_VIRTUALTABLE correctly in a #if in dbstat.c.

FossilOrigin-Name: d2cb1becc07fad5cbd48c206c676493ba90cada1

11 years agoFix a faulty assert() in the btree part of the "PRAGMA page_size = ?" code.
dan [Tue, 5 May 2015 10:03:08 +0000 (10:03 +0000)] 
Fix a faulty assert() in the btree part of the "PRAGMA page_size = ?" code.

FossilOrigin-Name: 90b197489a37e01dcb2f3a8182848c1301e1757b

11 years agoFix a problem in Makefile.in that only comes up on Windows with MinGW.
drh [Tue, 5 May 2015 01:09:06 +0000 (01:09 +0000)] 
Fix a problem in Makefile.in that only comes up on Windows with MinGW.

FossilOrigin-Name: 5f3cd68b3e3ac9957059c7076e95c5c4e8238f51

11 years agoFix #ifdef problem in tclsqlite.c.
drh [Tue, 5 May 2015 00:48:23 +0000 (00:48 +0000)] 
Fix #ifdef problem in tclsqlite.c.

FossilOrigin-Name: fe723bb5d5fa9522411c06dcee8bf1a8fd210db3

11 years agoAutomatically enable the dbstat virtual table on all new database
drh [Mon, 4 May 2015 20:25:05 +0000 (20:25 +0000)] 
Automatically enable the dbstat virtual table on all new database
connections with the SQLITE_ENABLE_DBSTAT_VTAB compile-time option is used.

FossilOrigin-Name: 1c9c6eaa9f75fd7b90fbf8b057656fd9e50b5060

11 years agoIn the command-line shell, and the ".binary" command and additional
drh [Mon, 4 May 2015 19:13:25 +0000 (19:13 +0000)] 
In the command-line shell, and the ".binary" command and additional
C-style backslash escapes.

FossilOrigin-Name: 850c11866686a7b39d7b163fb60898c11283688e

11 years agoAdd the "dbstat" virtual table as a standard component in the SQLite
drh [Mon, 4 May 2015 19:06:09 +0000 (19:06 +0000)] 
Add the "dbstat" virtual table as a standard component in the SQLite
amalgamation, though turned off unless compiled with SQLITE_ENABLE_DBSTAT_VTAB.

FossilOrigin-Name: e7529705903a9d4d410801658a47fb43a4f2de2f

11 years agoRename the test_stat.c source file to dbstat.c and rework the makefiles to dbstat-in-amalgamation
drh [Mon, 4 May 2015 18:31:09 +0000 (18:31 +0000)] 
Rename the test_stat.c source file to dbstat.c and rework the makefiles to
make dbstat.c a first-class source module.

FossilOrigin-Name: a24480a474993f82ff58edbe12d2093c59b1a2dc

11 years agoInclude the "dbstat" virtual table in the amalgamation.
drh [Mon, 4 May 2015 17:06:39 +0000 (17:06 +0000)] 
Include the "dbstat" virtual table in the amalgamation.

FossilOrigin-Name: fc6504aa8ca19b3737f72c1e20db8df6b7608dd2

11 years agoFix a faulty assert() in the SELECT code generator and add a test case
drh [Mon, 4 May 2015 16:09:34 +0000 (16:09 +0000)] 
Fix a faulty assert() in the SELECT code generator and add a test case
to prevent regression.

FossilOrigin-Name: 1421c8ffba179d6aafa2643012f80a2738779117

11 years agoFix a bug in --changeset output for sqldiff.exe for floating-point values.
drh [Mon, 4 May 2015 15:04:47 +0000 (15:04 +0000)] 
Fix a bug in --changeset output for sqldiff.exe for floating-point values.
Also fix harmless compiler warnings in sqldiff.exe.

FossilOrigin-Name: 9f428530f9a6cb54f0a2fc3e666c38c7c093558a

11 years agoAdd the --lib option to the sqldiff.exe command-line utility.
drh [Mon, 4 May 2015 13:25:56 +0000 (13:25 +0000)] 
Add the --lib option to the sqldiff.exe command-line utility.

FossilOrigin-Name: a117e8f6bd60ed7f6e4cdcd2ee8d624fe040f7ab

11 years agoAdd the 'y' flag to the fts3/4 matchinfo() function.
dan [Mon, 4 May 2015 12:29:50 +0000 (12:29 +0000)] 
Add the 'y' flag to the fts3/4 matchinfo() function.

FossilOrigin-Name: aef1e8f47123e2e865432a0abf194dea4f23447a

11 years agoReorganize some of the fts5 expression parsing code. Improve test coverage of the...
dan [Sat, 2 May 2015 20:35:24 +0000 (20:35 +0000)] 
Reorganize some of the fts5 expression parsing code. Improve test coverage of the same.

FossilOrigin-Name: c4456dc5f5f8f45f04e3bbae53b6bcc209fc27d5

11 years agoImprovements to fuzzershell: Avoid excess memory allocations when loading
drh [Sat, 2 May 2015 19:54:35 +0000 (19:54 +0000)] 
Improvements to fuzzershell: Avoid excess memory allocations when loading
many files.  Show the total runtime on final output.  Show individual filenames
as they are processed even if they are single test-case files.

FossilOrigin-Name: 34a722a2f3331c35211526c9ec055d4d9175c965

11 years agoAdd the ".limit" command to the command-line shell.
drh [Sat, 2 May 2015 17:40:23 +0000 (17:40 +0000)] 
Add the ".limit" command to the command-line shell.

FossilOrigin-Name: 803cb60e75e0b09a526eefec11139cb3e8ae8c7c

11 years agoReorganize some multi-threaded code in vdbesort.c so that full MC/DC test coverage...
dan [Sat, 2 May 2015 12:40:12 +0000 (12:40 +0000)] 
Reorganize some multi-threaded code in vdbesort.c so that full MC/DC test coverage does not depend on the outcome of a race condition.

FossilOrigin-Name: 78c7ec95931265b89a92f6a799fc9b1a9f0476bf

11 years agoCleanup of the sqlite3StrAccumInit() function. No functionality changes.
drh [Sat, 2 May 2015 11:45:53 +0000 (11:45 +0000)] 
Cleanup of the sqlite3StrAccumInit() function.  No functionality changes.

FossilOrigin-Name: 7952c32268aa650d9ee946d5bfe190f712e3bbe6

11 years agoAdd the experimental matchinfo 'y' flag to fts3/4.
dan [Sat, 2 May 2015 09:44:15 +0000 (09:44 +0000)] 
Add the experimental matchinfo 'y' flag to fts3/4.

FossilOrigin-Name: 92941609af74044b3078e020324a37b04a0638b0

11 years agoFurther improvements to test coverage of fts5 code.
dan [Fri, 1 May 2015 20:38:57 +0000 (20:38 +0000)] 
Further improvements to test coverage of fts5 code.

FossilOrigin-Name: d4331943dff259380c4025bb740d8aba6972d351

11 years agoEnhance the fuzzershell --uniquecases option to output results in order of
drh [Fri, 1 May 2015 20:34:47 +0000 (20:34 +0000)] 
Enhance the fuzzershell --uniquecases option to output results in order of
increasing runtime and to include the runtime in the comment separator of
the output.

FossilOrigin-Name: 04630b989d8794b9ed2553f4d223de2b322437c5

11 years agoEnhance fuzzershell to accept multiple input files. Add the test/fuzzdata2.txt
drh [Fri, 1 May 2015 19:21:12 +0000 (19:21 +0000)] 
Enhance fuzzershell to accept multiple input files.  Add the test/fuzzdata2.txt
fuzz test content.

FossilOrigin-Name: ab5523aafe4817232388d28ea99be0953e7dccf3

11 years agoFix an assert in RTREE that would fire if the rtree table is misdeclared.
drh [Fri, 1 May 2015 18:00:37 +0000 (18:00 +0000)] 
Fix an assert in RTREE that would fire if the rtree table is misdeclared.

FossilOrigin-Name: 9a45409cc4078f2b6e68aa777f6ab86a14309833

11 years agoFix an assert() failure caused by setting "PRAGMA journal_mode=off" on an database...
dan [Fri, 1 May 2015 16:57:24 +0000 (16:57 +0000)] 
Fix an assert() failure caused by setting "PRAGMA journal_mode=off" on an database in exclusive-mode that has already opened the journal file.

FossilOrigin-Name: 40db3e40126db1035fcc12989026915744dc5651

11 years agoRemove obselete comment text from the description of the Table object.
drh [Fri, 1 May 2015 15:25:51 +0000 (15:25 +0000)] 
Remove obselete comment text from the description of the Table object.
No changes to code.

FossilOrigin-Name: 6566b72a9c68b347d126189b376f52ffd56edfba

11 years agoUse the sqlite3Fts3ErrMsg() function to set error message text in FTS3,
drh [Fri, 1 May 2015 14:07:30 +0000 (14:07 +0000)] 
Use the sqlite3Fts3ErrMsg() function to set error message text in FTS3,
and to ensure that error messages are not overwritten and thus leaked.

FossilOrigin-Name: 605347e087ec5eb817f3c94f4616abe26c7ab66b

11 years agoImprove test coverage of fts5.c.
dan [Fri, 1 May 2015 12:14:23 +0000 (12:14 +0000)] 
Improve test coverage of fts5.c.

FossilOrigin-Name: add4f4681c648dcbecaa68d08f7b2f4e6d63003c

11 years agoEnhance the CLI to initialize the dbstat virtual table if compiled using
drh [Thu, 30 Apr 2015 20:35:33 +0000 (20:35 +0000)] 
Enhance the CLI to initialize the dbstat virtual table if compiled using
SQLITE_ENABLE_STAT_VTAB.

FossilOrigin-Name: 822dfc00173dad7703aa6413bb94f72f0da8e2c6

11 years agoFix a harmless comment typo.
drh [Thu, 30 Apr 2015 20:33:25 +0000 (20:33 +0000)] 
Fix a harmless comment typo.

FossilOrigin-Name: 012a0c4e8485b1c2206ecff1946bf036bae04f3c

11 years agoAvoid dropping an error code in test function sqlite3_dbstat_register().
dan [Thu, 30 Apr 2015 20:26:53 +0000 (20:26 +0000)] 
Avoid dropping an error code in test function sqlite3_dbstat_register().

FossilOrigin-Name: 9a9f633f035fc3f6484b2d8eeed937374f4558c4

11 years agoModify the mkfuzzdata1.tcl script so that it retains the culled test vectors
drh [Thu, 30 Apr 2015 13:06:15 +0000 (13:06 +0000)] 
Modify the mkfuzzdata1.tcl script so that it retains the culled test vectors
in the tmp2 subdirectory.

FossilOrigin-Name: 431a958f3b605ef059119eaedd69796e14bec291

11 years agoFix signed/unsigned comparison compiler warnings. Add the
drh [Thu, 30 Apr 2015 12:31:49 +0000 (12:31 +0000)] 
Fix signed/unsigned comparison compiler warnings.  Add the
SQLITE_OMIT_RANDOMNESS compile-time option to cause the PRNG to be seeded
identically on every run, for testing purposes.

FossilOrigin-Name: 93ce2bca701efc67aeb517c4d641bde71332e8a0

11 years agoImprove fts5 tests.
dan [Wed, 29 Apr 2015 20:54:08 +0000 (20:54 +0000)] 
Improve fts5 tests.

FossilOrigin-Name: c1f07a3aa98eac87e2747527d15e5e5562221ceb

11 years agoUse sqlite3_malloc64() in place of sqlite3_malloc() internally.
drh [Wed, 29 Apr 2015 16:50:28 +0000 (16:50 +0000)] 
Use sqlite3_malloc64() in place of sqlite3_malloc() internally.

FossilOrigin-Name: 48f553b05c05373c0af4b9c3a542979db3a2ee19

11 years agoImproved support for OSTRACE on Windows.
drh [Wed, 29 Apr 2015 00:35:07 +0000 (00:35 +0000)] 
Improved support for OSTRACE on Windows.

FossilOrigin-Name: ca43812bde499a23244e2860d3ceddc97d29f09e

11 years agoRevise when the sqlite3ErrName() function is defined. winTest
mistachkin [Tue, 28 Apr 2015 23:34:10 +0000 (23:34 +0000)] 
Revise when the sqlite3ErrName() function is defined.

FossilOrigin-Name: 9e593fb3dbc58e86f499ba4399530e3e760eb84d

11 years agoFix an fts5 bug in handling writes while there are active cursors.
dan [Tue, 28 Apr 2015 20:24:50 +0000 (20:24 +0000)] 
Fix an fts5 bug in handling writes while there are active cursors.

FossilOrigin-Name: 07f70955392697556ca2951c9b6c3a5204cd5ec0

11 years agoImprove coverage of fts5 tests.
dan [Tue, 28 Apr 2015 18:35:28 +0000 (18:35 +0000)] 
Improve coverage of fts5 tests.

FossilOrigin-Name: 8e8136f2dc08082c2984462719d9cba0f212c92a

11 years agoUpdate the test/fuzzdata1.txt file with the latest cases discovered by AFL.
drh [Tue, 28 Apr 2015 14:49:41 +0000 (14:49 +0000)] 
Update the test/fuzzdata1.txt file with the latest cases discovered by AFL.

FossilOrigin-Name: f2063f5320f5a5d884f9c931eb91b7cc94945b92

11 years agoFix an assert() failure that could occur if the internal sqlite3_rename_parent()...
dan [Tue, 28 Apr 2015 14:07:02 +0000 (14:07 +0000)] 
Fix an assert() failure that could occur if the internal sqlite3_rename_parent() SQL scalar function was invoked directly.

FossilOrigin-Name: 36e515261825be60ffdc73d13340d77cf377e8e1

11 years agoFix sqlite3VdbeMakeWritable() to always clear the MEM_Ephem flag.
drh [Tue, 28 Apr 2015 14:00:02 +0000 (14:00 +0000)] 
Fix sqlite3VdbeMakeWritable() to always clear the MEM_Ephem flag.
Change the OP_Move opcode to always deephemeralize moved content.

FossilOrigin-Name: fbb06727181eac1470b2dd458d2d159146439d21

11 years agoShift the Mem.pScopyFrom pointer in the correct direction in OP_Move.
drh [Tue, 28 Apr 2015 12:44:55 +0000 (12:44 +0000)] 
Shift the Mem.pScopyFrom pointer in the correct direction in OP_Move.
Fix for a defective check-in [a2135ad13049] and ticket [d6352363751].
Debugging code only - does not affect normal operation.

FossilOrigin-Name: add4e043b35f9c454dea7b888eef1c1e14d791f1

11 years agoAdd code to the shell to optionally initialize the dbstat virtual table. stat-vtab-in-shell
drh [Tue, 28 Apr 2015 12:27:22 +0000 (12:27 +0000)] 
Add code to the shell to optionally initialize the dbstat virtual table.

FossilOrigin-Name: 7ed86dd3b85ee092a19fe5d1e2fba39ce0166a2a

11 years agoFix comment typos. No code changes.
drh [Tue, 28 Apr 2015 01:28:36 +0000 (01:28 +0000)] 
Fix comment typos.  No code changes.

FossilOrigin-Name: 60174cf572f8788e67a0434d5fe763724d7425a3

11 years agoAdd a TCL script that can be run to generate the fuzzdata1.txt file.
drh [Tue, 28 Apr 2015 00:53:26 +0000 (00:53 +0000)] 
Add a TCL script that can be run to generate the fuzzdata1.txt file.

FossilOrigin-Name: fdc79fd14af8e05d1d5b4665303715b391f2e402

11 years agoAdd fault-injection tests for the code in test_stat.c.
dan [Mon, 27 Apr 2015 19:53:55 +0000 (19:53 +0000)] 
Add fault-injection tests for the code in test_stat.c.

FossilOrigin-Name: ea5e0b74c997492025225cd86e65e8a8c86ca4a0

11 years agoChange the fts5 content= option so that it matches fts5 columns with the underlying...
dan [Mon, 27 Apr 2015 16:21:49 +0000 (16:21 +0000)] 
Change the fts5 content= option so that it matches fts5 columns with the underlying table columns by name, not by their position within the CREATE TABLE statement.

FossilOrigin-Name: e38e2bb637844dae8ae5d5f3e23d8369e1b91e45

11 years agoUpdate the fuzzer test data after having run it through afl-cmin to remove
drh [Mon, 27 Apr 2015 15:08:53 +0000 (15:08 +0000)] 
Update the fuzzer test data after having run it through afl-cmin to remove
redundant test cases.

FossilOrigin-Name: 8134d41b964428b3af022735bce9d07c6ad28b21

11 years agoFurther tests for fts5.
dan [Mon, 27 Apr 2015 11:31:56 +0000 (11:31 +0000)] 
Further tests for fts5.

FossilOrigin-Name: ffeb3ef3cfec3681b72bb28cfa612aa15e07887d

11 years agoImprove coverage of fts5_index.c slightly.
dan [Sat, 25 Apr 2015 20:29:46 +0000 (20:29 +0000)] 
Improve coverage of fts5_index.c slightly.

FossilOrigin-Name: e5aaa01306597ffd2475dcb83ae889393f68d315

11 years agoAdd tests for fts5.
dan [Sat, 25 Apr 2015 18:56:48 +0000 (18:56 +0000)] 
Add tests for fts5.

FossilOrigin-Name: e748651c940eae2389fe826cf5c25f1166a5e611

11 years agoFix compiler warnings in sqldiff.
drh [Sat, 25 Apr 2015 18:39:21 +0000 (18:39 +0000)] 
Fix compiler warnings in sqldiff.

FossilOrigin-Name: 5f48d6f6c0a573ecc5bd42cb6c019288e22d295f

11 years agoUpdate the AFL fuzzer data with newly discovered paths.
drh [Sat, 25 Apr 2015 17:45:36 +0000 (17:45 +0000)] 
Update the AFL fuzzer data with newly discovered paths.

FossilOrigin-Name: d98219805d4596360ac6ae9647687f8dc709828a

11 years agoFuzzershell: change the error summary output to work with releasetest.tcl.
drh [Sat, 25 Apr 2015 16:39:49 +0000 (16:39 +0000)] 
Fuzzershell: change the error summary output to work with releasetest.tcl.
Reduce the maximum number of OOM interations.

FossilOrigin-Name: f5e6c4b28d25429aac53ea8cb334a2e6bd821f39

11 years agoAdd the fuzzoomtest target to the makefiles. Invoke fuzzoomtest from
drh [Sat, 25 Apr 2015 13:39:29 +0000 (13:39 +0000)] 
Add the fuzzoomtest target to the makefiles.  Invoke fuzzoomtest from
releasetest.tcl.

FossilOrigin-Name: f60657c2ae8a11f1e546c953bca07d9396142f73

11 years agoFix an obscure memory leak that could follow an OOM in where.c.
dan [Sat, 25 Apr 2015 12:20:24 +0000 (12:20 +0000)] 
Fix an obscure memory leak that could follow an OOM in where.c.

FossilOrigin-Name: 08ec9f2f5a446774bb8e9b9b0ef463dd5458d28e

11 years agoIn fuzzershell: (1) comment fixes. (2) Set and clear g.zTestName[] correctly.
drh [Sat, 25 Apr 2015 11:35:48 +0000 (11:35 +0000)] 
In fuzzershell: (1) comment fixes.  (2) Set and clear g.zTestName[] correctly.
(3) Use the value in g.zTestName[] in error messages.

FossilOrigin-Name: b7394755fab81329d56bad1b506e536b2fcbe8cd

11 years agoIn the fuzzershell, always invoke the trace and log callbacks even if output
drh [Sat, 25 Apr 2015 11:19:51 +0000 (11:19 +0000)] 
In the fuzzershell, always invoke the trace and log callbacks even if output
is suppressed.  Keep track of the current test name in a global variable
for simplified debugging.

FossilOrigin-Name: 3045f454817f657df801358c40c665b0b0d73c1f

11 years agoDo not send the extra ";" and "\000" tokens to the parser if a prior error
drh [Sat, 25 Apr 2015 00:32:30 +0000 (00:32 +0000)] 
Do not send the extra ";" and "\000" tokens to the parser if a prior error
has occurred.

FossilOrigin-Name: 9aa70ddf2ca6044634560a801b43df121384eb64

11 years agoAdd fflush() calls to fuzzershell to keep stderr and stdout synchronized.
drh [Sat, 25 Apr 2015 00:20:15 +0000 (00:20 +0000)] 
Add fflush() calls to fuzzershell to keep stderr and stdout synchronized.

FossilOrigin-Name: 2b98a25237d1b3e64aec2772b622e8b3be2df454

11 years agoAdd the --oom option to fuzzershell.
drh [Fri, 24 Apr 2015 23:45:23 +0000 (23:45 +0000)] 
Add the --oom option to fuzzershell.

FossilOrigin-Name: 14a9e4a377bf2974f5db148c8f86e2c5ffdfa28d

11 years agoMerge latest trunk changes with this branch.
dan [Fri, 24 Apr 2015 20:18:21 +0000 (20:18 +0000)] 
Merge latest trunk changes with this branch.

FossilOrigin-Name: 1c78d8920fb59da3cb97dd2eb09b3e08dfd14259

11 years agoAdd the "unindexed" column option to fts5.
dan [Fri, 24 Apr 2015 19:41:43 +0000 (19:41 +0000)] 
Add the "unindexed" column option to fts5.

FossilOrigin-Name: 86309961344f4076ddcf55d730d3600ec3b6e45c

11 years agoFix fuzzershell so that it works with SQLITE_OMIT_TRACE.
drh [Fri, 24 Apr 2015 18:31:12 +0000 (18:31 +0000)] 
Fix fuzzershell so that it works with SQLITE_OMIT_TRACE.

FossilOrigin-Name: dc88fe7e641c52d27fba8c753cee590db87388c5

11 years agoAdd the --with-tcl=DIR option to the test/releasetest.tcl script.
drh [Fri, 24 Apr 2015 17:50:37 +0000 (17:50 +0000)] 
Add the --with-tcl=DIR option to the test/releasetest.tcl script.

FossilOrigin-Name: 4dda916a572bcb54c8cf3b81d965328632a722eb

11 years agoRun fuzzershell as part of the valgrindtest makefile target.
drh [Fri, 24 Apr 2015 16:53:03 +0000 (16:53 +0000)] 
Run fuzzershell as part of the valgrindtest makefile target.

FossilOrigin-Name: 0bb96a037bd7179cb3a6137bb29827fc7d72ec3f

11 years agoAdd the fuzztest target to the MSVC makefile.
drh [Fri, 24 Apr 2015 16:16:31 +0000 (16:16 +0000)] 
Add the fuzztest target to the MSVC makefile.

FossilOrigin-Name: 98edc6152cdd935dc83c1330c088145e7adb9dd0

11 years agoAdd AFL-generated test cases in the test/fuzzdata1.txt file. Automatically
drh [Fri, 24 Apr 2015 16:09:12 +0000 (16:09 +0000)] 
Add AFL-generated test cases in the test/fuzzdata1.txt file.  Automatically
run fuzzershell against those cases on a "make test".

FossilOrigin-Name: 627ea83c26b420088f101801eb8765127f47d2d0

11 years agoAdd extra tests for corrupt database handling in fts5.
dan [Fri, 24 Apr 2015 15:56:09 +0000 (15:56 +0000)] 
Add extra tests for corrupt database handling in fts5.

FossilOrigin-Name: 41449f7a0b5da6332eef48386c91ef63382c4783

11 years agoAdd the --unique-cases option to fuzzershell.
drh [Fri, 24 Apr 2015 14:47:59 +0000 (14:47 +0000)] 
Add the --unique-cases option to fuzzershell.

FossilOrigin-Name: 7cb718491b5de77d4a73d8484324b66a36815019

11 years agoFuzzershell enhancements: (1) Add the --verbose and --quiet flags
drh [Fri, 24 Apr 2015 13:00:59 +0000 (13:00 +0000)] 
Fuzzershell enhancements:  (1) Add the --verbose and --quiet flags
(2) Show percentage complete and final test count for multi-test inputs
(3) Omit trace and result logs unless the --verbose flag is used.

FossilOrigin-Name: ed202ffac2eb85be9a18dca2a051ea3be16f8893

11 years agoFix an fts5 build problem in main.mk.
dan [Fri, 24 Apr 2015 06:02:29 +0000 (06:02 +0000)] 
Fix an fts5 build problem in main.mk.

FossilOrigin-Name: 60045cedef109f03317dc878fe6bb3d03867ae69

11 years agoFix a problem in the "ota" utility program causing it to crash if SQLite failed to...
dan [Thu, 23 Apr 2015 19:38:20 +0000 (19:38 +0000)] 
Fix a problem in the "ota" utility program causing it to crash if SQLite failed to open the target database.

FossilOrigin-Name: a1a2b4a2eff4f641fa80e8ffa805c97afb73be95

11 years agoMerge latest trunk changes into this branch.
dan [Thu, 23 Apr 2015 19:32:19 +0000 (19:32 +0000)] 
Merge latest trunk changes into this branch.

FossilOrigin-Name: 1506e99eca19f72fb59b55ec9e2534505dfa7a6e

11 years agoFix a performance problem in calls to sqlite3ota_close() made after the OTA update...
dan [Thu, 23 Apr 2015 19:18:42 +0000 (19:18 +0000)] 
Fix a performance problem in calls to sqlite3ota_close() made after the OTA update has been completely applied and checkpointed.

FossilOrigin-Name: fa62093b2531424846ea500c4155170d1bc7110e

11 years agoHave OTA maintain a small LRU cache of UPDATE statements. This reduces the amount...
dan [Thu, 23 Apr 2015 18:14:21 +0000 (18:14 +0000)] 
Have OTA maintain a small LRU cache of UPDATE statements. This reduces the amount of time it spends compiling UPDATE if a single data_xxx table contains many different ota_control strings.

FossilOrigin-Name: baee3556ea10d96f1623cf4dce112fa1a1070820

11 years agoModify the sqlite3session_diff() API so that tables with no PRIMARY KEYs are ignored...
dan [Thu, 23 Apr 2015 17:22:49 +0000 (17:22 +0000)] 
Modify the sqlite3session_diff() API so that tables with no PRIMARY KEYs are ignored. This matches the other sessions APIs. Also change sqlite3session_diff() so that it returns SQLITE_SCHEMA, instead of SQLITE_ERROR, if the tables being compared do not have compatible schemas.

FossilOrigin-Name: aada0ad08e3baa10d14d1f3393183110289e068e

11 years agoFix the error message returned by sqlite3session_diff() for tables with no PRIMARY...
dan [Thu, 23 Apr 2015 15:03:14 +0000 (15:03 +0000)] 
Fix the error message returned by sqlite3session_diff() for tables with no PRIMARY KEY.

FossilOrigin-Name: 4d34a3d40da210bebb2a2e6dff094f9a39c92798

11 years agoFix a performance problem in sqlite3session_diff().
dan [Thu, 23 Apr 2015 14:40:17 +0000 (14:40 +0000)] 
Fix a performance problem in sqlite3session_diff().

FossilOrigin-Name: ea400eca314d81761fe5c0e329b906c045f0dfe4

11 years agoMerge the latest trunk enhancements and fixes into the sessions branch.
drh [Thu, 23 Apr 2015 13:49:53 +0000 (13:49 +0000)] 
Merge the latest trunk enhancements and fixes into the sessions branch.

FossilOrigin-Name: 4e5f17d189eb0578a544c21fc150f9e2ee3428e3

11 years agoFix a faulty assert() in the "AS" alias resolution logic of the parser.
drh [Thu, 23 Apr 2015 13:37:05 +0000 (13:37 +0000)] 
Fix a faulty assert() in the "AS" alias resolution logic of the parser.

FossilOrigin-Name: b5e43602833249aa4b73337bf85b7f308450dab6

11 years agoImprovement to "ID" formatting on the ".selecttrace 0x1ff" debugging function.
drh [Thu, 23 Apr 2015 13:00:42 +0000 (13:00 +0000)] 
Improvement to "ID" formatting on the ".selecttrace 0x1ff" debugging function.

FossilOrigin-Name: 01c50cee37bfaddfecdda014728c35a1be1d991a