]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
11 years agoMove the tointeger() and toreal() functions out of core and make them into
drh [Mon, 14 Oct 2013 21:14:42 +0000 (21:14 +0000)] 
Move the tointeger() and toreal() functions out of core and make them into
a run-time loadable extension.

FossilOrigin-Name: 9f66dd7e3790c04f0ab724419f5381bd21f9ebad

11 years agoFix a crash in FTS incremental phrase processing that can occur if the second or...
dan [Mon, 14 Oct 2013 20:30:51 +0000 (20:30 +0000)] 
Fix a crash in FTS incremental phrase processing that can occur if the second or subsequent token is much more common in the dataset than the first.

FossilOrigin-Name: 0bf438fc30582a08fddfc3cec49366ee17ae2abe

11 years agoAdd implementations for the toInteger() and toReal() SQL functions.
drh [Mon, 14 Oct 2013 19:35:33 +0000 (19:35 +0000)] 
Add implementations for the toInteger() and toReal() SQL functions.

FossilOrigin-Name: a0f7cbc068416cf55b86056f2ce7ee505c6cc3ea

11 years agoFix for building with SQLITE_OMIT_FOREIGN_KEY.
dan [Mon, 14 Oct 2013 15:41:39 +0000 (15:41 +0000)] 
Fix for building with SQLITE_OMIT_FOREIGN_KEY.

FossilOrigin-Name: b8b5f6c8f646989bc62bb59416de9bca003a5896

11 years agoUpdate the foreign_key_check pragma so that when a parent table is undefined
drh [Mon, 14 Oct 2013 14:30:02 +0000 (14:30 +0000)] 
Update the foreign_key_check pragma so that when a parent table is undefined
it is treated as an empty table.

FossilOrigin-Name: 208b259ad73b51e7df163fee3d7ed2bd79767597

11 years agoCorrects to comments on the STAT4 implementation.
drh [Mon, 14 Oct 2013 14:21:59 +0000 (14:21 +0000)] 
Corrects to comments on the STAT4 implementation.

FossilOrigin-Name: e06f74d32d44f281dd21908d401184f35f9455a4

11 years agoMake subroutines sampleCopy() and valueFromExpr() have file scope.
drh [Mon, 14 Oct 2013 13:21:00 +0000 (13:21 +0000)] 
Make subroutines sampleCopy() and valueFromExpr() have file scope.

FossilOrigin-Name: 1660efbe46439734c7dc1674994ceb86a9b41d1a

11 years agoAdd a new application_id for GeoPackage version 1.0.
drh [Mon, 14 Oct 2013 10:46:05 +0000 (10:46 +0000)] 
Add a new application_id for GeoPackage version 1.0.

FossilOrigin-Name: 98ddfe45713775657e586f5a2499cf3c036f13dd

11 years agoMerge updates from trunk. toTypeFuncs
mistachkin [Sat, 12 Oct 2013 23:39:49 +0000 (23:39 +0000)] 
Merge updates from trunk.

FossilOrigin-Name: a88b5be01e68b26267ff6eb05e931ef2e7fc9f99

11 years agoRestore the index_list pragma back to its former operation. Create a new
drh [Sat, 12 Oct 2013 20:22:00 +0000 (20:22 +0000)] 
Restore the index_list pragma back to its former operation.  Create a new
PRAGMA stats used to access the table and index widths and heights.

FossilOrigin-Name: f0cf8c85dcbcc7778aed2816792c368d777f79cb

11 years agoIn "PRAGMA foreign_key_check", treat missing parent tables as empty (instead of as... fkc-missing-parent-tables
dan [Sat, 12 Oct 2013 19:06:48 +0000 (19:06 +0000)] 
In "PRAGMA foreign_key_check", treat missing parent tables as empty (instead of as errors).

FossilOrigin-Name: 8c13a7fd738e5441af370537649b0bfa97679cda

11 years agoFix handling of "DROP TABLE" commands when "PRAGMA defer_foreign_keys=1" is set.
dan [Sat, 12 Oct 2013 15:12:43 +0000 (15:12 +0000)] 
Fix handling of "DROP TABLE" commands when "PRAGMA defer_foreign_keys=1" is set.

FossilOrigin-Name: 27001356ed8201529b3f31d4313f2010f1b4e1b1

11 years agoAdd tests that demonstrate that PRAGMA defer_foreign_keys will reset to off
drh [Sat, 12 Oct 2013 13:16:15 +0000 (13:16 +0000)] 
Add tests that demonstrate that PRAGMA defer_foreign_keys will reset to off
at the conclusion of the next transaction.

FossilOrigin-Name: 67e28a11de97e97889f0c0f41c05605721c605c1

11 years agoFix harmless compiler warning.
mistachkin [Sat, 12 Oct 2013 02:33:22 +0000 (02:33 +0000)] 
Fix harmless compiler warning.

FossilOrigin-Name: 4b130f88fba216e088f61252bbcdde57ec7ee6a9

11 years agoPermit the creation of VSIX packages for Win32.
mistachkin [Sat, 12 Oct 2013 02:31:34 +0000 (02:31 +0000)] 
Permit the creation of VSIX packages for Win32.

FossilOrigin-Name: 035d03e94252f31025b39da49d8401933352fb77

11 years agoFix Unicode character encoding issues on Windows.
mistachkin [Sat, 12 Oct 2013 00:56:21 +0000 (00:56 +0000)] 
Fix Unicode character encoding issues on Windows.

FossilOrigin-Name: c9310c9a2bad11f1d033a57b33ea7aed43a8238d

11 years agoIdentify requirements text in the SQLITE_CONFIG_ documentation. Fix a typo
drh [Fri, 11 Oct 2013 23:37:57 +0000 (23:37 +0000)] 
Identify requirements text in the SQLITE_CONFIG_ documentation.  Fix a typo
(a duplicated word) in part of that documentation.  Add some requirements
marks for DETACH to the test scripts.  No code changes.

FossilOrigin-Name: 1be0a3adaba2914c65c46fbebc4906ae4e70f899

11 years agoThe split amalgamation option should be disabled by default.
mistachkin [Fri, 11 Oct 2013 23:02:13 +0000 (23:02 +0000)] 
The split amalgamation option should be disabled by default.

FossilOrigin-Name: 7c24d22ffa1e12f3d24cad06b5ff7cc34219b2bb

11 years agoEnhance debugging support for the split amalgamation files when compiling with MSVC.
mistachkin [Fri, 11 Oct 2013 23:01:18 +0000 (23:01 +0000)] 
Enhance debugging support for the split amalgamation files when compiling with MSVC.

FossilOrigin-Name: 8ff17c553d8c159fa81c961441e16dbba8da62ba

11 years agoFix a harmless compiler warning in lemon.c.
drh [Fri, 11 Oct 2013 23:01:02 +0000 (23:01 +0000)] 
Fix a harmless compiler warning in lemon.c.

FossilOrigin-Name: 62959c0ce3a2c486ebd82e6511efad0412b944a0

11 years agoAdd -no-undefined option when linking the shared libraries.
mistachkin [Fri, 11 Oct 2013 22:19:55 +0000 (22:19 +0000)] 
Add -no-undefined option when linking the shared libraries.

FossilOrigin-Name: 977d2b12e5efc70c26129b08c1f6d65c9d6d211e

11 years agoFix test numbering.
mistachkin [Fri, 11 Oct 2013 22:17:39 +0000 (22:17 +0000)] 
Fix test numbering.

FossilOrigin-Name: cef39f6933dcfec4b4a087a05dbb4e7766003fb7

11 years agoAdd requirements marks. No code changes.
drh [Fri, 11 Oct 2013 20:14:37 +0000 (20:14 +0000)] 
Add requirements marks.  No code changes.

FossilOrigin-Name: 5e0d43ab55de006b20c58cb18b938d1c7b658e51

11 years agoAdditional test cases and requirements marks for the unlikely(),
drh [Fri, 11 Oct 2013 16:35:49 +0000 (16:35 +0000)] 
Additional test cases and requirements marks for the unlikely(),
likelihood() and instr() functions.

FossilOrigin-Name: 5f01cd36ee8678a07b79f9e01855daffb6bb8c43

11 years agoFix various harmless compiler warnings. Change the "warnings.sh" script to
drh [Fri, 11 Oct 2013 15:05:05 +0000 (15:05 +0000)] 
Fix various harmless compiler warnings.  Change the "warnings.sh" script to
work with STAT4 instead of STAT3.

FossilOrigin-Name: 7df06684ab36bfdad9e9aca6940b7a665c2a0cb5

11 years agoMake sure the sqlite3.h file occurs at the very top of the sqlite3.c
drh [Fri, 11 Oct 2013 13:27:26 +0000 (13:27 +0000)] 
Make sure the sqlite3.h file occurs at the very top of the sqlite3.c
amalgamation.

FossilOrigin-Name: 03593817ab5abdd4bbaa5e47e2e4745eef025af9

11 years agoFix compilation issue for WinRT.
mistachkin [Fri, 11 Oct 2013 05:51:15 +0000 (05:51 +0000)] 
Fix compilation issue for WinRT.

FossilOrigin-Name: 7a2006ca94c458c7b1eae7b2b6df51da67546462

11 years agoAdd a rule to the main.mk makefile for building showdb.
drh [Thu, 10 Oct 2013 17:33:52 +0000 (17:33 +0000)] 
Add a rule to the main.mk makefile for building showdb.

FossilOrigin-Name: fc5552da0d3c41aea58292d267c247f9ca8ed474

11 years agoEnhancements to the vfslog.c module to show all change-counter changes and
drh [Thu, 10 Oct 2013 15:04:52 +0000 (15:04 +0000)] 
Enhancements to the vfslog.c module to show all change-counter changes and
to show the hostname and pid of the process that creates each log file.

FossilOrigin-Name: af7abebeb1f70466833bc766d294d721eaef746f

11 years agoAnother fix to the hash signature algorithm in vfslog.c.
drh [Thu, 10 Oct 2013 13:41:04 +0000 (13:41 +0000)] 
Another fix to the hash signature algorithm in vfslog.c.

FossilOrigin-Name: 34212aa8c405c4ff3f8045ec0cf2a860af61540f

11 years agoFix the hash signature algorithm in vfslog.c. Add a utility program to
drh [Thu, 10 Oct 2013 13:38:51 +0000 (13:38 +0000)] 
Fix the hash signature algorithm in vfslog.c.  Add a utility program to
show the hash signatures for every page of a database file.

FossilOrigin-Name: eaf4de13a63b2294ae575432a022493308a4313a

11 years agoAdd ext/misc/vfslog.c, a VFS shim for unix that keeps a log of method calls made...
dan [Thu, 10 Oct 2013 13:04:46 +0000 (13:04 +0000)] 
Add ext/misc/vfslog.c, a VFS shim for unix that keeps a log of method calls made by SQLite.

FossilOrigin-Name: 24a827b87666670c56d68a18685f4f712852fa92

11 years agoEstimate row sizes for tables and indices and use those estimates during
drh [Thu, 10 Oct 2013 12:38:11 +0000 (12:38 +0000)] 
Estimate row sizes for tables and indices and use those estimates during
query planning.  Enhance the index_info pragma to show the estimated row
sizes and to show the estimated row size for the main table as well.  Allow
an alternative row size estimate to be specified in the sqlite_stat1 table.

FossilOrigin-Name: d27b88b8c2705f444f794096c719e6f38a792165

11 years agoMake sure the correct printf format is used for type tRowcnt regardless row-size-est
drh [Wed, 9 Oct 2013 19:07:22 +0000 (19:07 +0000)] 
Make sure the correct printf format is used for type tRowcnt regardless
of whether 32-bit or 64-bit row counts are specified at compile-time.

FossilOrigin-Name: e97d7d3044aa6c5e21d1faab7d5e709d92faa261

11 years agoMove a conditional inside of an #ifdef in order to make all branches
drh [Tue, 8 Oct 2013 23:16:48 +0000 (23:16 +0000)] 
Move a conditional inside of an #ifdef in order to make all branches
reachable regardless of compile-time options used.

FossilOrigin-Name: f7cc30d45b77f58c258b21f5823c2b39a44e2bf5

11 years agoFix test cases for the new information in PRAGMA index_list.
drh [Tue, 8 Oct 2013 22:25:22 +0000 (22:25 +0000)] 
Fix test cases for the new information in PRAGMA index_list.

FossilOrigin-Name: dd03be1065537679c2daf5e4200902c47714fceb

11 years agoRollback some of the previous changes in the branch such that the estimated
drh [Tue, 8 Oct 2013 20:42:41 +0000 (20:42 +0000)] 
Rollback some of the previous changes in the branch such that the estimated
row sizes are now only used as a tie-breaker for index scans.

FossilOrigin-Name: 65553ff34b41e54d129ff2fee96be714105503c4

11 years agoUse #ifdefs to omit unused code in the columnType() routine depending on
drh [Tue, 8 Oct 2013 20:01:35 +0000 (20:01 +0000)] 
Use #ifdefs to omit unused code in the columnType() routine depending on
compile-time options.

FossilOrigin-Name: 3fd5e33217a91402b3499fa0977469b91618a928

11 years agoFurther refinement of the idea of multiplying run-time cost estimates by
drh [Tue, 8 Oct 2013 18:40:37 +0000 (18:40 +0000)] 
Further refinement of the idea of multiplying run-time cost estimates by
the estimated row size.

FossilOrigin-Name: 18bd6ba96d19de6047baebfa15b1f739577c9ec4

11 years agoFix compilation issue with MSVC.
mistachkin [Mon, 7 Oct 2013 21:49:16 +0000 (21:49 +0000)] 
Fix compilation issue with MSVC.

FossilOrigin-Name: 36d64dc36f18c166b2c93c43579fa3bbb5cd545f

11 years agoMultiply all cursor step cost estimates by the estimated size of the row in
drh [Mon, 7 Oct 2013 17:32:15 +0000 (17:32 +0000)] 
Multiply all cursor step cost estimates by the estimated size of the row in
bytes, in order to get the query planner ot make use of estimated row sizes.
This check-in uses magic numbers in a few places (for example, estimates of
the size of output rows) and needs lots of refinement.  Consider this a
proof-of-concept only.

FossilOrigin-Name: cb34cfe57c2a664fbfae8106e95114400ea222d5

11 years agoMerge bug fixes from trunk.
drh [Mon, 7 Oct 2013 10:48:06 +0000 (10:48 +0000)] 
Merge bug fixes from trunk.

FossilOrigin-Name: 1d7b2dc0eae70c0c0e523b715acf758bb4cfa9ac

11 years agoRestore the hexrekey pragma which was accidently deleted during the
drh [Mon, 7 Oct 2013 00:36:01 +0000 (00:36 +0000)] 
Restore the hexrekey pragma which was accidently deleted during the
pragma refactoring.  Make sure the hexkey and hexrekey pragmas do not
overflow buffers with a over-length key.

FossilOrigin-Name: 0aca31e1514b3df254c049b4251bcb199831681a

11 years agoRemove an incorrect debugging assert() that was accidently added during the
drh [Sun, 6 Oct 2013 22:52:51 +0000 (22:52 +0000)] 
Remove an incorrect debugging assert() that was accidently added during the
STAT4 enhancement.

FossilOrigin-Name: 2bb7f74bbd467b74581699d16b06758f9c9457dc

11 years agoAccept the sz=N parameter on table-only lines of sqlite_stat1.
drh [Sun, 6 Oct 2013 22:12:41 +0000 (22:12 +0000)] 
Accept the sz=N parameter on table-only lines of sqlite_stat1.

FossilOrigin-Name: e9e932aa400f217e383cda9922fbde8a4356f57a

11 years agoFix an issue in the test8.c test module that arises because of the change
drh [Sat, 5 Oct 2013 20:18:25 +0000 (20:18 +0000)] 
Fix an issue in the test8.c test module that arises because of the change
to PRAGMA index_list().  Remove an unused local variable.

FossilOrigin-Name: 029430c503f243a34439698779db7e591cfbe126

11 years agoCompletely remove the iScanRatio field. The PRAGMA index_list(TABLE) command
drh [Sat, 5 Oct 2013 19:18:00 +0000 (19:18 +0000)] 
Completely remove the iScanRatio field.  The PRAGMA index_list(TABLE) command
shows the estimated row size in the forth column.  It also generates a row
for the table with an index name of NULL.  The query planner still does not
take row size estimates into account - that is the next step.

FossilOrigin-Name: 8b4aa0c7a2122bbe60432edadf27e490e31ec987

11 years agoImprovements to the LogEst command-line tool used to convert between
drh [Sat, 5 Oct 2013 18:32:30 +0000 (18:32 +0000)] 
Improvements to the LogEst command-line tool used to convert between
ordinary numbers and the LogEst representation.

FossilOrigin-Name: 5252aeb61988e511dcf8d527fa81e51a5c9385f9

11 years agoBegin an experimental refactoring to estimate the average number of bytes
drh [Sat, 5 Oct 2013 18:16:02 +0000 (18:16 +0000)] 
Begin an experimental refactoring to estimate the average number of bytes
in table and index rows and to use that information in query planner.
Begin by renaming WhereCost to LogEst and making that type and its
conversion routines available outside of where.c.

FossilOrigin-Name: 66c4a251d61582b47d5cbe50cbca160a9209bd06

11 years agoIn the index_list pragma, make sure the "r" column is the same on output index-scan-rate
drh [Sat, 5 Oct 2013 02:56:25 +0000 (02:56 +0000)] 
In the index_list pragma, make sure the "r" column is the same on output
as it was on input in the sqlite_stat1 table.

FossilOrigin-Name: de78250ad2a6210dd4f03045248f7192d64427f2

11 years agoMerge trunk changes.
drh [Fri, 4 Oct 2013 20:39:44 +0000 (20:39 +0000)] 
Merge trunk changes.

FossilOrigin-Name: c6ac80ed8d5240dd30783d62d9f133e159809dec

11 years agoFurther refinements of the index scanning speed logic.
drh [Fri, 4 Oct 2013 18:29:25 +0000 (18:29 +0000)] 
Further refinements of the index scanning speed logic.

FossilOrigin-Name: e5d9371da92b4cc2c1df177cf40e0ced4d4c7421

11 years agoIf an "INSERT INTO ... SELECT" can use the xfer optimization, pass the OPFLAG_BULKCSR...
dan [Fri, 4 Oct 2013 18:17:18 +0000 (18:17 +0000)] 
If an "INSERT INTO ... SELECT" can use the xfer optimization, pass the OPFLAG_BULKCSR hint to btree cursors used to update indices. This results in a tighter key packing.

FossilOrigin-Name: 087af29ee2e1572f8668dd0152a14d7f9796a530

11 years agoFix test cases so that they work when the query planner uses index size
drh [Fri, 4 Oct 2013 15:58:59 +0000 (15:58 +0000)] 
Fix test cases so that they work when the query planner uses index size
estimates to determine whether or not to try an covering index scan.

FossilOrigin-Name: 2f394de88f23dacd3c61e586a4214ffc6f927d97

11 years agoImproved estimates of the relative speed of index scans based on declared
drh [Fri, 4 Oct 2013 15:30:21 +0000 (15:30 +0000)] 
Improved estimates of the relative speed of index scans based on declared
datatypes of columns in the table.  Add "r" column to PRAGMA index_info,
showing the estimated relative scan rate.

FossilOrigin-Name: 07462bb6059f023c22a6c84a4a02afbd84e69255

11 years agoProgress toward using the iScanRatio information on indices. Many tests
drh [Fri, 4 Oct 2013 02:36:19 +0000 (02:36 +0000)] 
Progress toward using the iScanRatio information on indices.  Many tests
are still failing.

FossilOrigin-Name: 6c352edbba85a15ca356b5e131f4b3b2723d1774

11 years agoMake sure the count(*) optimization works correctly even when partial
drh [Fri, 4 Oct 2013 00:00:12 +0000 (00:00 +0000)] 
Make sure the count(*) optimization works correctly even when partial
indices are present.  Ticket [a5c8ed66cae].

FossilOrigin-Name: 9f2f4c0a50808910ad01c8c4352367f25747be08

11 years agoHave FTS take advantage of "docid<?" constraints when they are present. Extend the...
dan [Thu, 3 Oct 2013 20:41:18 +0000 (20:41 +0000)] 
Have FTS take advantage of "docid<?" constraints when they are present. Extend the FTS "incremental doclist" optimization so that it is used for tokens within multi-token phrases.

FossilOrigin-Name: baf8ce5916ea9baf0ec557263cb9c7ecf716431f

11 years agoMerge latest trunk changes. fts4-docid-range-constraints
dan [Thu, 3 Oct 2013 20:28:22 +0000 (20:28 +0000)] 
Merge latest trunk changes.

FossilOrigin-Name: 24aa20da222a9cc181473bc41d0f8791be91fa97

11 years agoAllow FTS4 multi-token phrases to use a combination of in-memory and incrementally...
dan [Thu, 3 Oct 2013 19:27:14 +0000 (19:27 +0000)] 
Allow FTS4 multi-token phrases to use a combination of in-memory and incrementally loaded doclists. This allows phrases to (partially) benefit from incremental doclists without disabling the deferred token optimization.

FossilOrigin-Name: f6819c5f3363d358e7ef65fe6978f13991bd44af

11 years agoExperimental branch allowing different postulated scan rates for each index.
drh [Thu, 3 Oct 2013 19:21:41 +0000 (19:21 +0000)] 
Experimental branch allowing different postulated scan rates for each index.

FossilOrigin-Name: d59d97b0a8d70dc31d45db61bbc11ebb5375a224

11 years agoThe sqlite3FixInit() routine cannot fail. So change the return type from "int"
drh [Thu, 3 Oct 2013 15:39:44 +0000 (15:39 +0000)] 
The sqlite3FixInit() routine cannot fail.  So change the return type from "int"
to "void".

FossilOrigin-Name: 500c5932fe3f5fcd0940522f7839d581c555e0eb

11 years agoRework the PRAGMA implementation to only call sqlite3ReadSchema() from a single
drh [Thu, 3 Oct 2013 14:08:07 +0000 (14:08 +0000)] 
Rework the PRAGMA implementation to only call sqlite3ReadSchema() from a single
place, based on a flag in the pragma table, rather than separately from each
case which needs the schema.

FossilOrigin-Name: 8338232a111be16d6c2ab57176d0a23a001f02ad

11 years agoReturn an error if an attempt is made to create a trigger with an SQL variable embedd...
dan [Thu, 3 Oct 2013 12:29:38 +0000 (12:29 +0000)] 
Return an error if an attempt is made to create a trigger with an SQL variable embedded within it. If such a variable reference is found within a trigger definition loaded from the sqlite_master table, silently replace it with a NULL.

FossilOrigin-Name: f35f6ae3da77dbdf5f7a4a9927475659fc6e0ca6

11 years agoRemove unnecessary memset() calls from test code.
drh [Thu, 3 Oct 2013 11:27:56 +0000 (11:27 +0000)] 
Remove unnecessary memset() calls from test code.

FossilOrigin-Name: eec3187bc68ddebdbc2113f77c7f5cd32e9be61f

11 years agoIn the lemon parser generator, change all hashes to unsigned to avoid
drh [Wed, 2 Oct 2013 20:46:30 +0000 (20:46 +0000)] 
In the lemon parser generator, change all hashes to unsigned to avoid
potential problems with signed integer overflow.

FossilOrigin-Name: 8d399a03de63c15908d63ed69140ee15c6275b8d

11 years agoAdd a test to check that the new multi-token phrase optimization is actually helping.
dan [Wed, 2 Oct 2013 08:04:27 +0000 (08:04 +0000)] 
Add a test to check that the new multi-token phrase optimization is actually helping.

FossilOrigin-Name: bc3a2ed5fb2402805928b0002457eebf06f87c47

11 years agoBring some file format comments in btreeInt.h up to date.
drh [Tue, 1 Oct 2013 20:29:30 +0000 (20:29 +0000)] 
Bring some file format comments in btreeInt.h up to date.

FossilOrigin-Name: 012d54d0d2b40888d08915082592ba75d70891c1

11 years agoMerge trunk changes with this branch.
dan [Tue, 1 Oct 2013 20:10:26 +0000 (20:10 +0000)] 
Merge trunk changes with this branch.

FossilOrigin-Name: 65d9c6fafbc19d3582e07c31fd915a70e7fcfa8e

11 years agoAllow multi-token phrases to load doclists from the database incrementally. This...
dan [Tue, 1 Oct 2013 20:02:32 +0000 (20:02 +0000)] 
Allow multi-token phrases to load doclists from the database incrementally. This allows queries that feature such phrases to benefit from the "docid<?" optimization.

FossilOrigin-Name: ea543f081d93ed1bf66c21ce2108ec94e349f4c5

11 years agoFix comments in the fast_vacuum.c demonstration program.
drh [Tue, 1 Oct 2013 19:36:15 +0000 (19:36 +0000)] 
Fix comments in the fast_vacuum.c demonstration program.

FossilOrigin-Name: e0db7b38e1bc0edb1c3995cb23c46488aa6a0909

11 years agoAdd the "fast_vacuum.c" demonstration program to the tool/ subdirectgory.
drh [Tue, 1 Oct 2013 19:02:56 +0000 (19:02 +0000)] 
Add the "fast_vacuum.c" demonstration program to the tool/ subdirectgory.

FossilOrigin-Name: 2b60320d57a4638ebf97a2854527649c671d108e

11 years agoChange the ".dump" command in the command-line shell so that it COMMITs
drh [Tue, 1 Oct 2013 15:30:05 +0000 (15:30 +0000)] 
Change the ".dump" command in the command-line shell so that it COMMITs
if there are database corruption errors but invokes ROLLBACK on any other
kind of error.

FossilOrigin-Name: 473234632ff7617680ab151076153f5c1088e55b

11 years agoFix a minor typo in a comment in where.c.
drh [Mon, 30 Sep 2013 19:33:06 +0000 (19:33 +0000)] 
Fix a minor typo in a comment in where.c.

FossilOrigin-Name: 9c9fa151e9a3bdab0264c08b66cbcc89d61bfca5

11 years agoAdd some timing tests to the amatch test script.
drh [Mon, 30 Sep 2013 19:05:03 +0000 (19:05 +0000)] 
Add some timing tests to the amatch test script.

FossilOrigin-Name: ad71c72be56786d8dcf6917efd10a8d3c2d50419

11 years agoMerge trunk changes with this branch.
dan [Mon, 30 Sep 2013 18:16:07 +0000 (18:16 +0000)] 
Merge trunk changes with this branch.

FossilOrigin-Name: e294a9c7c525d1da698259c2fef089579bfd1c0b

11 years agoFix a performance problem in the FTS4 auxiliary functions triggered by an OR clause...
dan [Mon, 30 Sep 2013 18:14:45 +0000 (18:14 +0000)] 
Fix a performance problem in the FTS4 auxiliary functions triggered by an OR clause in the full-text query.

FossilOrigin-Name: fa0f2f0e3e79ae653118b901e1cca7725dfaf249

11 years agoFix memory leaks in the amatch extension. Add a few simple test cases.
drh [Mon, 30 Sep 2013 17:37:15 +0000 (17:37 +0000)] 
Fix memory leaks in the amatch extension.  Add a few simple test cases.

FossilOrigin-Name: 604134732e309a738e21bcb4240b9ff285d2bfe4

11 years agoHave fts4 full-text queries consider "docid<?" and similar constraints.
dan [Mon, 30 Sep 2013 11:42:19 +0000 (11:42 +0000)] 
Have fts4 full-text queries consider "docid<?" and similar constraints.

FossilOrigin-Name: 6622424a3a149edd35ba2ba0881aa41b4536417b

11 years agoUpdate and modernize an obsolete comment associated with VACUUM. No
drh [Mon, 30 Sep 2013 11:01:28 +0000 (11:01 +0000)] 
Update and modernize an obsolete comment associated with VACUUM.  No
changes to code.

FossilOrigin-Name: 94c914e3fa632f88a0d0c14537f81aa46759e2be

11 years agoFix typo in comment. No changes to code.
mistachkin [Sun, 29 Sep 2013 04:56:43 +0000 (04:56 +0000)] 
Fix typo in comment.  No changes to code.

FossilOrigin-Name: 0b7bd46825b09c9e46290baee3e239344ca5bf0e

11 years agoAdd new test file fts3defer3.test.
dan [Sat, 28 Sep 2013 16:43:49 +0000 (16:43 +0000)] 
Add new test file fts3defer3.test.

FossilOrigin-Name: a6cd14effef0a4e5520eea871523e6e7a7d30aef

11 years agoIn the nextchar.c extension, allow the second argument to the next_char()
drh [Sat, 28 Sep 2013 13:28:40 +0000 (13:28 +0000)] 
In the nextchar.c extension, allow the second argument to the next_char()
function to be a subquery.

FossilOrigin-Name: 59b9fa223681a7329533b350be7bf5a0a3609255

11 years agoUpdates to the sqlite3_analyzer utility: Change the names of some labels,
drh [Sat, 28 Sep 2013 12:40:55 +0000 (12:40 +0000)] 
Updates to the sqlite3_analyzer utility:  Change the names of some labels,
especially change "Fragmentation" to "Non-sequential pages".  Revise the
computation of non-sequential pages so that it ignores itercalated non-leaf
pages (overflow and index pages).

FossilOrigin-Name: 3e5c7771fa91d8ae1e495432329b87af87b1ebc6

11 years agoObtain the required shared-cache write-lock when executing "DELETE FROM tbl" statemen...
dan [Thu, 26 Sep 2013 15:21:16 +0000 (15:21 +0000)] 
Obtain the required shared-cache write-lock when executing "DELETE FROM tbl" statements. Fix for [1e1321ee98].

FossilOrigin-Name: 1f8f4fdf3ff2b8de27e167a44a19b0f479f5ee1a

11 years agoFix a faulty assert() in sqlite3BtreeBeginTrans() that may fail in shared-cache mode.
dan [Thu, 26 Sep 2013 11:04:33 +0000 (11:04 +0000)] 
Fix a faulty assert() in sqlite3BtreeBeginTrans() that may fail in shared-cache mode.

FossilOrigin-Name: 1e1321ee985370c2b7e5bd64286bb4d7704b5a30

11 years agoMerge updates from trunk.
mistachkin [Tue, 24 Sep 2013 19:07:48 +0000 (19:07 +0000)] 
Merge updates from trunk.

FossilOrigin-Name: 435ce3b3fc0cffb4d7e6f2694c3100066e19f9ed

11 years agoTest that the unicode61 tokenchars= and separators= options work with the fts3tokeniz...
dan [Wed, 18 Sep 2013 11:16:32 +0000 (11:16 +0000)] 
Test that the unicode61 tokenchars= and separators= options work with the fts3tokenize virtual table.

FossilOrigin-Name: ed24051462c09220ebfb82a347b4a2b5c820ef63

11 years agoClear the current time value on prepared statements when the prepared statement
drh [Tue, 17 Sep 2013 23:36:33 +0000 (23:36 +0000)] 
Clear the current time value on prepared statements when the prepared statement
is reset.

FossilOrigin-Name: cebd6fc551d26aea0f28cd7d25338fe0b72aae88

11 years agoReadability improvements to the Win32 RC file.
mistachkin [Mon, 16 Sep 2013 20:46:34 +0000 (20:46 +0000)] 
Readability improvements to the Win32 RC file.

FossilOrigin-Name: e64590625774228b5602a66cfb087cf74e2b438b

11 years agoMinor consistency fixes to the Win32 RC file.
mistachkin [Mon, 16 Sep 2013 19:27:36 +0000 (19:27 +0000)] 
Minor consistency fixes to the Win32 RC file.

FossilOrigin-Name: 619c5211b91aef98794e2e0a6f03832619fc83c0

11 years agoThe date and time functions use the exact same notion of "now" for every
drh [Mon, 16 Sep 2013 12:57:19 +0000 (12:57 +0000)] 
The date and time functions use the exact same notion of "now" for every
invocation within the same call to sqlite3_step().

FossilOrigin-Name: daf6ba413cb3cb6065774ba07495eab4a28b49b0

11 years agoFix Windows SDK compiler warning.
mistachkin [Fri, 13 Sep 2013 23:27:39 +0000 (23:27 +0000)] 
Fix Windows SDK compiler warning.

FossilOrigin-Name: d5fc3f1dabc7227230dcabdd808357f63432357b

11 years agoFix test issues for Windows portability.
mistachkin [Fri, 13 Sep 2013 23:26:47 +0000 (23:26 +0000)] 
Fix test issues for Windows portability.

FossilOrigin-Name: 650b32825a85baff11b8e568649fd797066c8ab1

11 years agoVSIX tooling changes to support Visual Studio 2013.
mistachkin [Fri, 13 Sep 2013 22:38:54 +0000 (22:38 +0000)] 
VSIX tooling changes to support Visual Studio 2013.

FossilOrigin-Name: d56fac40313e7d2e77dac3e2bc47cbbb3d10c656

11 years agoFix the "const" qualifiers on the pragma name table.
drh [Fri, 13 Sep 2013 21:03:45 +0000 (21:03 +0000)] 
Fix the "const" qualifiers on the pragma name table.

FossilOrigin-Name: b74e6be818fa7d19f1af6d86ad1d2ecba334b01b

11 years agoAdd the soft_heap_limit pragma.
drh [Fri, 13 Sep 2013 21:01:56 +0000 (21:01 +0000)] 
Add the soft_heap_limit pragma.

FossilOrigin-Name: c326356f9a18bff5cf36bd59331e2cc207e349fa

11 years agoTweak the new PRAGMA name parser to achieve full branch test coverage.
drh [Fri, 13 Sep 2013 19:00:06 +0000 (19:00 +0000)] 
Tweak the new PRAGMA name parser to achieve full branch test coverage.

FossilOrigin-Name: c82e05c4b8e000684d95ac8417afaef5e4d633e6

11 years agoRemove one unreachable branch and add asserts() to dupedExprStructSize().
drh [Fri, 13 Sep 2013 18:15:15 +0000 (18:15 +0000)] 
Remove one unreachable branch and add asserts() to dupedExprStructSize().
New asserts verify that removed branch is unused and that constants that are
ORed together in the output do not overlap.

FossilOrigin-Name: 86ad358b5a7567857f2f998fbb8266b7de9ec87e

11 years agoAdjust the query planner to take into account WHERE clause terms that do not
drh [Fri, 13 Sep 2013 17:47:57 +0000 (17:47 +0000)] 
Adjust the query planner to take into account WHERE clause terms that do not
drive indices.  Add the unlikely() and likelihood() functions used to give
hints to the query planner about the selectivity of WHERE clause terms.

FossilOrigin-Name: bc446449a19171c0fa0681973b06bc80d3c0517f