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

11 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

11 years agoAdd extra OOM tests for fts5.
dan [Wed, 22 Apr 2015 20:58:24 +0000 (20:58 +0000)] 
Add extra OOM tests for fts5.

FossilOrigin-Name: 2dd59b5762c944b3bdd270e95c6739cd4f530bfa

11 years agoFix problems with doclist-indexes involving very large rowids.
dan [Wed, 22 Apr 2015 20:14:46 +0000 (20:14 +0000)] 
Fix problems with doclist-indexes involving very large rowids.

FossilOrigin-Name: 1e5994097e4c740c5173ea9718c3935728fdb86f

11 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

11 years agoAdd comments related to database locking to sqlite3ota.h.
dan [Wed, 22 Apr 2015 11:34:38 +0000 (11:34 +0000)] 
Add comments related to database locking to sqlite3ota.h.

FossilOrigin-Name: 77242965e77446313a8f0a65a39fccb67fe4cabf

11 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

11 years agoUpdate this branch with latest trunk changes.
dan [Wed, 22 Apr 2015 09:40:35 +0000 (09:40 +0000)] 
Update this branch with latest trunk changes.

FossilOrigin-Name: 9797482ded7de985e3b20aedec5e4d81f55065c8

11 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

11 years agoFix a problem in fts5fault1.test.
dan [Tue, 21 Apr 2015 20:13:38 +0000 (20:13 +0000)] 
Fix a problem in fts5fault1.test.

FossilOrigin-Name: a21d60cb2ac6463c012d82d1970d90da5da2a14a

11 years agoFix an fts5 problem with large deletes.
dan [Tue, 21 Apr 2015 19:07:39 +0000 (19:07 +0000)] 
Fix an fts5 problem with large deletes.

FossilOrigin-Name: e50e8031d6f804ebe50e0eec9a8b6e7f0152ecc3

11 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

11 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

11 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

11 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

11 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

11 years agoAdd a comment to sqlite3ota.h. No code changes.
dan [Tue, 21 Apr 2015 15:35:30 +0000 (15:35 +0000)] 
Add a comment to sqlite3ota.h. No code changes.

FossilOrigin-Name: 352fa09efd8240567b8f9487944e8c3ade4e664a

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 years agoFix some fts5 problems with very large position lists.
dan [Mon, 20 Apr 2015 18:48:57 +0000 (18:48 +0000)] 
Fix some fts5 problems with very large position lists.

FossilOrigin-Name: 2ea8f9cbe67dac60c1a0a661c95a03ecfa9a0b9a

11 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

11 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

11 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

11 years agoMerge all recent trunk enhancements and fixes into the sessions branch.
drh [Mon, 20 Apr 2015 01:32:53 +0000 (01:32 +0000)] 
Merge all recent trunk enhancements and fixes into the sessions branch.

FossilOrigin-Name: b8ef1cdee307441e8d97b4bfc21f8547692eea9f

11 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

11 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

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

FossilOrigin-Name: 59d1a3bb6050a812c4eb0d25ac53327081b9efed

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

11 years agoEnsure that filenames passed to the VFS xOpen() function are terminated by 2 '\0...
dan [Fri, 17 Apr 2015 17:00:52 +0000 (17:00 +0000)] 
Ensure that filenames passed to the VFS xOpen() function are terminated by 2 '\0' bytes.

FossilOrigin-Name: 66eff473c3634edb42f6ad6955acfba3e3a10def

11 years agoFix a memory leak in sqlite3ota.c that can follow an OOM error.
dan [Fri, 17 Apr 2015 16:29:11 +0000 (16:29 +0000)] 
Fix a memory leak in sqlite3ota.c that can follow an OOM error.

FossilOrigin-Name: c3dc15e71782fc70e92b71ad9eec0cf8ffef611f

11 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

11 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

11 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

11 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

11 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

11 years agoHold the database mutex for the duration of sqlite3session_diff().
dan [Fri, 17 Apr 2015 11:31:08 +0000 (11:31 +0000)] 
Hold the database mutex for the duration of sqlite3session_diff().

FossilOrigin-Name: 6f33050115562833c43da3c99dd37aeb0bf966b6

11 years agoHave OTA always specify SQLITE_CONFIG_URI when opening databases. Fix a test issue...
dan [Fri, 17 Apr 2015 08:36:05 +0000 (08:36 +0000)] 
Have OTA always specify SQLITE_CONFIG_URI when opening databases. Fix a test issue causing otacrash.test to fail.

FossilOrigin-Name: 0d0e5ec064eaecb200b9b601b7a54a1700cd176e

11 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

11 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

11 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

11 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

11 years agoBe sure to release any xShmLock locks held when closing an OTA handle.
dan [Thu, 16 Apr 2015 18:49:53 +0000 (18:49 +0000)] 
Be sure to release any xShmLock locks held when closing an OTA handle.

FossilOrigin-Name: d0fba72a47f73082ade40a732aab114bc8f6d83e

11 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

11 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

11 years agoRestore SQLITE_FORCE_OS_TRACE to the MSVC makefile, which was removed during a merge.
mistachkin [Thu, 16 Apr 2015 16:27:29 +0000 (16:27 +0000)] 
Restore SQLITE_FORCE_OS_TRACE to the MSVC makefile, which was removed during a merge.

FossilOrigin-Name: c37f4d492f98ac5c07c08705a3826a3e86107306

11 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

11 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

11 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

11 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

11 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

11 years agoFix a mismatched printf() argument and format specifier. Add ota files to Makefile.in.
dan [Thu, 16 Apr 2015 14:33:09 +0000 (14:33 +0000)] 
Fix a mismatched printf() argument and format specifier. Add ota files to Makefile.in.

FossilOrigin-Name: 5db810a88dac5cbf1f6b321345d01cc0d9d05d31

11 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