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

11 years agoFix a stray backslash character in a printf format string in
drh [Thu, 16 Apr 2015 13:52:03 +0000 (13:52 +0000)] 
Fix a stray backslash character in a printf format string in
sessionDiffFindModified()

FossilOrigin-Name: abb192a1d79388d4717f459b91e34f9c035935f2

11 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

11 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

11 years agoAvoid attempting to rename the *-oal file while it is still open.
dan [Thu, 16 Apr 2015 10:55:58 +0000 (10:55 +0000)] 
Avoid attempting to rename the *-oal file while it is still open.

FossilOrigin-Name: 658c3b0c80b9fe7eaac5982573651dc649a4c53f

11 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

11 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

11 years agoMerge updates from trunk. expShell
mistachkin [Thu, 16 Apr 2015 04:20:10 +0000 (04:20 +0000)] 
Merge updates from trunk.

FossilOrigin-Name: 22827542a5c7aeac4385ba647f45bd500e787fe6

11 years agoMove OSTRACE defines so they are visible to all source files that need them.
mistachkin [Thu, 16 Apr 2015 03:56:32 +0000 (03:56 +0000)] 
Move OSTRACE defines so they are visible to all source files that need them.

FossilOrigin-Name: 72485c97c6de47b8bba63b2a307e7bdeea114040

11 years agoMake sure the sqlite3DebugPrintf() function is defined for OSTRACE as well.
mistachkin [Thu, 16 Apr 2015 03:37:19 +0000 (03:37 +0000)] 
Make sure the sqlite3DebugPrintf() function is defined for OSTRACE as well.

FossilOrigin-Name: ae5af70427e0df960a54c48cd27a6288500b1f31

11 years agoMerge updates from trunk. Make OSTRACE changes work on Linux.
mistachkin [Thu, 16 Apr 2015 03:24:38 +0000 (03:24 +0000)] 
Merge updates from trunk.  Make OSTRACE changes work on Linux.

FossilOrigin-Name: cd1542664eb3eb46d486664ded49cd9c4bef3948

11 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

11 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

11 years agoLogically store updates as (insert+delete) within the FTS tree. This allows keys...
dan [Wed, 15 Apr 2015 18:49:20 +0000 (18:49 +0000)] 
Logically store updates as (insert+delete) within the FTS tree. This allows keys to be annihilated more quickly under some circumstances.

FossilOrigin-Name: 50fae1f0006c0e946b5214e73eedf2687a0016f9

11 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

11 years agoFix a problem preventing doclist indexes from being loaded.
dan [Wed, 15 Apr 2015 16:01:42 +0000 (16:01 +0000)] 
Fix a problem preventing doclist indexes from being loaded.

FossilOrigin-Name: b29109a083e5cd442cdd19f29d7be45b09c4f661

11 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

11 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

11 years agoMerge all recent trunk enhancements and fixes into the ota-update branch.
drh [Wed, 15 Apr 2015 14:26:04 +0000 (14:26 +0000)] 
Merge all recent trunk enhancements and fixes into the ota-update branch.

FossilOrigin-Name: 9bd3e4453d4ad416f7e3f08f0bd283d34f1c319c

11 years agoMerge all recent trunk fixes and enhancements into the sessions branch.
drh [Wed, 15 Apr 2015 14:14:38 +0000 (14:14 +0000)] 
Merge all recent trunk fixes and enhancements into the sessions branch.

FossilOrigin-Name: e65e65f9bc9b4bf5c9dd6e3a77a0d5f03c40e006

11 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

11 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

11 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

11 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