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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 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

10 years agoFix a problem causing the fts3 integrity-check to fail if run inside a transaction.
dan [Thu, 23 Apr 2015 11:52:04 +0000 (11:52 +0000)] 
Fix a problem causing the fts3 integrity-check to fail if run inside a transaction.

FossilOrigin-Name: 3b925189a75eae875da256b6e54999cad3cef1eb

10 years agoImproved filtering of input for fuzzershell for modes other than generic.
drh [Wed, 22 Apr 2015 13:16:46 +0000 (13:16 +0000)] 
Improved filtering of input for fuzzershell for modes other than generic.

FossilOrigin-Name: 025e8370dde2918b66683f8d7fa9c7d23d03c9b4

10 years agoChange the printf, strftime, and glob modes of fuzzershell so that they
drh [Wed, 22 Apr 2015 11:16:34 +0000 (11:16 +0000)] 
Change the printf, strftime, and glob modes of fuzzershell so that they
reject all inputs that do not start with a string literal followed by a
comma.  This helps the fuzzer focus in on the kinds of behavior those modes
are intended to test.

FossilOrigin-Name: 1cceefa7c6585bca786fe9f7118f7beb829ad709

10 years agoWhen compiling for UAP, link against the new minimal MSVC runtime.
mistachkin [Wed, 22 Apr 2015 01:33:53 +0000 (01:33 +0000)] 
When compiling for UAP, link against the new minimal MSVC runtime.

FossilOrigin-Name: 2cb945116e7a5b78741b19839899826b539d5868

10 years agoAlternative fix for the double-initialization of type and collating sequence
drh [Tue, 21 Apr 2015 17:17:47 +0000 (17:17 +0000)] 
Alternative fix for the double-initialization of type and collating sequence
problem that leaves the estimated table size intact.

FossilOrigin-Name: 623ddbdbf48d26dac58c593bcb9e7b184334ddfc

10 years agoMake sure the datatype and collating sequence of transients tables are
drh [Tue, 21 Apr 2015 17:07:01 +0000 (17:07 +0000)] 
Make sure the datatype and collating sequence of transients tables are
not initialized more than once.  Otherwise a memory leak results.

FossilOrigin-Name: 9e6beda2c8d879e438ee933e658f860d6eb42a20

10 years agoEnsure that tables names are dequoted exactly once by the trigger logic.
dan [Tue, 21 Apr 2015 16:38:49 +0000 (16:38 +0000)] 
Ensure that tables names are dequoted exactly once by the trigger logic.

FossilOrigin-Name: 9d887b92f8086961e045f8acb9ee7a443796d411

10 years agoFix a memory leak in the SELECT code generator tracing logic (code that is
drh [Tue, 21 Apr 2015 16:09:07 +0000 (16:09 +0000)] 
Fix a memory leak in the SELECT code generator tracing logic (code that is
omitted in non-debugging builds).

FossilOrigin-Name: b623ebd859dcb1d99398aa9953f6b113bad26304

10 years agoFix an obscure problem with "INSERT INTO tbl(cols) SELECT" statements where the SELEC...
dan [Tue, 21 Apr 2015 15:49:04 +0000 (15:49 +0000)] 
Fix an obscure problem with "INSERT INTO tbl(cols) SELECT" statements where the SELECT is a compound with an ORDER BY and "cols" is a strict subset of tbl's columns.

FossilOrigin-Name: 718d5d0eab045a874107e078a857226a80ab912d

10 years agoChange an assert() in the aggregate query code generator into a testcase().
drh [Tue, 21 Apr 2015 15:16:48 +0000 (15:16 +0000)] 
Change an assert() in the aggregate query code generator into a testcase().

FossilOrigin-Name: d1e6bc918b0c8e0701f5e15afb91b84a9004231b

10 years agoFix an fts4 problem to do with the handling of phrases that contain zero tokens.
dan [Tue, 21 Apr 2015 12:06:53 +0000 (12:06 +0000)] 
Fix an fts4 problem to do with the handling of phrases that contain zero tokens.

FossilOrigin-Name: caba5be0b2bdaf4eb4af9af267c0c22dfbd3dba5

10 years agoFix some identifier name de-quoting issues in the foreign key and trigger logic.
drh [Tue, 21 Apr 2015 03:13:47 +0000 (03:13 +0000)] 
Fix some identifier name de-quoting issues in the foreign key and trigger logic.

FossilOrigin-Name: 59e92bd9521f1e8315a9a7e7fd3d63b0c75eaf0e

10 years agoTest case for the previous check-in.
drh [Tue, 21 Apr 2015 02:17:30 +0000 (02:17 +0000)] 
Test case for the previous check-in.

FossilOrigin-Name: a526f58bc96c0fdead51b6bd9aafea7b48bf398e

10 years agoMake sure the whereSplit() routine in the query planner is not confused
drh [Tue, 21 Apr 2015 02:12:13 +0000 (02:12 +0000)] 
Make sure the whereSplit() routine in the query planner is not confused
by the likely() operator.

FossilOrigin-Name: 588db14ffb4b0e8e76d511b7b1541db3ec78836a

10 years agoEnable compilation and VSIX package creation with the Visual Studio 2015 CTP.
mistachkin [Tue, 21 Apr 2015 00:23:38 +0000 (00:23 +0000)] 
Enable compilation and VSIX package creation with the Visual Studio 2015 CTP.

FossilOrigin-Name: 03b725a768290e3c7b31f1ba3310532fd7dc05cd

10 years agoAdd the --mode option to fuzzershell.
drh [Mon, 20 Apr 2015 22:36:49 +0000 (22:36 +0000)] 
Add the --mode option to fuzzershell.

FossilOrigin-Name: b940b0fa6cf68fef58344d269ad5d39468ffe72f

10 years agoMany new configuration options for fuzzershell.
drh [Mon, 20 Apr 2015 18:58:38 +0000 (18:58 +0000)] 
Many new configuration options for fuzzershell.

FossilOrigin-Name: 41c954391690833bf2ece4ea14457ee4bdd74e90

10 years agoFix a memory leak caused by duplicate entries in the sqlite_stat1 table.
dan [Mon, 20 Apr 2015 15:13:08 +0000 (15:13 +0000)] 
Fix a memory leak caused by duplicate entries in the sqlite_stat1 table.

FossilOrigin-Name: 2f58c8c9722fffc486610f9e6b08178d53a56b64

10 years agoFix an obscure memory leak in sqlite3Stat4ProbeFree()
drh [Mon, 20 Apr 2015 13:59:18 +0000 (13:59 +0000)] 
Fix an obscure memory leak in sqlite3Stat4ProbeFree()

FossilOrigin-Name: c72abbe2c1735f3d563c6672616b2918b6209922

10 years agoEnhance fuzzershell to support multiple blocks of SQL, each run in its own
drh [Mon, 20 Apr 2015 12:50:13 +0000 (12:50 +0000)] 
Enhance fuzzershell to support multiple blocks of SQL, each run in its own
private in-memory database.

FossilOrigin-Name: ab0a96ca73cfe92d5a837c71c148e8361f42acc3

10 years agoAdd an ALWAYS() around a new branch that was made unreachable by an even
drh [Mon, 20 Apr 2015 01:13:33 +0000 (01:13 +0000)] 
Add an ALWAYS() around a new branch that was made unreachable by an even
newer change.

FossilOrigin-Name: 592c010478fba7410424f011a62e019c826f1ac3

10 years agoFix another harmless compiler warning.
mistachkin [Sun, 19 Apr 2015 23:48:10 +0000 (23:48 +0000)] 
Fix another harmless compiler warning.

FossilOrigin-Name: 5ae853aaebaee76c9265061984185f74c10c4c8b

10 years agoMerge updates from trunk.
mistachkin [Sun, 19 Apr 2015 23:40:55 +0000 (23:40 +0000)] 
Merge updates from trunk.

FossilOrigin-Name: 59d1a3bb6050a812c4eb0d25ac53327081b9efed

10 years agoModify the 'mkvsix' tool itself to support the Visual Studio 2015 CTP.
mistachkin [Sun, 19 Apr 2015 23:39:05 +0000 (23:39 +0000)] 
Modify the 'mkvsix' tool itself to support the Visual Studio 2015 CTP.

FossilOrigin-Name: e0b7a191f3c22d9eacf645c58be59e0fdcb8860d

10 years agoFix an off-by-one assert() in the virtual table argument tokenizer.
drh [Sun, 19 Apr 2015 23:11:10 +0000 (23:11 +0000)] 
Fix an off-by-one assert() in the virtual table argument tokenizer.

FossilOrigin-Name: c83052e48bbae0f45db2a44155b4e5482ee4a901

10 years agoFix a broken assert() and comparison for INSERT INTO ... SELECT when the
drh [Sun, 19 Apr 2015 22:41:22 +0000 (22:41 +0000)] 
Fix a broken assert() and comparison for INSERT INTO ... SELECT when the
SELECT uses an unknown collating sequence.

FossilOrigin-Name: e73ac0cbac257d2d2b28e51423e30d7449b6c7b5

10 years agoSilently ignore parser stack overflow when parsing a malformed schema in
drh [Sun, 19 Apr 2015 22:31:45 +0000 (22:31 +0000)] 
Silently ignore parser stack overflow when parsing a malformed schema in
PRAGMA writable_schema mode.

FossilOrigin-Name: 2cb37b959c66b5ae3535ab81ba14a4ebf9732df7

10 years agoFix another assert() that is not true if the database schema is corrupt.
drh [Sun, 19 Apr 2015 21:59:19 +0000 (21:59 +0000)] 
Fix another assert() that is not true if the database schema is corrupt.

FossilOrigin-Name: bc97cec6338b16a4e9b1a9457d01bb7fe462934d

10 years agoFix harmless compiler warnings seen with MSVC 2015.
mistachkin [Sun, 19 Apr 2015 21:43:16 +0000 (21:43 +0000)] 
Fix harmless compiler warnings seen with MSVC 2015.

FossilOrigin-Name: d05becd873a03a366843a34e7f4c732dd8f88c86

10 years agoFix a faulty assert in the schema parsing logic.
drh [Sun, 19 Apr 2015 20:39:17 +0000 (20:39 +0000)] 
Fix a faulty assert in the schema parsing logic.

FossilOrigin-Name: b1ed949584a2526c04952b98c3aa283427f45e10

10 years agoDocument the NMAKE_ARGS environment variable as well.
mistachkin [Sun, 19 Apr 2015 19:53:43 +0000 (19:53 +0000)] 
Document the NMAKE_ARGS environment variable as well.

FossilOrigin-Name: 977fd39c1509edec2e28cc8bac64e0994699f398

10 years agoFix a potential NULL pointer deference on a corrupt database schema.
drh [Sun, 19 Apr 2015 19:21:19 +0000 (19:21 +0000)] 
Fix a potential NULL pointer deference on a corrupt database schema.

FossilOrigin-Name: dc61b292d8eaf422ca8a2b18f1caccef1a5389fd

10 years agoImprove documentation and comments in the MSVC batch build tool.
mistachkin [Sun, 19 Apr 2015 18:58:29 +0000 (18:58 +0000)] 
Improve documentation and comments in the MSVC batch build tool.

FossilOrigin-Name: ca64ef079811006f3e0526919871ffd286c3e714

10 years agoBring comments on the INSERT code generator up-to-date. Fix the INSERT code
drh [Sun, 19 Apr 2015 18:32:43 +0000 (18:32 +0000)] 
Bring comments on the INSERT code generator up-to-date.  Fix the INSERT code
generator so that it correctly handles inserts from a SELECT into a virtual
table with non-terminal hidden columns.

FossilOrigin-Name: 4ac81fac6c6302c042be3df493a41630b733fff0

10 years agoWork in progress on making VSIX packages for the Visual Studio 2015 CTP.
mistachkin [Sun, 19 Apr 2015 06:18:10 +0000 (06:18 +0000)] 
Work in progress on making VSIX packages for the Visual Studio 2015 CTP.

FossilOrigin-Name: 8469d651a0442a2bc572a869a0457a6ea8c06bc7

10 years agoThe sqlite3_trace() callback does not try to expand parameters in statements
drh [Sat, 18 Apr 2015 19:20:14 +0000 (19:20 +0000)] 
The sqlite3_trace() callback does not try to expand parameters in statements
that have no parameter.

FossilOrigin-Name: 917e3c36293a1bf052a16116c93e5037ed712f96

10 years agoFix an incorrect assert() statement in the CREATE INDEX code generator.
drh [Sat, 18 Apr 2015 17:43:29 +0000 (17:43 +0000)] 
Fix an incorrect assert() statement in the CREATE INDEX code generator.

FossilOrigin-Name: 2eed41fda068f2cbac55e63d7c1875ddaa331508

10 years agoEnsure that if a "ROLLBACK TO" statement is used to rollback (but not close) theouter...
dan [Sat, 18 Apr 2015 16:25:54 +0000 (16:25 +0000)] 
Ensure that if a "ROLLBACK TO" statement is used to rollback (but not close) theoutermost transaction, the xRollbackTo() method of any virtual tables involved in the transaction is invoked.

FossilOrigin-Name: e98d481d84ef31b6ed154f14deae9b261f722616

10 years agoDisregard leading zeros when converting strings to 32-bit integers.
drh [Sat, 18 Apr 2015 04:45:00 +0000 (04:45 +0000)] 
Disregard leading zeros when converting strings to 32-bit integers.

FossilOrigin-Name: 691cc201e135a01c4cc4057be7e5d99285ab392d

10 years agoFix an incorrect assert() in the sqlite3_trace() logic.
drh [Sat, 18 Apr 2015 00:22:17 +0000 (00:22 +0000)] 
Fix an incorrect assert() in the sqlite3_trace() logic.

FossilOrigin-Name: eabde33997b5b2ffc0067930305d6fed5951a234

10 years agoFix a problem affecting some fts3 UPDATE and DELETE statements on order=DESC tables.
dan [Fri, 17 Apr 2015 20:51:55 +0000 (20:51 +0000)] 
Fix a problem affecting some fts3 UPDATE and DELETE statements on order=DESC tables.

FossilOrigin-Name: 284c1623f81704ef80edb9324954525cb2b72172

10 years agoIn the expression-tree comparison routine, do not compiler Expr.iColumn
drh [Fri, 17 Apr 2015 19:41:37 +0000 (19:41 +0000)] 
In the expression-tree comparison routine, do not compiler Expr.iColumn
and Expr.iTable for TK_STRING expressions.

FossilOrigin-Name: b67bb16c72c3e015ea82665ada9b5d3289ef6fb2

10 years agoAlways resolve symbols in all ORDER BY clauses of a compound-SELECT, even
drh [Fri, 17 Apr 2015 18:52:37 +0000 (18:52 +0000)] 
Always resolve symbols in all ORDER BY clauses of a compound-SELECT, even
illegal ORDER BY clauses.

FossilOrigin-Name: 6c39ef73d5899eabdb46db50c2b00c2d8381a41a

10 years agoRemove unnecessary parser error count increments. Let the sqlite3ErrorMsg()
drh [Fri, 17 Apr 2015 18:22:53 +0000 (18:22 +0000)] 
Remove unnecessary parser error count increments.  Let the sqlite3ErrorMsg()
take care of doing that.

FossilOrigin-Name: 3f3b0f683af2fbee83811536f6bef770ff919385

10 years agoRemove an ALWAYS() that turns out to be false when there is a semantic
drh [Fri, 17 Apr 2015 16:12:03 +0000 (16:12 +0000)] 
Remove an ALWAYS() that turns out to be false when there is a semantic
error on a compound SELECT.

FossilOrigin-Name: ad67a67c03078a2bc65d28f2b880b29bf02067c1

10 years agoEnsure that semantic SQL errors are always reported back up to the syntax
drh [Fri, 17 Apr 2015 15:58:33 +0000 (15:58 +0000)] 
Ensure that semantic SQL errors are always reported back up to the syntax
parser.  Also:  Improve the defense against invalid PRAGMA synchronous settings.

FossilOrigin-Name: 7aeade9a07f29bf26e50394042ea18d0121fe7a3

10 years agoFix a faulty assert() in sqlite3SelectNew().
drh [Fri, 17 Apr 2015 15:16:58 +0000 (15:16 +0000)] 
Fix a faulty assert() in sqlite3SelectNew().

FossilOrigin-Name: 620d19c3b462f5c4763ebd26513321431f21dd72

10 years agoAdd the tool/fuzzershell.c utility program.
drh [Fri, 17 Apr 2015 14:30:49 +0000 (14:30 +0000)] 
Add the tool/fuzzershell.c utility program.

FossilOrigin-Name: db8d9af4d04ee862995ffa13ae6dcd9a1fc72855

10 years agoFix the header comment on the sqldiff utility program. No code changes.
drh [Fri, 17 Apr 2015 12:16:09 +0000 (12:16 +0000)] 
Fix the header comment on the sqldiff utility program.  No code changes.

FossilOrigin-Name: b355ca3a3f617cd6d4c45c8e27ecd75d9e68b792

10 years agoRestrict the scope of a local-use function in the parser.
drh [Thu, 16 Apr 2015 23:04:17 +0000 (23:04 +0000)] 
Restrict the scope of a local-use function in the parser.

FossilOrigin-Name: cd6598f47480a6189df3e4283231833fd246d7fb

10 years agoUse a heap rather than a bitmap for cell coverage and overlap testing on
drh [Thu, 16 Apr 2015 21:57:37 +0000 (21:57 +0000)] 
Use a heap rather than a bitmap for cell coverage and overlap testing on
btree pages in PRAGMA integrity_check.

FossilOrigin-Name: e94b2ef2242d716379a35dba3d2df1ac512c8d30

10 years agoFix a couple of unreachable branches.
drh [Thu, 16 Apr 2015 20:27:09 +0000 (20:27 +0000)] 
Fix a couple of unreachable branches.

FossilOrigin-Name: 8f391dffcfe068d48f854784648610d8a86f6bc8

10 years agoFix a boundry-value condition in the phrase poslist extractor of FTS3/4.
drh [Thu, 16 Apr 2015 20:10:17 +0000 (20:10 +0000)] 
Fix a boundry-value condition in the phrase poslist extractor of FTS3/4.

FossilOrigin-Name: 55d10baf0bffdb1a34bf5627ed8f25e4a4efd942

10 years agoMake sure all cursors are closed when returning from a VDBE subprogram that
drh [Thu, 16 Apr 2015 18:11:50 +0000 (18:11 +0000)] 
Make sure all cursors are closed when returning from a VDBE subprogram that
implements a foreign-key construct.

FossilOrigin-Name: d04d354d8e423961c3091b6ebcfbbbf10d3ecb04

10 years agoFix the VDBE so that it always uses the original opcode for profiling and
drh [Thu, 16 Apr 2015 17:31:02 +0000 (17:31 +0000)] 
Fix the VDBE so that it always uses the original opcode for profiling and
debugging even after the pOp pointer has been updated due to a jump.

FossilOrigin-Name: 647495cf12b656f6a2f028dc1fb459d667153cf2

10 years agoFix a faulty assert() in the compound-SELECT code generator.
drh [Thu, 16 Apr 2015 16:22:27 +0000 (16:22 +0000)] 
Fix a faulty assert() in the compound-SELECT code generator.

FossilOrigin-Name: 10715b05f2201a63dca317f99ce39d3ce182e182

10 years agoSilently ignore requests to change the PRAGMA synchronous setting to an
drh [Thu, 16 Apr 2015 16:04:39 +0000 (16:04 +0000)] 
Silently ignore requests to change the PRAGMA synchronous setting to an
illegal integer value, rather than raising an assertion.

FossilOrigin-Name: e0a88176fcfbed7b554a036948261a332c920053

10 years agoMake sure errors in coding triggers are propagated back up to the parser.
drh [Thu, 16 Apr 2015 15:47:06 +0000 (15:47 +0000)] 
Make sure errors in coding triggers are propagated back up to the parser.

FossilOrigin-Name: 928f973ca9adc7933015b2fb6b6fcb8e3154cb9c

10 years agoAdd the --backslash option to the command-line shell for testing purposes.
drh [Thu, 16 Apr 2015 15:05:04 +0000 (15:05 +0000)] 
Add the --backslash option to the command-line shell for testing purposes.

FossilOrigin-Name: dd96211e8022365637286b146120cc5db44a9923

10 years agoFix a faulty assert() in the compound select code generator.
drh [Thu, 16 Apr 2015 14:33:35 +0000 (14:33 +0000)] 
Fix a faulty assert() in the compound select code generator.

FossilOrigin-Name: 9d336be1b16aa9bd5c9e4132bb645874993c7d96

10 years agoImprovements to the way VALUES clauses are parsed.
drh [Thu, 16 Apr 2015 14:13:12 +0000 (14:13 +0000)] 
Improvements to the way VALUES clauses are parsed.

FossilOrigin-Name: ec5a493ad27593ca78899b3001630c1898b940ff

10 years agoFix the corruptC.test module due to a change in error message text.
drh [Thu, 16 Apr 2015 12:12:07 +0000 (12:12 +0000)] 
Fix the corruptC.test module due to a change in error message text.

FossilOrigin-Name: 7c0deed25762a954c78d98412d8f4a265a437d06

10 years agoUse a heap instead of a bitmap for cell overlap and coverage testing of integrity-check-heap
drh [Thu, 16 Apr 2015 11:56:03 +0000 (11:56 +0000)] 
Use a heap instead of a bitmap for cell overlap and coverage testing of
btree pages in PRAGMA integrity_check.

FossilOrigin-Name: 5619c959bf7babb19fd8ba8b228be7f090fe0ce3

10 years agoFix a problem in test file e_reindex.test.
dan [Thu, 16 Apr 2015 08:54:01 +0000 (08:54 +0000)] 
Fix a problem in test file e_reindex.test.

FossilOrigin-Name: 5b3de9390f2ffc4c530fd47c71c70e87972cf74b

10 years agoEnsure the sqlite3Select() routine always returns non-zero if an error has occurred.
dan [Thu, 16 Apr 2015 07:19:23 +0000 (07:19 +0000)] 
Ensure the sqlite3Select() routine always returns non-zero if an error has occurred.

FossilOrigin-Name: b51028ed2f57f4245a7ebd9bdb99d1bcfaf1a01b

10 years agoWhen parsing the schema, ignore any SQL that does not begin with "CREATE".
drh [Thu, 16 Apr 2015 00:26:03 +0000 (00:26 +0000)] 
When parsing the schema, ignore any SQL that does not begin with "CREATE".

FossilOrigin-Name: d3c00d61581c8ba6dce5618391432d3af8d324d4

10 years agoFix a potential one-byte buffer overread in the command-line shell.
drh [Wed, 15 Apr 2015 19:25:25 +0000 (19:25 +0000)] 
Fix a potential one-byte buffer overread in the command-line shell.

FossilOrigin-Name: e018f4bf1f27f7838342940ad89a12d7f1536e8e

10 years agoPrevent the fetchPayload() routine from reporting a cell size that extends
drh [Wed, 15 Apr 2015 17:26:55 +0000 (17:26 +0000)] 
Prevent the fetchPayload() routine from reporting a cell size that extends
off the end of the page on a pathologically corrupted database file.

FossilOrigin-Name: f71053cf658b3260a32ac06f8ba5c2cde0ea54dd

10 years agoEnhance the showdb utility program so that it can read the last partial page
drh [Wed, 15 Apr 2015 15:29:05 +0000 (15:29 +0000)] 
Enhance the showdb utility program so that it can read the last partial page
of a truncated database file.

FossilOrigin-Name: 61d72e17916bc043ce53c64e5ba7050a9bae554e

10 years agoAdd the --msvc command-line option to the releasetest.tcl script. This is
drh [Wed, 15 Apr 2015 14:52:05 +0000 (14:52 +0000)] 
Add the --msvc command-line option to the releasetest.tcl script.  This is
only a partial merge from the winTest branch as the OS_TRACE changes are
omitted.

FossilOrigin-Name: b8768f124ef7d79e500b60a3ede288d46a0f529d

10 years agoRemove an incorrect assert() statement from sqlite3Fts3Dequote().
dan [Wed, 15 Apr 2015 09:16:39 +0000 (09:16 +0000)] 
Remove an incorrect assert() statement from sqlite3Fts3Dequote().

FossilOrigin-Name: bd06eeb8d06237dc2d54d8a03e8bf525cb811c9e

10 years agoRemove a branch that became unreachable due to one of the earlier check-ins
drh [Wed, 15 Apr 2015 08:37:42 +0000 (08:37 +0000)] 
Remove a branch that became unreachable due to one of the earlier check-ins
today.

FossilOrigin-Name: fa0956edf866f48f448967836709a3ad822ff917

10 years agoFix a problem causing an assert() to fail if a snippet containing 0 tokens was reques...
dan [Wed, 15 Apr 2015 08:20:50 +0000 (08:20 +0000)] 
Fix a problem causing an assert() to fail if a snippet containing 0 tokens was requested from fts3.

FossilOrigin-Name: eafd0a1e3f25f38d551603f177ff4634cf79de77

10 years agoFix the error message generator for illegal token errors so that it does not
drh [Wed, 15 Apr 2015 07:57:27 +0000 (07:57 +0000)] 
Fix the error message generator for illegal token errors so that it does not
leak memory if it immediately follows another erroneous SQL statement.

FossilOrigin-Name: 3576973f8b88b6109fbefdebfa53468ffa137009

10 years agoRemove an incorrect ALWAYS() from the automatic index generator.
drh [Wed, 15 Apr 2015 07:34:25 +0000 (07:34 +0000)] 
Remove an incorrect ALWAYS() from the automatic index generator.

FossilOrigin-Name: eeb4bd06bf69e411736cc6077d1d64af6bd8fb09

10 years agoRemove an incorrect ALWAYS() from the table_info pragma.
drh [Wed, 15 Apr 2015 07:19:27 +0000 (07:19 +0000)] 
Remove an incorrect ALWAYS() from the table_info pragma.

FossilOrigin-Name: 0e087c0183bc7a758cf2a1d39158bc24fde833a2