]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
10 years agoAdd the BtCursor.pPage field which is the current page to which the cursor btree-current-page-cache
drh [Wed, 15 Apr 2015 19:13:26 +0000 (19:13 +0000)] 
Add the BtCursor.pPage field which is the current page to which the cursor
points, for a very small performance gain.

FossilOrigin-Name: a200e1eae9a1350ed2aed9bfe70042fec05dd98b

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

10 years agoChange the multiSelectOrderBy() routine to return non-zero if there has
drh [Wed, 15 Apr 2015 07:10:25 +0000 (07:10 +0000)] 
Change the multiSelectOrderBy() routine to return non-zero if there has
been any prior error.

FossilOrigin-Name: 14784c317bff05dd0a74e2596432dfd12c139391

10 years agoFix a faulty assert() statement in the name resolver associated with the
drh [Wed, 15 Apr 2015 06:45:13 +0000 (06:45 +0000)] 
Fix a faulty assert() statement in the name resolver associated with the
optimization that converts compound selects with ORDER BY COLLATE into
subqueries.

FossilOrigin-Name: c72324ef9243946550ae3d974826502b1cc5eb10

10 years agoCorrectly handle COLLATE operators applied to COLLATE operators in an
drh [Wed, 15 Apr 2015 05:57:50 +0000 (05:57 +0000)] 
Correctly handle COLLATE operators applied to COLLATE operators in an
ORDER BY clause.

FossilOrigin-Name: 9e1f837b08facbc7a2b6196770599a58233e725c

10 years agoFix a faulty assert() in the sqlite3StrAccumAppend() routine.
drh [Wed, 15 Apr 2015 05:38:35 +0000 (05:38 +0000)] 
Fix a faulty assert() in the sqlite3StrAccumAppend() routine.

FossilOrigin-Name: 998cfdb8dcda2cac94b83326751e16dcef8b267f

10 years agoCorrectly deal with an unknown collating sequence on an indexed DISTINCT query.
drh [Wed, 15 Apr 2015 05:31:02 +0000 (05:31 +0000)] 
Correctly deal with an unknown collating sequence on an indexed DISTINCT query.

FossilOrigin-Name: a0b6e2fed3e95cf78ed0515c6e4da7510af4e86a

10 years agoWhen adding the implied "LIMIT 1" to the end of a scalar subquery, make sure
drh [Wed, 15 Apr 2015 05:20:44 +0000 (05:20 +0000)] 
When adding the implied "LIMIT 1" to the end of a scalar subquery, make sure
that subquery is not a VALUES-only query as such queries cannot deal with
LIMIT clauses.

FossilOrigin-Name: 7c27310bdf6b4af44a0811a2787ed64966d720d2

10 years agoWhen doing the (dubious) conversion of double-quoted identifier into string
drh [Wed, 15 Apr 2015 04:51:28 +0000 (04:51 +0000)] 
When doing the (dubious) conversion of double-quoted identifier into string
literal for MySQL compatibility, be sure to also clear the iTable value from
the Expr entry to avoid an assert.

FossilOrigin-Name: d7211b68107ea669de39e0aa81a1be40901e1487

10 years agoAdd a test case for what was formerly thought to be an unreachable condition:
drh [Wed, 15 Apr 2015 04:20:58 +0000 (04:20 +0000)] 
Add a test case for what was formerly thought to be an unreachable condition:
when the LHS of an OR operator contains an error and the RHS contains an IN
operator.

FossilOrigin-Name: 3872742591add4e94033484c2844e7d7ab69674b

10 years agoAn oversize hex literal can cause a parsing error while generating code for
drh [Wed, 15 Apr 2015 04:10:50 +0000 (04:10 +0000)] 
An oversize hex literal can cause a parsing error while generating code for
constants that are factored out of the main body of the VDBE program.  So
allow for that case.

FossilOrigin-Name: a084690b4fcabba20d9770ebf3a014dda84e2954

10 years agoAdd the --summary option to the sqldiff command-line tool.
drh [Tue, 14 Apr 2015 19:01:08 +0000 (19:01 +0000)] 
Add the --summary option to the sqldiff command-line tool.

FossilOrigin-Name: 88b22761c59b06fa86c57f8d22a46046ad17d5d5

10 years agoUpdate API documentation to identify many functions as methods on objects.
drh [Tue, 14 Apr 2015 15:14:06 +0000 (15:14 +0000)] 
Update API documentation to identify many functions as methods on objects.
No changes to code.

FossilOrigin-Name: b549cbcee1c11f9ffedf763ca672b125eac87bfe

10 years agoAdd #ifdef magic for HAVE_GETHOSTUUID so that the build will hopefully now
drh [Mon, 13 Apr 2015 23:05:28 +0000 (23:05 +0000)] 
Add #ifdef magic for HAVE_GETHOSTUUID so that the build will hopefully now
work on more verions of MacOS with SQLITE_ENABLE_LOCKING_STYLE turned on.

FossilOrigin-Name: 211411d02c0729c9af0e3cc7e4910db2e7e0d08e

10 years agoOn a DETACH statement, keep all schemas intact except fo the one that is
drh [Mon, 13 Apr 2015 22:26:55 +0000 (22:26 +0000)] 
On a DETACH statement, keep all schemas intact except fo the one that is
being detached, and thus avoid unnecessary schema reparsing.

FossilOrigin-Name: 661db19b34566642dd44ee4cff4ebc093cb8a552

10 years agoOmit the "pc" or "program counter" variable from the VDBE loop for 0.6%
drh [Mon, 13 Apr 2015 21:39:54 +0000 (21:39 +0000)] 
Omit the "pc" or "program counter" variable from the VDBE loop for 0.6%
performance increase.

FossilOrigin-Name: d2f10c41a832f520de13cf8315be22e66552f8e1

10 years agoRemove the out2-prerelease VDBE opcode property and its associated code,
drh [Mon, 13 Apr 2015 19:14:06 +0000 (19:14 +0000)] 
Remove the out2-prerelease VDBE opcode property and its associated code,
for a 0.5% performance improvement.

FossilOrigin-Name: e29c7f2c910dac07f0f92dfef5e0e743141954eb

10 years agoAdd a comment to wal.c to explain why a race condition is safe.
dan [Mon, 13 Apr 2015 17:43:43 +0000 (17:43 +0000)] 
Add a comment to wal.c to explain why a race condition is safe.

FossilOrigin-Name: bc33af866403c23d548dd4705675315810d52d7f

10 years agoRemove a faulty assert() from the btree balancing logic.
drh [Mon, 13 Apr 2015 14:44:01 +0000 (14:44 +0000)] 
Remove a faulty assert() from the btree balancing logic.

FossilOrigin-Name: d06669d968c8f6af8799fbfeabadaab68b9b8db8

10 years agoTest that if the definition of a collation sequence is changed and VACUUM run, the...
dan [Mon, 13 Apr 2015 14:08:27 +0000 (14:08 +0000)] 
Test that if the definition of a collation sequence is changed and VACUUM run, the new database contains records sorted in the (new) correct order.

FossilOrigin-Name: ce6eaac10a190b26b87bfe75918e2ef58fd7a3f9

10 years agoRemove an unreachable branch from the VACUUM logic.
drh [Mon, 13 Apr 2015 14:03:54 +0000 (14:03 +0000)] 
Remove an unreachable branch from the VACUUM logic.

FossilOrigin-Name: 65ace4b062d9454a296c5a1aa7ea7316b1507ad4

10 years agoRemove an unreachable branch from the vdbeSorterCompareInt() routine.
drh [Mon, 13 Apr 2015 12:45:58 +0000 (12:45 +0000)] 
Remove an unreachable branch from the vdbeSorterCompareInt() routine.

FossilOrigin-Name: f666ef06869f4fb655c43daacf5034c17575d951

10 years agoUpdate the version number to 3.8.10 because of the new sort optimizations from check...
drh [Sun, 12 Apr 2015 21:28:50 +0000 (21:28 +0000)] 
Update the version number to 3.8.10 because of the new sort optimizations from check-in [79326d6eec].

FossilOrigin-Name: bd2cfa1d72368db91064bace298df3d77d9963e6

10 years agoFix a problem with a stale Select.pWith pointer when a CTE is used together
drh [Sun, 12 Apr 2015 17:35:27 +0000 (17:35 +0000)] 
Fix a problem with a stale Select.pWith pointer when a CTE is used together
with a compound query and an ORDER BY clause.

FossilOrigin-Name: 9a453f52a2b30595891604ede7d4acf61c2736a1

10 years agoAvoid problems when a query has a GROUP BY and an ORDER BY but no FROM clause.
drh [Sun, 12 Apr 2015 01:22:04 +0000 (01:22 +0000)] 
Avoid problems when a query has a GROUP BY and an ORDER BY but no FROM clause.

FossilOrigin-Name: e527d96a1e098ade4e9d124b630a8c2ea2ac9b36

10 years agoOptimizations for VACUUM, CREATE INDEX and some cases of ORDER BY.
dan [Sat, 11 Apr 2015 20:44:28 +0000 (20:44 +0000)] 
Optimizations for VACUUM, CREATE INDEX and some cases of ORDER BY.

FossilOrigin-Name: 79326d6eece926fd1c148b29f0b726208d8b44c0

10 years agoFix a problem with sorting large amounts of partially ordered data.
dan [Sat, 11 Apr 2015 20:20:29 +0000 (20:20 +0000)] 
Fix a problem with sorting large amounts of partially ordered data.

FossilOrigin-Name: acca97efda86a0c020854d2dd9da16f5879986b1

10 years agoMerge latest trunk changes with this branch.
dan [Sat, 11 Apr 2015 18:45:55 +0000 (18:45 +0000)] 
Merge latest trunk changes with this branch.

FossilOrigin-Name: cf7590f607d94a120385576b538484ca738349e2

10 years agoAdd the --changeset option to the sqldiff utility program, for generating
drh [Sat, 11 Apr 2015 13:49:16 +0000 (13:49 +0000)] 
Add the --changeset option to the sqldiff utility program, for generating
a sessions changeset file instead of an SQL diff.

FossilOrigin-Name: f9a3a8391c28cf13d76ec54f471735d35059acea

10 years agoThe --changeset option now appears to be working. sqldiff-changeset
drh [Sat, 11 Apr 2015 13:48:01 +0000 (13:48 +0000)] 
The --changeset option now appears to be working.

FossilOrigin-Name: 1a2e2803920dcf64190d81d8a487d6c3c9bb28ee

10 years agoFirst complete attempt to generate a working changeset. Still contains bugs.
drh [Sat, 11 Apr 2015 12:07:40 +0000 (12:07 +0000)] 
First complete attempt to generate a working changeset.  Still contains bugs.

FossilOrigin-Name: 5611fa9bd5b8fd762d16ce9b0853c2e779a1a1b7

10 years agoUpdate tests in whereD.test to account for the change in the previous commit.
dan [Sat, 11 Apr 2015 11:53:39 +0000 (11:53 +0000)] 
Update tests in whereD.test to account for the change in the previous commit.

FossilOrigin-Name: da49700ca148d91e1b8863c2eb6ee79144e83ac9

10 years agoDo not assume an index contains unique entries unless it is declared UNIQUE and NOT...
dan [Sat, 11 Apr 2015 11:44:27 +0000 (11:44 +0000)] 
Do not assume an index contains unique entries unless it is declared UNIQUE and NOT NULL is specified for all columns. Fix for [7b4fee9f6c].

FossilOrigin-Name: e3b1f625518edc0e925116668dca5d25c3232b59

10 years agoDetect and report oversized records constructed from multiple zeroblobs.
drh [Sat, 11 Apr 2015 02:08:48 +0000 (02:08 +0000)] 
Detect and report oversized records constructed from multiple zeroblobs.

FossilOrigin-Name: 9e139afd92116ebc593114ed63b57c8f469653f6

10 years agoMinor build enhancements for MSVC.
mistachkin [Fri, 10 Apr 2015 21:16:11 +0000 (21:16 +0000)] 
Minor build enhancements for MSVC.

FossilOrigin-Name: 40c417a7efb17221cec4a0a703863854bcab8db2

10 years agoWork toward adding the --changeset option to the sqldiff utility program.
drh [Fri, 10 Apr 2015 19:41:18 +0000 (19:41 +0000)] 
Work toward adding the --changeset option to the sqldiff utility program.
Changes are incomplete.  This is an incremental check-in.

FossilOrigin-Name: 463e38d765f9d055b63792a8ea15c3782657b07f

10 years agoIn sqlite3_declare_vtab(), avoid accessing the database structure until after the...
dan [Fri, 10 Apr 2015 16:05:33 +0000 (16:05 +0000)] 
In sqlite3_declare_vtab(), avoid accessing the database structure until after the "api-armour" safety-check has completed and the db mutex has been obtained.

FossilOrigin-Name: 860e4f8a94901d451fac3954960c1d2f589e8882

10 years agoFix foreign key CASCADE for cases where the parent key is an INTEGER PRIMARY
drh [Fri, 10 Apr 2015 12:04:57 +0000 (12:04 +0000)] 
Fix foreign key CASCADE for cases where the parent key is an INTEGER PRIMARY
KEY and the parent table contains other columns named "rowid", "_rowid_",
and "oid".

FossilOrigin-Name: ed3cbaab6ad49b0cb5b17e44def26c866919387a

10 years agoUpdate this branch with latest trunk changes.
dan [Fri, 10 Apr 2015 08:20:42 +0000 (08:20 +0000)] 
Update this branch with latest trunk changes.

FossilOrigin-Name: 60be9c1c1ad0d8250a99cadda820dff40a31c94e

10 years agoDo not allow virtual table constructors to be called recursively.
dan [Fri, 10 Apr 2015 07:55:07 +0000 (07:55 +0000)] 
Do not allow virtual table constructors to be called recursively.

FossilOrigin-Name: 0a72726da21581ab16cb3e964bd825b8f2e931e4

10 years agoFix incorrect column names in UPDATE statements generated by the sqldiff
drh [Thu, 9 Apr 2015 19:39:54 +0000 (19:39 +0000)] 
Fix incorrect column names in UPDATE statements generated by the sqldiff
utility.

FossilOrigin-Name: ee53b46011852e27db23708387fe1e918cc8284c

10 years agoAdd the --primarykey option to the sqldiff tool, which causes it to use the
drh [Thu, 9 Apr 2015 18:14:03 +0000 (18:14 +0000)] 
Add the --primarykey option to the sqldiff tool, which causes it to use the
schema-defined PRIMARY KEY.

FossilOrigin-Name: 5063f9070afde9374ea0f2bc338fee840d8b3dd4

10 years agoRemove two pointless assert() statements. This should silence harmless
drh [Thu, 9 Apr 2015 16:30:56 +0000 (16:30 +0000)] 
Remove two pointless assert() statements.  This should silence harmless
compiler warnings reported at
[https://bugzilla.mozilla.org/show_bug.cgi?id=1152845]

FossilOrigin-Name: 83b342a44ffc9ea07dc4d59f2866cefc68ee4f13

10 years agoFix comment typos in the sqldiff.c utility program.
drh [Thu, 9 Apr 2015 13:40:18 +0000 (13:40 +0000)] 
Fix comment typos in the sqldiff.c utility program.

FossilOrigin-Name: 32ab2bb990746a84f5944e3cf428fb2dff3628da

10 years agoAdd the "sqldiff" utility program.
drh [Thu, 9 Apr 2015 13:34:29 +0000 (13:34 +0000)] 
Add the "sqldiff" utility program.

FossilOrigin-Name: 88da5bf5d2c4f848dbd4b5ffb1539abfbbdaff18

10 years agoRemove a variable initializion to silence a harmless compiler warning.
drh [Thu, 9 Apr 2015 11:24:03 +0000 (11:24 +0000)] 
Remove a variable initializion to silence a harmless compiler warning.

FossilOrigin-Name: 79861adbef8998c0f23e160543af8212d5546cd0

10 years agoVersion 3.8.9 version-3.8.9
drh [Wed, 8 Apr 2015 12:16:33 +0000 (12:16 +0000)] 
Version 3.8.9

FossilOrigin-Name: 8a8ffc862e96f57aa698f93de10dee28e69f6e09

10 years agoAvoid signed integer overflow when converting oversized in-line integer
drh [Tue, 7 Apr 2015 15:39:29 +0000 (15:39 +0000)] 
Avoid signed integer overflow when converting oversized in-line integer
widths and precisions in printf().

FossilOrigin-Name: 8e4ac2ce24415926247961b00a62425ae85d6ffb

10 years agoAnother change to avoid a problem caused by integer overflow in the printf() code.
dan [Tue, 7 Apr 2015 14:38:57 +0000 (14:38 +0000)] 
Another change to avoid a problem caused by integer overflow in the printf() code.

FossilOrigin-Name: 95625ef3adc3c408d67e70f877f390445fbb8292

10 years agoFurther changes to guard against integer overflow in the width and precision
drh [Tue, 7 Apr 2015 13:28:41 +0000 (13:28 +0000)] 
Further changes to guard against integer overflow in the width and precision
of printf() arguments.

FossilOrigin-Name: 5ce4e7d7651e5c72a59f03f7aeb366291e62ab57

10 years agoGuard against excessive width and precision in floating-point conversions
drh [Tue, 7 Apr 2015 12:41:17 +0000 (12:41 +0000)] 
Guard against excessive width and precision in floating-point conversions
in the printf routines.

FossilOrigin-Name: c494171f77dc2e5e04cb6d865e688448f04e5920

10 years agoFix a problem with fts3 prefix terms within phrase queries on "order=DESC" tables...
dan [Mon, 6 Apr 2015 11:04:51 +0000 (11:04 +0000)] 
Fix a problem with fts3 prefix terms within phrase queries on "order=DESC" tables with a mix of negative and positive rowids.

FossilOrigin-Name: 3ad829e50faca538db3abb2afb898b5521550c5c

10 years agoFix a problem with fts3 prefix terms within phrase queries on "order=DESC" tables... fts3-prefix-query-fix
dan [Mon, 6 Apr 2015 09:05:29 +0000 (09:05 +0000)] 
Fix a problem with fts3 prefix terms within phrase queries on "order=DESC" tables with a mix of negative and positive rowids.

FossilOrigin-Name: 0cdf502885ea7e5805d7ba3719f055f5d48fc78d

10 years agoFix a problem with resolving ORDER BY clauses that feature COLLATE clauses attached...
dan [Sat, 4 Apr 2015 16:49:04 +0000 (16:49 +0000)] 
Fix a problem with resolving ORDER BY clauses that feature COLLATE clauses attached to compound SELECT statements.

FossilOrigin-Name: edc1de2a588fd50c0049bb2be76d3f6783443165

10 years agoFix a problem with resolving ORDER BY clauses that feature COLLATE clauses attached... compound-order-by-fix
dan [Sat, 4 Apr 2015 16:43:16 +0000 (16:43 +0000)] 
Fix a problem with resolving ORDER BY clauses that feature COLLATE clauses attached to compound SELECT statements.

FossilOrigin-Name: 427b50fba7362e5b447e79d39050f25ed2ef10af

10 years agoEnhance the 'releasetest.tcl' tool to support MSVC.
mistachkin [Sat, 4 Apr 2015 00:02:07 +0000 (00:02 +0000)] 
Enhance the 'releasetest.tcl' tool to support MSVC.

FossilOrigin-Name: f664bfdc82597a4530d4f4938bb96557b43b171b

10 years agoDisable the SQLITE_FCNTL_WAL_BLOCK feature for now. It needs more work and
drh [Fri, 3 Apr 2015 20:33:33 +0000 (20:33 +0000)] 
Disable the SQLITE_FCNTL_WAL_BLOCK feature for now.  It needs more work and
is not yet ready for release.

FossilOrigin-Name: 4ae9a3acc4eeeb7998769eb856c97c2233476f72

10 years agoAdd source code to the "showlocks" utility program in the tool/ subdirectory.
drh [Fri, 3 Apr 2015 18:33:40 +0000 (18:33 +0000)] 
Add source code to the "showlocks" utility program in the tool/ subdirectory.

FossilOrigin-Name: 6868cc66d2be67b7f03776c982962ffa4b30de11

10 years agoFix build with OSTRACE enabled on Windows when building using separate source files.
mistachkin [Thu, 2 Apr 2015 17:46:52 +0000 (17:46 +0000)] 
Fix build with OSTRACE enabled on Windows when building using separate source files.

FossilOrigin-Name: 5f6e35802fcf7b5e9fc3dd4424e9074523fa8ad3

10 years agoDisable e_walauto.test on OpenBSD, as it requires a coherent cache.
dan [Thu, 2 Apr 2015 15:24:53 +0000 (15:24 +0000)] 
Disable e_walauto.test on OpenBSD, as it requires a coherent cache.

FossilOrigin-Name: 90701227085b8b8eb10a8eebe8d55f38b4778574

10 years agoFix a problem in vdbesort.c to do with caching unpacked records.
dan [Thu, 2 Apr 2015 09:06:21 +0000 (09:06 +0000)] 
Fix a problem in vdbesort.c to do with caching unpacked records.

FossilOrigin-Name: 80a00539506c95443165a781d1d869205057ca6c

10 years agoMerge latest trunk changes with this branch.
dan [Wed, 1 Apr 2015 18:22:26 +0000 (18:22 +0000)] 
Merge latest trunk changes with this branch.

FossilOrigin-Name: 4621b2eef8be6d944f87de097bd11c649fe43333

10 years agoWhen vacuuming an index that uses no collations other than BINARY, assume that the...
dan [Wed, 1 Apr 2015 18:20:25 +0000 (18:20 +0000)] 
When vacuuming an index that uses no collations other than BINARY, assume that the order of index entries will not be changed by the VACUUM.

FossilOrigin-Name: e403460b96814ac8cb976d58b27939b3bd3c61f9

10 years agoReduce the CPU used by CREATE INDEX statements by taking better advantage of the...
dan [Wed, 1 Apr 2015 16:18:00 +0000 (16:18 +0000)] 
Reduce the CPU used by CREATE INDEX statements by taking better advantage of the fact that keys are inserted in sorted order.

FossilOrigin-Name: 592cdc5d7254be7032aa9c0b03405a74ca060b51

10 years agoImproved detection and suppression of endless loops in clearDatabasePage().
drh [Wed, 1 Apr 2015 13:21:33 +0000 (13:21 +0000)] 
Improved detection and suppression of endless loops in clearDatabasePage().

FossilOrigin-Name: 30011ad2f55cfcacaf23a58ebcc17b17a7b9355e

10 years agoImproved tracing and debugging support on windows.
drh [Wed, 1 Apr 2015 01:26:12 +0000 (01:26 +0000)] 
Improved tracing and debugging support on windows.

FossilOrigin-Name: 5c965a71b957fdb0310ac1af9bf2fc3b418af668

10 years agoOn windows, flush the mapping view when syncing content to disk.
drh [Tue, 31 Mar 2015 19:40:05 +0000 (19:40 +0000)] 
On windows, flush the mapping view when syncing content to disk.

FossilOrigin-Name: a828e73dc1ae50189bdf73f60caeb7308738ad7a

10 years agoSet the winShm.id member when it is going to be traced.
mistachkin [Tue, 31 Mar 2015 19:17:44 +0000 (19:17 +0000)] 
Set the winShm.id member when it is going to be traced.

FossilOrigin-Name: fa7916b67efbc44e6f115bb0d32d8b92fd0acf3c

10 years agoBuild fixes for OSTRACE enhancements.
mistachkin [Tue, 31 Mar 2015 19:06:46 +0000 (19:06 +0000)] 
Build fixes for OSTRACE enhancements.

FossilOrigin-Name: f79c236fc537ecee1ea7448a3e3216a2415561a1

10 years agoPath portability enhancements for mptester.exe.
drh [Tue, 31 Mar 2015 18:18:53 +0000 (18:18 +0000)] 
Path portability enhancements for mptester.exe.

FossilOrigin-Name: c8694657bdc5d0917d8fe78fd3937d8e9cd9d04b

10 years agoAdd the "mptest" target to main.mk. Change TRUNCATE and PERSIST to DELETE
drh [Tue, 31 Mar 2015 18:05:49 +0000 (18:05 +0000)] 
Add the "mptest" target to main.mk.  Change TRUNCATE and PERSIST to DELETE
for mptest.c on Windows because of problems trying to delete the journal.

FossilOrigin-Name: ea697e6d9ff1f4d77774589a02ba4a18feafbf03

10 years agoPath handling portability enhancements for mptester.
mistachkin [Tue, 31 Mar 2015 17:58:13 +0000 (17:58 +0000)] 
Path handling portability enhancements for mptester.

FossilOrigin-Name: da49634b331812fa4d6e33d72c9661aeab203ae8

10 years agoTesting enhancements on Windows.
mistachkin [Tue, 31 Mar 2015 17:45:44 +0000 (17:45 +0000)] 
Testing enhancements on Windows.

FossilOrigin-Name: 9cc70eee2e365dd390210f436b893b9d80a19b04

10 years agoChange the sqlite3_log() message generated on a retry after delay in os_win
drh [Tue, 31 Mar 2015 17:32:06 +0000 (17:32 +0000)] 
Change the sqlite3_log() message generated on a retry after delay in os_win
to be an SQLITE_NOTICE instead of SQLITE_IOERR.

FossilOrigin-Name: 5d533eee049e63b3700f5ef7c28c588afccde57a

10 years agoFix configure.ac and Makefile.in so that they generate pkgIndex.tcl correctly.
drh [Tue, 31 Mar 2015 17:01:52 +0000 (17:01 +0000)] 
Fix configure.ac and Makefile.in so that they generate pkgIndex.tcl correctly.

FossilOrigin-Name: 3deff25249c59b7fc1b6eb65dda39736955679c6

10 years agoMinor tweaks to the MSVC Makefile.
mistachkin [Tue, 31 Mar 2015 16:42:16 +0000 (16:42 +0000)] 
Minor tweaks to the MSVC Makefile.

FossilOrigin-Name: 7244ea59ede8aa2c7d1dc2c85268e12ddd452e27

10 years agoHandle very large URI pathnames for in-memory shared-cache databases.
drh [Tue, 31 Mar 2015 16:33:08 +0000 (16:33 +0000)] 
Handle very large URI pathnames for in-memory shared-cache databases.

FossilOrigin-Name: 586a94e85bc13700a2093734711c1367fa814b8c

10 years agoFix harmless compiler warnings in lemon.c
drh [Tue, 31 Mar 2015 15:15:48 +0000 (15:15 +0000)] 
Fix harmless compiler warnings in lemon.c

FossilOrigin-Name: bbe7dcda689a25860f2104804f00ba0a720c1372

10 years agoFix the corruptJ.test case so that it works with and without
drh [Tue, 31 Mar 2015 14:31:41 +0000 (14:31 +0000)] 
Fix the corruptJ.test case so that it works with and without
SQLITE_SECURE_DELETE.

FossilOrigin-Name: 0c0ecfd68573957553b966229a67bfcd10ce4b99

10 years agoAdditional logging information output by mptester.
drh [Tue, 31 Mar 2015 14:18:29 +0000 (14:18 +0000)] 
Additional logging information output by mptester.

FossilOrigin-Name: 0cbbf6e4571ffef102c0e515f29166f2f2022126

10 years agoAdd the "mptest" target to Makefile.msc
drh [Tue, 31 Mar 2015 13:46:13 +0000 (13:46 +0000)] 
Add the "mptest" target to Makefile.msc

FossilOrigin-Name: 1e814e0bd116ad5a05ab9f0ebed7e21b23ed0681

10 years agoEnsure that comparison operators do not mess up the MEM_Dyn flag on registers
drh [Tue, 31 Mar 2015 11:42:23 +0000 (11:42 +0000)] 
Ensure that comparison operators do not mess up the MEM_Dyn flag on registers
when reverting affinity changes.

FossilOrigin-Name: 02e3c88fbf6abdcf3975fb0fb71972b0ab30da30

10 years agoPrevent a possible infinite loop when trying to DROP a table from
drh [Mon, 30 Mar 2015 23:43:56 +0000 (23:43 +0000)] 
Prevent a possible infinite loop when trying to DROP a table from
a corrupt database.

FossilOrigin-Name: 395bb3e677a6551b06ba96fc58c393132b93d1e8

10 years agoImprove performance of multi-field sorts where the first field has a low cardinality.
dan [Mon, 30 Mar 2015 12:06:26 +0000 (12:06 +0000)] 
Improve performance of multi-field sorts where the first field has a low cardinality.

FossilOrigin-Name: 601e7b6b8e6bfabda03b70f75094c9014e3a3c49

10 years agoRemove some unnecessary code from vdbesort.c.
dan [Mon, 30 Mar 2015 09:58:38 +0000 (09:58 +0000)] 
Remove some unnecessary code from vdbesort.c.

FossilOrigin-Name: b58191e91736b1d978db4127f22867dfe2302f7c

10 years agoFurther optimizations for sorting records that begin with integer or text values.
dan [Sat, 28 Mar 2015 19:56:41 +0000 (19:56 +0000)] 
Further optimizations for sorting records that begin with integer or text values.

FossilOrigin-Name: 24fe9f25d64ee516633fed1ae7ebc21554aa69ca

10 years agoMerge updates from trunk. winViewFlush
mistachkin [Fri, 27 Mar 2015 18:22:01 +0000 (18:22 +0000)] 
Merge updates from trunk.

FossilOrigin-Name: 45acf6a85150839d591316418dad59ae20ce3aa4

10 years agoEnhancements to OSTRACE usage in the Win32 VFS.
mistachkin [Fri, 27 Mar 2015 18:20:25 +0000 (18:20 +0000)] 
Enhancements to OSTRACE usage in the Win32 VFS.

FossilOrigin-Name: ab5800291e1908b5b51d912feeacf748dc9be14b

10 years agoFix the ".testctrl imposter" command in the command-line shell to be
drh [Fri, 27 Mar 2015 02:27:20 +0000 (02:27 +0000)] 
Fix the ".testctrl imposter" command in the command-line shell to be
consistent in error reporting and results with the other .testctrl
commands.

FossilOrigin-Name: 0ec08ba8a0fa188146b071a489908332693ba59a

10 years agoUsing MSVC, get the sqlite3IoTrace variable working with the USE_STDCALL and/or DYNAM...
mistachkin [Fri, 27 Mar 2015 00:21:52 +0000 (00:21 +0000)] 
Using MSVC, get the sqlite3IoTrace variable working with the USE_STDCALL and/or DYNAMIC_SHELL options.

FossilOrigin-Name: fe976c9130f6eecfa0a10347ee3f800f32051b89

10 years agoIn the MSVC Makefile, make the DYNAMIC_SHELL option work without USE_STDCALL.
mistachkin [Fri, 27 Mar 2015 00:19:31 +0000 (00:19 +0000)] 
In the MSVC Makefile, make the DYNAMIC_SHELL option work without USE_STDCALL.

FossilOrigin-Name: 25b46a9c7e03a84bee2ffddc6d7fd6ae280e9d7b

10 years agoWhen syncing a memory mapped file on Windows, flush the mapped view as well.
mistachkin [Thu, 26 Mar 2015 23:36:35 +0000 (23:36 +0000)] 
When syncing a memory mapped file on Windows, flush the mapped view as well.

FossilOrigin-Name: df204049b9ec8dd3e43ed7dc251eaecedc05af4b