]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
10 years agoMerge latest trunk changes with this branch. ota-update-no-pager_ota_mode
dan [Wed, 11 Feb 2015 16:54:48 +0000 (16:54 +0000)] 
Merge latest trunk changes with this branch.

FossilOrigin-Name: 0b63e8dcbaec5043e353734e684c2a46552a3409

10 years agoEnsure that an error is reported if an attempt is made to update a wal mode database...
dan [Wed, 11 Feb 2015 16:25:27 +0000 (16:25 +0000)] 
Ensure that an error is reported if an attempt is made to update a wal mode database via ota.

FossilOrigin-Name: 6fc5d4d26a603b3906f02ceea0f507780d0c35eb

10 years agoFurther tweaks to work with zipvfs.
dan [Tue, 10 Feb 2015 20:00:38 +0000 (20:00 +0000)] 
Further tweaks to work with zipvfs.

FossilOrigin-Name: 0f152416be792457c52417aeb531ac860d12a5bd

10 years agoAdd documentation and test cases for sqlite3ota_create_vfs(). Also code to detect...
dan [Tue, 10 Feb 2015 17:08:17 +0000 (17:08 +0000)] 
Add documentation and test cases for sqlite3ota_create_vfs(). Also code to detect errors in zipvfs/ota setup.

FossilOrigin-Name: e729668168f00325459bc2e9b515aa95e57f2754

10 years agoAdd the sqlite3ota_create_vfs() and sqlite3ota_destroy_vfs() functions.
dan [Mon, 9 Feb 2015 20:07:35 +0000 (20:07 +0000)] 
Add the sqlite3ota_create_vfs() and sqlite3ota_destroy_vfs() functions.

FossilOrigin-Name: 96443ecb6909141aa621a16e628455857d036482

10 years agoPropagate COLLATE operators upward through function calls and CASE operations.
drh [Mon, 9 Feb 2015 18:28:03 +0000 (18:28 +0000)] 
Propagate COLLATE operators upward through function calls and CASE operations.
And do not flatten an aggregate subquery into a query that uses other
subqueries.  Fixes for tickets [ca0d20b6cdddec5] and
[2f7170d73bf9], respectively.

FossilOrigin-Name: 24e78b8d65734a6a8ae21a20542cd1839e756fb1

10 years agoFix WITHOUT ROWID table handing in sqlite3_analyzer.
dan [Mon, 9 Feb 2015 17:46:11 +0000 (17:46 +0000)] 
Fix WITHOUT ROWID table handing in sqlite3_analyzer.

FossilOrigin-Name: 937e0fe7008c0f76b6a584180df9a9457166a0b1

10 years agoAdd test cases for the query flattener fix for tkt-2f7170d7
drh [Mon, 9 Feb 2015 16:34:33 +0000 (16:34 +0000)] 
Add test cases for the query flattener fix for
ticket [2f7170d73bf9abf8].

FossilOrigin-Name: dd8f7f7511639a1baa41a6ff2e359dc6f1e66943

10 years agoPropagate the COLLATE operator upward through function calls.
drh [Mon, 9 Feb 2015 16:09:34 +0000 (16:09 +0000)] 
Propagate the COLLATE operator upward through function calls.
Initial fix for ticket [ca0d20b6cdddec5e8].

FossilOrigin-Name: c053448a55f9d030e8ffe88cf4fc14ada7f6ec19

10 years agoDisable the query flattener for aggregate subqueries if the parent query
drh [Mon, 9 Feb 2015 15:21:36 +0000 (15:21 +0000)] 
Disable the query flattener for aggregate subqueries if the parent query
uses other subqueries in its result set or WHERE clause or ORDER BY clause.
Preliminary fix for ticket [2f7170d73bf9abf8].  However it still contains
a defect similar to the COLLATE problem of [ca0d20b6cddd].

FossilOrigin-Name: 0b7d65e3fda676d193347cb782854c28a48252af

10 years agoRename the internal "EP_Constant" bitmask to a less misleading "EP_ConstFunc".
drh [Mon, 9 Feb 2015 14:07:07 +0000 (14:07 +0000)] 
Rename the internal "EP_Constant" bitmask to a less misleading "EP_ConstFunc".

FossilOrigin-Name: 4ef7ceced2b0000d21f7f8014384c04a0e4661d3

10 years agoIn selecttrace 0x100 mode, show the parse tree after name resolution instead
drh [Mon, 9 Feb 2015 13:42:59 +0000 (13:42 +0000)] 
In selecttrace 0x100 mode, show the parse tree after name resolution instead
of before flattening, so that it is always seen even if flattening does not
occur.  Also: add the hex pointer value to the top of each SELECT tree.

FossilOrigin-Name: aa093fef2d2a7e26d987b46654963e4d7e66d444

10 years agoIn selecttrace mode 0x100, show a complete parse-tree both before and after
drh [Mon, 9 Feb 2015 11:54:41 +0000 (11:54 +0000)] 
In selecttrace mode 0x100, show a complete parse-tree both before and after
query flattening.  This is a change to debugging code only.

FossilOrigin-Name: b3c6b8a3c1075d2a87cef68f061d6a0098e6d8d0

10 years agoFix over-length source code lines in resolver.c. No logic changes.
drh [Mon, 9 Feb 2015 10:20:19 +0000 (10:20 +0000)] 
Fix over-length source code lines in resolver.c.  No logic changes.

FossilOrigin-Name: c12edb85076d0832e3a0abbbba4d07f3cb5d7f0e

10 years agoAdd comments to explain the role of the ota vfs.
dan [Sat, 7 Feb 2015 20:20:32 +0000 (20:20 +0000)] 
Add comments to explain the role of the ota vfs.

FossilOrigin-Name: 7bb633639d1e41067903a49653f09a823054e213

10 years agoRemove "PRAGMA pager_ota_mode".
dan [Sat, 7 Feb 2015 19:17:36 +0000 (19:17 +0000)] 
Remove "PRAGMA pager_ota_mode".

FossilOrigin-Name: 8ac58e46782bd6b81c06fdf1cb5b316b8a4e1ddf

10 years agoFix potential 32-bit integer overflow problems on the offset and length
drh [Sat, 7 Feb 2015 15:16:35 +0000 (15:16 +0000)] 
Fix potential 32-bit integer overflow problems on the offset and length
parameters to sqlite3_blob_read() and sqlite3_blob_write().  For
sqlite3_blob_open(), make sure the *ppBlob return parameter is zeroed if
the interface fails with SQLITE_MISUSE.

FossilOrigin-Name: 5df02f50f8348dfde4fc15126abc7b7ef7803e69

10 years agoMerge the command-line shell enhancements from trunk.
drh [Fri, 6 Feb 2015 15:03:45 +0000 (15:03 +0000)] 
Merge the command-line shell enhancements from trunk.

FossilOrigin-Name: c3931db560ab4a2601c7f7318fb02c8d5e6862b1

10 years agoChange the name of ".info" to ".dbinfo" and add an optional second argument
drh [Fri, 6 Feb 2015 14:51:13 +0000 (14:51 +0000)] 
Change the name of ".info" to ".dbinfo" and add an optional second argument
which is the ATTACH-ed DB about which information is provided.  Provide
".indexes" as an alternative name to the legacy ".indices" command.

FossilOrigin-Name: 0f65a7e2e09f801b66897479d501607caeae4abf

10 years agoAdd the ".info" command to the shell.
drh [Fri, 6 Feb 2015 14:19:44 +0000 (14:19 +0000)] 
Add the ".info" command to the shell.

FossilOrigin-Name: 0a3100a7f264ffce6078c35e341f2f0af6c09fbb

10 years agoAdd the index_xinfo pragma which gives information about the fields that
drh [Fri, 6 Feb 2015 01:07:15 +0000 (01:07 +0000)] 
Add the index_xinfo pragma which gives information about the fields that
reference the table PRIMARY KEY in addition to the index key fields.
Add extra columns "desc", "coll", and "key" to the index_info and index_xinfo
pragmas.  Add the "origin" and "partial" columns to the index_list pragma.

FossilOrigin-Name: 2743846cdba572f616f56d310633703b8b50959e

10 years agoRevise the way that the index structure for a WITHOUT ROWID table is
drh [Fri, 6 Feb 2015 00:31:45 +0000 (00:31 +0000)] 
Revise the way that the index structure for a WITHOUT ROWID table is
discovered.

FossilOrigin-Name: 7f10a0eaf1fedfa020cbd7019ec9342ffdc3b9b0

10 years agoChange a comment in sqlite3ota.h to make it clear that it is not possible to insert...
dan [Thu, 5 Feb 2015 17:46:19 +0000 (17:46 +0000)] 
Change a comment in sqlite3ota.h to make it clear that it is not possible to insert a NULL value into an INTEGER PRIMARY KEY column using ota.

FossilOrigin-Name: a5e86bea4ad51bbb988a2a2215961706894f4a02

10 years agoPrevent ota updates from violating NOT NULL constraints. Add a comment to the "limita...
dan [Thu, 5 Feb 2015 17:36:30 +0000 (17:36 +0000)] 
Prevent ota updates from violating NOT NULL constraints. Add a comment to the "limitations" section of sqlite3ota.h saying that CHECK constraints are not enforced.

FossilOrigin-Name: 74e073dd604142212f3d3e1931065d124daabd80

10 years agoFigure out the primary-key type of a table using queries of sqlite_master
drh [Thu, 5 Feb 2015 01:49:31 +0000 (01:49 +0000)] 
Figure out the primary-key type of a table using queries of sqlite_master
and the table_info and index_list pragmas, obviating the need for
SQLITE_TESTCTRL_TBLTYPE.

FossilOrigin-Name: 50ecdfc443b51e3569c6add2fba5132f959c61cb

10 years agoMerge all changes from index_xinfo, including the move of the pragma table
drh [Wed, 4 Feb 2015 23:51:59 +0000 (23:51 +0000)] 
Merge all changes from index_xinfo, including the move of the pragma table
into the separate pragma.h file.

FossilOrigin-Name: 21e95d28a51e56b45a9d4166475972535e53f954

10 years agoMerge all recent trunk changes, including the movement of the pragma index_xinfo
drh [Wed, 4 Feb 2015 23:13:48 +0000 (23:13 +0000)] 
Merge all recent trunk changes, including the movement of the pragma
table into the separate pragma.h header file.

FossilOrigin-Name: 3af19f84446ba5fc1ed754d0d73f6a6d7fb2f365

10 years agoFix a missing mutex in SQLITE_TESTCTRL_IMPOSTER.
drh [Wed, 4 Feb 2015 20:56:49 +0000 (20:56 +0000)] 
Fix a missing mutex in SQLITE_TESTCTRL_IMPOSTER.

FossilOrigin-Name: 71691c4be54b9ac6a35e35013f939b7d6fd4e6b8

10 years agoFix the error messages returned by ota if an update violates a unique constraint.
dan [Wed, 4 Feb 2015 19:20:42 +0000 (19:20 +0000)] 
Fix the error messages returned by ota if an update violates a unique constraint.

FossilOrigin-Name: c4845a3b591723ff60b7b1da198f44908c12bdfc

10 years agoAvoid a linear scan of the entire table when ota updates or deletes a row from a...
dan [Wed, 4 Feb 2015 16:32:47 +0000 (16:32 +0000)] 
Avoid a linear scan of the entire table when ota updates or deletes a row from a table with an external primary key index.

FossilOrigin-Name: 1db198ccca1e5c5a922cefe3daeff8d2e5d3a7f7

10 years agoFix a memory leak that could follow an OOM error in ota.
dan [Wed, 4 Feb 2015 11:08:47 +0000 (11:08 +0000)] 
Fix a memory leak that could follow an OOM error in ota.

FossilOrigin-Name: 0d5415f26427d0af89663c5a3e944e488143b648

10 years agoFix a typo in the --help output for speedtest1. Fix a dependency error
drh [Tue, 3 Feb 2015 19:20:03 +0000 (19:20 +0000)] 
Fix a typo in the --help output for speedtest1.  Fix a dependency error
in the Makefile.in for speedtest1.

FossilOrigin-Name: f30a057aeeac2b863493b6325325b075a76b9d21

10 years agoFix some problems surrounding WITHOUT ROWID tables with DESC primary key indexes
dan [Tue, 3 Feb 2015 18:43:42 +0000 (18:43 +0000)] 
Fix some problems surrounding WITHOUT ROWID tables with DESC primary key indexes
.

FossilOrigin-Name: a21fefb79a161e6bb057ae4f6ba554f659706ac1

10 years agoRemove "PRAGMA ota_mode".
dan [Tue, 3 Feb 2015 15:56:08 +0000 (15:56 +0000)] 
Remove "PRAGMA ota_mode".

FossilOrigin-Name: 1c111447a07687c30ed4ad5a6c27a169c85b7ea6

10 years agoBreak out the (script-generated) pragma parsing tables into a separate file,
drh [Mon, 2 Feb 2015 21:34:54 +0000 (21:34 +0000)] 
Break out the (script-generated) pragma parsing tables into a separate file,
pragma.h, to make editing easier.

FossilOrigin-Name: 32c0325bcb083fe3f0f0cfe999d00f754e15299e

10 years agoHave ota use imposter tables to write to indexes instead of the sqlite3_index_writer...
dan [Sat, 31 Jan 2015 20:42:04 +0000 (20:42 +0000)] 
Have ota use imposter tables to write to indexes instead of the sqlite3_index_writer() interface. The error handling in this version is broken in a few small ways.

FossilOrigin-Name: cdaeab467f6aa3217be161377a9b78a4eec37093

10 years agoMerge in support for the index_xinfo pragma.
drh [Sat, 31 Jan 2015 02:34:23 +0000 (02:34 +0000)] 
Merge in support for the index_xinfo pragma.

FossilOrigin-Name: f9b6dc77021ee421bffd5697d5d337d3bbd07eb9

10 years agoAdd the "index_xinfo" pragma. Add new columns to the "index_info" and
drh [Sat, 31 Jan 2015 02:00:01 +0000 (02:00 +0000)] 
Add the "index_xinfo" pragma.  Add new columns to the "index_info" and
"index_list" pragmas.

FossilOrigin-Name: 30f51d7b3b292191e8351223242e708bb7f3dfa6

10 years agoMerge the SQLITE_TESTCTRL_IMPOSTER changes from trunk.
drh [Fri, 30 Jan 2015 21:00:10 +0000 (21:00 +0000)] 
Merge the SQLITE_TESTCTRL_IMPOSTER changes from trunk.

FossilOrigin-Name: 3ed6eb2fab5d95709ef392170339e6dd5ba13971

10 years agoChange SQLITE_TESTCTRL_INITMODE to SQLITE_TESTCTRL_IMPOSTER. Revise the order
drh [Fri, 30 Jan 2015 20:59:27 +0000 (20:59 +0000)] 
Change SQLITE_TESTCTRL_INITMODE to SQLITE_TESTCTRL_IMPOSTER.  Revise the order
of parameters.  Give it the ability to reset the schema parse table so that
imposter tables can be erased.

FossilOrigin-Name: 42d5601739c90434e5adfda8fa99ef7b903877db

10 years agoMerge all recent trunk changes, and especially the SQLITE_TESTCTRL_INITMODE
drh [Fri, 30 Jan 2015 16:36:17 +0000 (16:36 +0000)] 
Merge all recent trunk changes, and especially the SQLITE_TESTCTRL_INITMODE
enhancement.

FossilOrigin-Name: 36436dde74ce2536a9a430b4458216499ad113bf

10 years agoAdded SQLITE_TESTCTRL_INITMODE for improved testability.
drh [Fri, 30 Jan 2015 15:52:26 +0000 (15:52 +0000)] 
Added SQLITE_TESTCTRL_INITMODE for improved testability.

FossilOrigin-Name: 98e029134dc1300d3ecb48b41b5107ec69ba85db

10 years agoAdd a few simple test cases for SQLITE_TESTCTRL_INITMODE - cases which initmode-testctrl
drh [Fri, 30 Jan 2015 15:40:15 +0000 (15:40 +0000)] 
Add a few simple test cases for SQLITE_TESTCTRL_INITMODE - cases which
also test PRAGMA integrity_check.

FossilOrigin-Name: 3a6e2afe408d2b0c8166d00def2048568169d87a

10 years agoFix some duplicated test names.
mistachkin [Thu, 29 Jan 2015 19:27:31 +0000 (19:27 +0000)] 
Fix some duplicated test names.

FossilOrigin-Name: 1797158db2a818134c5cba1578f69ed85948b980

10 years agoEnsure that "PRAGMA wal_checkpoint = TRUNCATE|FULL|RESTART" block on other connection...
dan [Thu, 29 Jan 2015 19:12:12 +0000 (19:12 +0000)] 
Ensure that "PRAGMA wal_checkpoint = TRUNCATE|FULL|RESTART" block on other connections and truncate the database file as required even if the entire wal file has already been checkpointed.

FossilOrigin-Name: 53429689d4fcf472edbc89cc50b5e69ba3270634

10 years agoSplit up the SRC variable in Makefile.msc to avoid over-long cmd.exe commands when...
drh [Thu, 29 Jan 2015 18:38:05 +0000 (18:38 +0000)] 
Split up the SRC variable in Makefile.msc to avoid over-long cmd.exe commands when TOP is set to a long pathname.

FossilOrigin-Name: 7d70ac65c16f08832a1f0fc4dec0f62a17cbcc85

10 years agoAdd the INITMODE test-control.
drh [Thu, 29 Jan 2015 17:54:52 +0000 (17:54 +0000)] 
Add the INITMODE test-control.

FossilOrigin-Name: 5940af8e7872209ce41feb958643b23f7e55d258

10 years agoOptimize range constraints on the rowid column of fts3/4 tables even if there is...
dan [Thu, 29 Jan 2015 11:52:22 +0000 (11:52 +0000)] 
Optimize range constraints on the rowid column of fts3/4 tables even if there is no MATCH clause in the query.

FossilOrigin-Name: 85dc12625d300fe48f3c096f54ebcb8b6ef4e30a

10 years agoAdd missing VdbeCoverage() macros to the sqlite3_index_writer() implementation.
drh [Wed, 28 Jan 2015 20:37:03 +0000 (20:37 +0000)] 
Add missing VdbeCoverage() macros to the sqlite3_index_writer() implementation.

FossilOrigin-Name: 6f8cda26e93f09eadf0b084131a1d4002d94d959

10 years agoWhen a "full", "restart" or "truncate" checkpoint is attempted, return SQLITE_BUSY...
dan [Wed, 28 Jan 2015 15:30:03 +0000 (15:30 +0000)] 
When a "full", "restart" or "truncate" checkpoint is attempted, return SQLITE_BUSY if a reader prevents the checkpointer from copying any frames at all into the database file.

FossilOrigin-Name: f270004016ef20f1963e0f1ad32e76bcbaeb6798

10 years agoCorrectly detect errors returned by walCheckpointStart() due to OOM.
drh [Wed, 28 Jan 2015 12:27:35 +0000 (12:27 +0000)] 
Correctly detect errors returned by walCheckpointStart() due to OOM.

FossilOrigin-Name: 8e878c20238ecf60e5d98d088a955e834ffd35c1

10 years agoMerge in all changes from trunk.
drh [Wed, 28 Jan 2015 12:00:40 +0000 (12:00 +0000)] 
Merge in all changes from trunk.

FossilOrigin-Name: 17c69be80542c5f84e21d60df3edc49422b087d9

10 years agoFix harmless compiler warnings.
mistachkin [Tue, 27 Jan 2015 21:24:33 +0000 (21:24 +0000)] 
Fix harmless compiler warnings.

FossilOrigin-Name: e7d2ec048c88237c124fbe598f8f7e950d43d90f

10 years agoFix a bug in the fts3 snippet() function causing it to omit leading separator charact...
dan [Tue, 27 Jan 2015 19:01:26 +0000 (19:01 +0000)] 
Fix a bug in the fts3 snippet() function causing it to omit leading separator characters from snippets that begin with the first token in a column.

FossilOrigin-Name: adc9283dd9bc3a6463f8c4fe23dd58a3712c349d

10 years agoImprove the performance of fts3/4 queries that use the OR operator and at least one...
dan [Tue, 27 Jan 2015 18:43:02 +0000 (18:43 +0000)] 
Improve the performance of fts3/4 queries that use the OR operator and at least one auxiliary fts function.

FossilOrigin-Name: 245e8730451fbdc1c729beff7295c452df604009

10 years agoFix a (almost always harmless) read past the end of a memory allocation
drh [Tue, 27 Jan 2015 13:17:05 +0000 (13:17 +0000)] 
Fix a (almost always harmless) read past the end of a memory allocation
that comes about because the Expr.pTab field is checked on an
EXPR_REDUCEDSIZE Expr object before checking the Expr.op field to
know that the Expr.pTab field is meaningless.

FossilOrigin-Name: e098de691002a78270540430b0df1e120582b53f

10 years agoThe va_list argument cannot take on a NULL value and cannot be compared with
drh [Sun, 25 Jan 2015 20:19:53 +0000 (20:19 +0000)] 
The va_list argument cannot take on a NULL value and cannot be compared with
NULL on some platforms (ex: ARM).  So do not attempt to do so.

FossilOrigin-Name: 1964e656b4b420e8d6a4ba12d270ed02db292b88

10 years agoIn the command-line shell, make sure stderr is unbuffered so that it
drh [Sat, 24 Jan 2015 12:12:57 +0000 (12:12 +0000)] 
In the command-line shell, make sure stderr is unbuffered so that it
automatically flushes.  This has always been the case already for unix and
on Windows when the output is a console, but apparently was not the case
on Windows when the output was a pipe.

FossilOrigin-Name: 2a9ea9b4a7d6904efb2112e32efe84123dfa75d7

10 years agoMake sure errors in the FROM clause of a SELECT cause analysis to abort
drh [Thu, 22 Jan 2015 12:00:17 +0000 (12:00 +0000)] 
Make sure errors in the FROM clause of a SELECT cause analysis to abort
and unwind the stack before those errors have a chance to mischief
in the "*" column-name wildcard expander. Fix for ticket [32b63d542433ca67].

FossilOrigin-Name: 9e6eae660a02303fd140dac5fbff82364f4120cd

10 years agoChange the undocumented ".selecttrace" command in the shell to accept
drh [Thu, 22 Jan 2015 11:29:25 +0000 (11:29 +0000)] 
Change the undocumented ".selecttrace" command in the shell to accept
an integer bitmask rather than a boolean.

FossilOrigin-Name: bd63bf882c5a925f921adc9cf7425d2e7950f0b2

10 years agoFix an assert() that may fail following an OOM error.
dan [Wed, 21 Jan 2015 17:00:57 +0000 (17:00 +0000)] 
Fix an assert() that may fail following an OOM error.

FossilOrigin-Name: 5f592359d6d41708da3b3ac9d987a1631bfa3d88

10 years agoFix harmless compiler warning seen with MSVC.
mistachkin [Wed, 21 Jan 2015 00:51:08 +0000 (00:51 +0000)] 
Fix harmless compiler warning seen with MSVC.

FossilOrigin-Name: 78c2e62bb4c529595aaaf2e1f5f26387ad977b1b

10 years agoEnhancements to entropy generation for the Win32 VFS.
mistachkin [Wed, 21 Jan 2015 00:48:46 +0000 (00:48 +0000)] 
Enhancements to entropy generation for the Win32 VFS.

FossilOrigin-Name: 26190b3c63e18f3116deeb59a58d9b5de48e8eea

10 years agoFix another instance of an incorrect value for KeyInfo.nXField on a
drh [Tue, 20 Jan 2015 03:04:29 +0000 (03:04 +0000)] 
Fix another instance of an incorrect value for KeyInfo.nXField on a
sorting index.  Ticket [f97c4637102a3ae72b79].

FossilOrigin-Name: 0077f64510f9b9ce90032df2696cb242d097ab84

10 years agoEnsure that the KeyInfo.nXField value for ephemeral tables used to implement
drh [Mon, 19 Jan 2015 21:36:05 +0000 (21:36 +0000)] 
Ensure that the KeyInfo.nXField value for ephemeral tables used to implement
ORDER BY or GROUP BY clauses is set correctly, so that the
sqlite3VdbeFindCompare() routine can choose the correct comparison function.
Add assert() statements to the high-speed comparison functions to detect
cases where they are inappropriately chosen.
Fix for ticket [f97c4637102a3ae72b7911].

FossilOrigin-Name: f7201bb0cdc9e1425c68599b32434de2231dca36

10 years agoThere are asserts in place now that will prevent a recurrence of tkt-f97c4637
drh [Mon, 19 Jan 2015 21:10:53 +0000 (21:10 +0000)] 
There are asserts in place now that will prevent a recurrence of
ticket [f97c4637102a3ae7].  Nevertheless, it is good to add some
test cases as well.

FossilOrigin-Name: e02959b9a0e1bacdd3939548d4434c042aacc2e6

10 years agoMake sure that the KeyInfo.nXField value of ephermeral tables used for
drh [Mon, 19 Jan 2015 20:59:34 +0000 (20:59 +0000)] 
Make sure that the KeyInfo.nXField value of ephermeral tables used for
ORDER BY and GROUP BY is set correctly, so that the correct comparison
function can be choosen by sqlite3VdbeFindCompare().

FossilOrigin-Name: c16bae5e699b851f4ca8414c5dfa5370b18f69f0

10 years agoFix the assert() of the previous check-in so that it works even when
drh [Mon, 19 Jan 2015 20:57:19 +0000 (20:57 +0000)] 
Fix the assert() of the previous check-in so that it works even when
compiled without SQLITE_DEBUG.

FossilOrigin-Name: 38868f845e1ad4d61354ab1ad39dd19e3e07c7fd

10 years agoFix compilation on Cygwin when SQLITE_MAX_WORKER_THREADS is greater than zero.
mistachkin [Mon, 19 Jan 2015 20:05:53 +0000 (20:05 +0000)] 
Fix compilation on Cygwin when SQLITE_MAX_WORKER_THREADS is greater than zero.

FossilOrigin-Name: 2037442c582e51d85967bc911ea4a412eb4da573

10 years agoAn alternative way of implementing the assert() that verifies the relative
drh [Mon, 19 Jan 2015 19:48:52 +0000 (19:48 +0000)] 
An alternative way of implementing the assert() that verifies the relative
values of KeyInfo.nField+KeyInfo.nXField and the number of columns in a record.
This version of the assert() only fires when the high-speed comparison
routines are used - which is to say it only fires when the constraint
actually matters.

FossilOrigin-Name: bf744b4908b096f301565f6a4ea8d56667c1d76a

10 years agoEnhance the command-line shell with the ability to set the
drh [Mon, 19 Jan 2015 15:05:54 +0000 (15:05 +0000)] 
Enhance the command-line shell with the ability to set the
SQLITE_TESTCTRL_NEVER_CORRUPT flag using: ".testctrl never_corrupt 1".

FossilOrigin-Name: 824328f9833d01fc155a9d0265ef41d338cf1ffb

10 years agoEliminate all use of sprintf(), strcpy() and strcat() from test logic because
drh [Mon, 19 Jan 2015 00:35:53 +0000 (00:35 +0000)] 
Eliminate all use of sprintf(), strcpy() and strcat() from test logic because
OpenBSD hates those functions.

FossilOrigin-Name: 10321910990195878c0af1e94b34ae0cdc0cb31b

10 years agoSet binary mode for output on Windows when writing a quoted string that
drh [Sun, 18 Jan 2015 20:30:23 +0000 (20:30 +0000)] 
Set binary mode for output on Windows when writing a quoted string that
might contain newline characters.

FossilOrigin-Name: 7096e6c06d9a3e48d3f0d134f5f3275dde796be2

10 years agoSet the command-line shell stdin to binary mode on windows.
drh [Sun, 18 Jan 2015 01:50:54 +0000 (01:50 +0000)] 
Set the command-line shell stdin to binary mode on windows.

FossilOrigin-Name: 80541e8b94b713e8f9e588ae047ffc5ae804ef1c

10 years agoFix a harmless compiler warning the VFS for Windows.
drh [Sat, 17 Jan 2015 15:26:28 +0000 (15:26 +0000)] 
Fix a harmless compiler warning the VFS for Windows.

FossilOrigin-Name: ceac571f53bdbc02616b21a4404cb1250030dea8

10 years agoFix harmless compiler warning.
mistachkin [Fri, 16 Jan 2015 19:35:45 +0000 (19:35 +0000)] 
Fix harmless compiler warning.

FossilOrigin-Name: cab46fb737ed3fc29dc8517f07bcfc72936df2b8

10 years agoVersion 3.8.8 version-3.8.8
drh [Fri, 16 Jan 2015 12:08:06 +0000 (12:08 +0000)] 
Version 3.8.8

FossilOrigin-Name: 7d68a42face3ab14ed88407d4331872f5b243fdf

10 years agoFix the spelling of "malloc_usable_size" in configure and configure.ac.
drh [Thu, 15 Jan 2015 17:38:35 +0000 (17:38 +0000)] 
Fix the spelling of "malloc_usable_size" in configure and configure.ac.

FossilOrigin-Name: 8f45217cbafef2297cdcec3fd69f4371dfb83922

10 years agoMakefile enhancements: (1) Rename autoconf/tea/configure.in to
drh [Thu, 15 Jan 2015 15:47:06 +0000 (15:47 +0000)] 
Makefile enhancements:  (1) Rename autoconf/tea/configure.in to
autoconf/tea/configure.ac so that it works with the latest versions of
autoconf.  (2) Add the "amalgamation-tarball" targets to Makefile.in and
main.mk (renamed from "dist" in the latter case).  (3) Update the
README.first file in autoconf/  (4) The TOP macro
in Makefile.in is now an absolute rather than a relative path.

FossilOrigin-Name: 3bafeec934e56f633d0de6890e84fca990e54435

10 years agoSimplify some code in rtree, to avoid confusing the optimizer in GCC on
drh [Tue, 13 Jan 2015 21:26:17 +0000 (21:26 +0000)] 
Simplify some code in rtree, to avoid confusing the optimizer in GCC on
some macs:
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00).
Prior to these changes, compiling with -O3 would cause incorrect code to
be generated.  The change to the nodeGetCell() routine is key.  The other
changes are merely cosmetic details discovered while bug hunting.

FossilOrigin-Name: 882181ff9dd75f32db266db6e476671021fc567b

10 years agoFix the e_walauto.test test module so that it works on both little-endian and
drh [Tue, 13 Jan 2015 01:12:43 +0000 (01:12 +0000)] 
Fix the e_walauto.test test module so that it works on both little-endian and
big-ending machines.

FossilOrigin-Name: 5682db7b871689b9ee764afe070736f378e8ae1b

10 years agoFix harmless compiler warnings when using -W4 with MSVC.
mistachkin [Mon, 12 Jan 2015 21:43:00 +0000 (21:43 +0000)] 
Fix harmless compiler warnings when using -W4 with MSVC.

FossilOrigin-Name: e693e11d1b9265974c32bddba873ea30a4d0b708

10 years agoFix harmless compiler warning in an assert() statement. msvcW4
mistachkin [Mon, 12 Jan 2015 20:25:33 +0000 (20:25 +0000)] 
Fix harmless compiler warning in an assert() statement.

FossilOrigin-Name: bdbeed01ddc60a4ab322621fc118cc4767660fd3

10 years agoAdd two more classes of harmless MSVC compiler warnings.
mistachkin [Mon, 12 Jan 2015 20:20:26 +0000 (20:20 +0000)] 
Add two more classes of harmless MSVC compiler warnings.

FossilOrigin-Name: de30d5b053b8e004418c81945d626cfad315d6ba

10 years agoSilence some harmless uninitialized local variable warnings.
mistachkin [Mon, 12 Jan 2015 19:59:12 +0000 (19:59 +0000)] 
Silence some harmless uninitialized local variable warnings.

FossilOrigin-Name: 44375a34e59d1b0f0d765a99dcc7e6f30a4be7f7

10 years agoHarmless compiler warning fixes for 'testfixture' and the miscellaneous extensions...
mistachkin [Mon, 12 Jan 2015 19:49:46 +0000 (19:49 +0000)] 
Harmless compiler warning fixes for 'testfixture' and the miscellaneous extensions when built with the MSVC makefile.

FossilOrigin-Name: 923fd66031ed1876bc63c3a038f0b8e33678184e

10 years agoMerge updates from trunk.
mistachkin [Mon, 12 Jan 2015 18:52:57 +0000 (18:52 +0000)] 
Merge updates from trunk.

FossilOrigin-Name: ca5f2c545216c82486e66d26f55b49cbf351ffdc

10 years agoGet things compiling cleanly with MSVC and W4.
mistachkin [Mon, 12 Jan 2015 18:52:41 +0000 (18:52 +0000)] 
Get things compiling cleanly with MSVC and W4.

FossilOrigin-Name: c8725fa5fa361959b0f0a3fb36f204905d6f0ae9

10 years agoFix some harmless compiler warnings.
mistachkin [Mon, 12 Jan 2015 18:38:02 +0000 (18:38 +0000)] 
Fix some harmless compiler warnings.

FossilOrigin-Name: 2b8eecbfe7935d3d9826fbcd473dd3a49138ad11

10 years agoFix comments and add another disabled warning for MSVC.
mistachkin [Mon, 12 Jan 2015 18:27:31 +0000 (18:27 +0000)] 
Fix comments and add another disabled warning for MSVC.

FossilOrigin-Name: 43b6b4cc051e5a801a992c56d2c82abcdcf45cec

10 years agoWork in progress on fixing harmless compiler warnings when using -W4 and MSVC.
mistachkin [Mon, 12 Jan 2015 18:02:52 +0000 (18:02 +0000)] 
Work in progress on fixing harmless compiler warnings when using -W4 and MSVC.

FossilOrigin-Name: 856dd245ce037f93d5ae2ddeb4fdf949c1e5c8e9

10 years agoAdd an assert() in order to calm a scan-build warning.
drh [Mon, 12 Jan 2015 17:56:06 +0000 (17:56 +0000)] 
Add an assert() in order to calm a scan-build warning.

FossilOrigin-Name: 11e81ac2a7c917f7c9afc218d104d9870daf9668

10 years agoAdd detection of the isnan() library function to the configure script. Make
drh [Sat, 10 Jan 2015 18:22:06 +0000 (18:22 +0000)] 
Add detection of the isnan() library function to the configure script.  Make
the code responsive to the HAVE_ISNAN configuration option.

FossilOrigin-Name: 46f3aba2692d74c29ab5c1f24a6daac600fd6af8

10 years agoMake use of the fdatasync() interface if the HAVE_FDATASYNC macro is true.
drh [Sat, 10 Jan 2015 18:02:45 +0000 (18:02 +0000)] 
Make use of the fdatasync() interface if the HAVE_FDATASYNC macro is true.

FossilOrigin-Name: 694228e4632c2999efa47ecb49f679c177db02e5

10 years agoImprovements to compile-time-option hygiene. Use "#if OPTION" instead of
drh [Sat, 10 Jan 2015 16:49:23 +0000 (16:49 +0000)] 
Improvements to compile-time-option hygiene.  Use "#if OPTION" instead of
"#ifdef OPTION" in cases where that makes sense, so that -DOPTION=0 will work.
Add the "Have-Not" configuration in releasetest.tcl which disables all of
the "HAVE_component" compile-time options.

FossilOrigin-Name: 9e92a5ed5aaba20461ed4ce8359d6e34e7773d68

10 years agoAdd the ability to put comments in the Config and Platform setup sections of
drh [Sat, 10 Jan 2015 15:21:26 +0000 (15:21 +0000)] 
Add the ability to put comments in the Config and Platform setup sections of
the releasetest.tcl script.

FossilOrigin-Name: d6f8c899d8f1bf66a2234e0eb91b259dd64eed31

10 years agoAutoconf configure script updates: (1) remove the long-obsolete
drh [Sat, 10 Jan 2015 14:27:17 +0000 (14:27 +0000)] 
Autoconf configure script updates:  (1) remove the long-obsolete
--enable-cross-thread-connections option.  (2) remove the --with-hints= options.
(3) Extension loading is enabled by default.  (4) Check for strchrnull()
(5) Update the --help text.

FossilOrigin-Name: 5004063ce4c8816125372ecc5fd52140489306dd

10 years agoChange the testfixture binary so that it explicitly enabled core files
drh [Fri, 9 Jan 2015 21:54:58 +0000 (21:54 +0000)] 
Change the testfixture binary so that it explicitly enabled core files
on a crash (on unix).  Add a test case to verify that this works.

FossilOrigin-Name: 90f422ed81311d7ab2a90a381d36cba9c20227fc

10 years agoAdd SQLITE_ENABLE_STMT_SCANSTATUS to the Update-Delete-Limit configuration
drh [Fri, 9 Jan 2015 20:00:21 +0000 (20:00 +0000)] 
Add SQLITE_ENABLE_STMT_SCANSTATUS to the Update-Delete-Limit configuration
in the releasetest.tcl script.

FossilOrigin-Name: c70d5edaf6327cb18df5285c3fc21b610f3d3294

10 years agoRemove an unused preprocessor macro from pcache.c.
drh [Fri, 9 Jan 2015 19:45:28 +0000 (19:45 +0000)] 
Remove an unused preprocessor macro from pcache.c.

FossilOrigin-Name: 88a7a967116a48aeb5fa7014613c0134b1b47bb3