SQLite
Timeline
Not logged in

7778 descendants and 10581 ancestors of [4e6e07a6]

2017-06-28
01:21
[6480916c] Leaf: Simplify error handling logic in sqlite3_exec() to save about 40 bytes. (user: drh, tags: trunk)
01:12
[bfc4e7f3] Minor code simplification in the ALTER TABLE logic. (user: drh, tags: trunk)
00:55
[29d6ceb3] Avoid an unnecessary call to sqlite3XPrintf() in the code generator, for a performance improvement. (user: drh, tags: trunk)
2017-06-27
23:36
[b82efd2a] Add SQLITE_DBCONFIG_ENABLE_QPSG that forces the query planner stability guarantee. This is the fix for ticket [b9f010107724c] (user: drh, tags: trunk)
22:33
[d0f6973d] Leaf: Improve a local variable name. (user: mistachkin, tags: lsm-vtab)
22:27
[7e669d9b] Initial work on porting lsmtest to Win32. (user: mistachkin, tags: lsm-vtab)
20:23
[dfa9a4d5] Leaf: Support clients within a single process only. (user: dan, tags: server-process-edition)
18:15
[dbe9c8aa] Implement xFullpath for Win32. (user: mistachkin, tags: lsm-vtab)
16:48
[2b095406] Leaf: Merge latest trunk changes with this branch. (user: dan, tags: apple-osx)
16:39
[87b38166] Fix a virtual table problem that can occur when the vtab is on the RHS of a LEFT JOIN and there is a MATCH constraint in the ON clause, or when the vtab is in a sub-query that is the RHS of a LEFT JOIN and there is a MATCH constraint in the WHERE clause of the sub-query. (user: dan, tags: trunk)
06:28
[e1cf8a78] Minor corrections to the previous check-in. (user: mistachkin, tags: lsm-vtab)
05:59
[2017636e] Work in progress porting lsm1 to Win32. (user: mistachkin, tags: lsm-vtab)
2017-06-26
21:08
[18f0616e] Add the -withoutnulls option to the "db eval" method in the TCL interface. (user: drh, tags: trunk)
18:42
[7c15d762] The ".import" command of the shell, and the csv virtual table extension both ignore a single UTF-8 BOM at the beginning of their input. (user: drh, tags: trunk)
16:13
[cbe441b2] Closed-Leaf: Add the "-unsetnull 1" option to the "sqlite3" command in the TCL interface. (user: drh, tags: unsetnull-option)
14:46
[ebcfa73e] Closed-Leaf: Make sure sqlite3VdbeSetVarmask() is never invoked when QPSG is enabled. (user: drh, tags: enable-QPSG)
13:57
[7076e828] Add the SQLITE_DBCONFIG_ENABLE_QPSG option to activate the query planner stability guarantee. This involves refactoring the sqlite3.flags bitvector to carve out a free bit to use. (user: drh, tags: enable-QPSG)
11:46
[ca8a7e99] Remove an invalid assert() from lsm test code. (user: dan, tags: lsm-vtab)
08:24
[461ced77] Fix another problem with multi-threaded mode in the LSM test code. (user: dan, tags: lsm-vtab)
07:31
[d7015475] Update a test case to reflect the fact that the lsm blocksize is configured in KiB. And defaults to 1024, not 2048. (user: dan, tags: lsm-vtab)
06:53
[23f16382] Fix some compiler warnings in lsm_file.c. (user: dan, tags: lsm-vtab)
2017-06-24
19:21
[c8186874] Disable shell tests for the .schema command if virtual tables are not available. (user: drh, tags: trunk)
18:10
[7b59c353] Leaf: Consider the values bound to SQL variables when determining whether or not a partial index may be used. (user: dan, tags: partial-index-variables)
16:35
[c2ea6293] Make sure the config.h header is included by ctime.c, if that header exists. (user: drh, tags: trunk)
16:03
[f0ec36d4] Query planner tuning: When deciding between two plans with the same cost, bias the selection toward the one that does not use the sorter. (user: drh, tags: trunk)
13:31
[0583b84a] Make sure enough memory is allocated for pathological quoting cases when computing a quoted table name in the command-line shell. (user: drh, tags: trunk)
2017-06-23
21:05
[53b14a38] Merge all recent trunk enhancements into the apple-osx branch. (user: drh, tags: apple-osx)
15:47
[712267c9] When generating individual loops for each ORed term of an OR scan, move any constant WHERE expressions outside of the loop, as is done for top-level loops. (user: dan, tags: trunk)
2017-06-22
16:51
[e4a022be] Closed-Leaf: When generating individual loops for each ORed term of an OR scan, move any constant WHERE expressions outside of the loop, as is done for top-level loops. (user: dan, tags: or-optimization)
2017-06-21
01:36
[118f7bb3] Enable pragma virtual tables for the integrity_check, quick_check, and foreign_key_check pragmas. (user: drh, tags: trunk)
2017-06-20
19:20
[d8568aac] Leaf: Ensure that test tool "tserver" finalizes all statements before attempting to close a database handle. (user: dan, tags: server-edition)
18:19
[94e420ec] Rename the azCompileOpt global constant to avoid a harmless compiler warning about a name conflict with a local variable. (user: drh, tags: trunk)
17:43
[48346268] Ensure that the query planner knows that any column of a flattened LEFT JOIN can be NULL even if that column is labeled with "NOT NULL". Fix for ticket [892fc34f173e99d8]. (user: dan, tags: trunk)
2017-06-19
11:44
[f1682f0f] Leaf: Experimental "PRAGMA secure_delete=FAST" pragma. The intent is to overwrite deleted content with zeros without increasing the amount of disk I/O. (user: drh, tags: fast-secure-delete)
2017-06-17
19:06
[c21628e9] Leaf: Avoid adding an artifical "LIMIT 1" on scalar subqueries that do not need it. This seems like a pointless optimization as it makes minimal run-time difference but does increase code complexity. Parked on a branch for historical reference. (user: drh, tags: subquery-limit-opt)
18:49
[f3db02f4] Fix a missing comma in the previous check-in. (user: drh, tags: trunk)
17:55
[9a443397] Rework the code in ctime.c a bit to report on more compile time options. And to only output configuration options passed in to SQLite, not the default values of #define symbols set automatically. Also generate the large array in ctime.c using new script tool/mkctime.tcl, instead of entering it manually. (user: dan, tags: trunk)
17:29
[95141c64] Leaf: Ensure that the value of the THREADSAFE symbol is always included when reporting compile time options, even if it was not explicitly configured. (user: dan, tags: ctime-refactor)
16:39
[603838fc] Add extra test cases for sqlite3changeset_apply() and ALTER TABLE ADD COLUMN. (user: dan, tags: trunk)
09:59
[036ebf72] Leaf: Version 3.18.2 (user: drh, tags: release, branch-3.18, version-3.18.2)
00:39
[e1b71029] When building an ephemeral table of integers, do not assume that the table does not already contain N if the insert cursor points to N-1. Fix for ticket [61fe9745]. Also increase the version number to 3.18.2. This is the release candidate. (user: drh, tags: branch-3.18)
2017-06-16
19:51
[bc1951d6] Rework the code in ctime.c a bit to report on more compile time options. And to only output configuration options passed in to SQLite, not the default values of #define symbols set automatically. Also generate the large array in ctime.c using new script tool/mkctime.tcl, instead of entering it manually. (user: dan, tags: ctime-refactor)
18:31
[3944a32e] Minor refactoring change to clarify how ATTACH works. No functional changes. (user: drh, tags: trunk)
13:43
[11693849] Prevent pagesize changes on VACUUM in encrypted databases even when running the VACUUM on an attached database. (user: drh, tags: trunk)
13:41
[77bb4623] Version 3.18.1 (user: drh, tags: release, branch-3.18, version-3.18.1)
12:15
[20e5ffb1] An unintentional fork was created due to a typo when creating branch-3.18. This check-in resolves the fork and is the 3.18.1 release candidate. (user: drh, tags: branch-3.18)
2017-06-15
16:56
[254617a1] Move the "shell_add_schema()" SQL function used by the ".schema" command of the command-line shell to a different spot in the shell.c source file so that it is not in the middle of an unrelated module. (user: drh, tags: trunk)
16:45
[ca1ff707] Fix typo and improve the wording of the description of "Metadata" in the output of the sqlite3_analyzer tool. (user: drh, tags: trunk)
15:06
[60105c22] Merge the latest changes from trunk. (user: drh, tags: lsm-vtab)
13:07
[9afd7a2f] Fix harmless compiler warnings in the shell.c file (user: drh, tags: trunk)
12:50
[c7f778b7] Improvements to the ".tables" command in the command-line shell so that it shows the name of all schemas if the name is anything other than "main". (user: drh, tags: trunk)
12:21
[48e08628] In the command-line shell, enhance the ".schema" command show that it shows the schema for ATTACH-ed databases in addition to "main". (user: drh, tags: trunk)
07:47
[4be2eba8] Increase the version number to 3.18.1. (user: drh, tags: branch-3.18)
00:52
[43ad41ef] Enhance the sqlite3_analyzer.exe utility so that it computes and shows the number of bytes of metadata on btree pages and per table and index entry. (user: drh, tags: trunk)
2017-06-13
16:52
[c433672d] Fix sqlite3rbu_close() so that the pzErrmsg parameter may be passed NULL. (user: dan, tags: trunk)
04:31
[35b34bdf] Fix the processing of double-negatives in WHERE clause constraints with STAT4. Ticket [cfa2c908f2182] (user: drh, tags: trunk)
2017-06-12
23:44
[30c50f0e] Ensure pointer map entries are always added when a row that does use overflow pages replaces one that does not in an auto-vacuum database. Fix for [fda22108]. (user: drh, tags: branch-3.18)
2017-06-11
20:17
[0bbdaf28] Fix an off-by-one error that messes up the display of loop codes in the ".wheretrace" debugging output for queries with more than 62 candidate loops when SQLITE_ENABLE_WHERETRACE is on. (user: drh, tags: trunk)
19:51
[87aceb41] When reusing a materialized view, make sure the estimated number of output rows is correctly initialized to avoid confusing the query planner. (user: drh, tags: trunk)
19:40
[8f92b7a6] Fix the sessiondiff test module so that it does not run if the session extension is not enabled. (user: drh, tags: trunk)
18:26
[a2f77285] Fix a potential null-pointer deference following OOM introduced by check-in [e39795d7] (unreleased). (user: drh, tags: trunk)
2017-06-10
17:23
[79544fc2] Leaf: Remove sqlite3_log() and abort() calls added to this branch to debug the pointer-map problem ([fda22108]). (user: dan, tags: begin-concurrent)
2017-06-09
15:14
[3fd050c3] Leaf: Merge enhancements and fixes from trunk. (user: drh, tags: prepare_v3)
11:43
[2881ab1e] Update the documentation to make it clear that the table name parameter to sqlite3_table_column_metadata() may not be NULL. (user: drh, tags: trunk)
02:27
[3168e2c9] Adjust the implementation of the ".selftest" feature of the shell to avoid using the deprecated sqlite3_get_table() interface. (user: drh, tags: trunk)
2017-06-08
16:23
[8e311a6d] Update the recent auto-vacuum fix so that it works for the in-memory pointer-map structure used by this branch. (user: dan, tags: begin-concurrent)
16:10
[e2d38d51] Merge 3.19.3 changes with this branch. (user: dan, tags: begin-concurrent)
15:54
[0f59bb94] Merge changes for version 3.19.0 with this branch. (user: dan, tags: begin-concurrent)
14:41
[93f32dd2] Merge the auto_vacuum bug fix and all other changes from the 3.19.3 release. (user: drh, tags: apple-osx)
14:35
[343e5599] Add a testcase() to confirm that an OOM on sqlite3DbStrNDup() is handled correctly in trigger.c. (user: drh, tags: trunk)
14:26
[0ee482a1] Leaf: Version 3.19.3 (user: drh, tags: release, branch-3.19, version-3.19.3)
11:32
[97b5c4a5] Fix an issue with OPT_FEATURE_FLAGS in configure.ac. (user: drh, tags: branch-3.19)
11:27
[903fff53] Increase the version number to 3.19.3. (user: drh, tags: branch-3.19)
11:26
[9478106c] Ensure pointer map entries are always added when a row that does use overflow pages replaces one that does not in an auto-vacuum database. Fix for [fda22108]. (user: drh, tags: branch-3.19)
11:14
[b30dfba8] Ensure pointer map entries are always added when a row that does use overflow pages replaces one that does not in an auto-vacuum database. Fix for [fda22108]. (user: dan, tags: trunk)
2017-06-07
22:32
[e39795d7] In SQLITE_DEBUG mode, attempt to log the page number of the database that contained the problem when SQLITE_CORRUPT errors are seen. (user: drh, tags: trunk)
19:46
[61853bc1] Fix another lsmtest build problem. Add the "-trans BOOLEAN" option to "lsmtest speed2". (user: dan, tags: lsm-vtab)
16:25
[f8bbb608] Merge in trunk enhancements. (user: drh, tags: prepare_v3)
15:55
[05b4fc43] Add too/tserver.c - the implementation of a simple multi-threaded server designed for interactive testing of concurrency between connections used by different threads of the same process. (user: dan, tags: server-edition)
10:55
[c81f260c] Leaf: Cause the ANALYZE command to build sqlite_stat1 table entries for empty tables with the assumption that such tables really contain 10 elements. This gives better query plans for tables that are truely empty, but is likely to cause problems in legacy systems, so the change is kept off trunk. Some TCL tests fail on this check-in due to the new stat1 entries. (user: drh, tags: analyze-empty-tables)
2017-06-06
18:22
[802b82f3] Leaf: Add the SQLITE_DEFAULT_ROWEST compile-time option for changing the estimated number of rows in tables that lack sqlite_stat1 entries. (user: drh, tags: branch-3.8.9)
18:20
[234ede26] Add the SQLITE_DEFAULT_ROWEST compile-time option for changing the estimated number of rows in tables that lack sqlite_stat1 entries. (user: drh, tags: trunk)
16:14
[501238b9] Fix a threading problem in lsm test code. (user: dan, tags: lsm-vtab)
2017-06-05
19:20
[9eea3670] Fix a subtle bug in the remember UDF of the kvtest.exe utility program. (user: drh, tags: trunk)
16:33
[73c70590] Fix a bug in test_fs.c that occurs when the first component of a path contains a GLOB or LIKE escape character. (user: dan, tags: trunk)
13:28
[f3c25df4] For the kvtest utility, add the --vacuum option to "kvtest stat" and also run PRAGMA integrity_check with "kvtest stat". (user: drh, tags: trunk)
12:29
[ed0842c1] Fix the column width deduction logic in the command-line shell to account for multi-byte utf8 characters. (user: drh, tags: trunk)
10:31
[ead29f9c] Omit some of the fstree tests in vtabH if the PWD contains LIKE wildcards. (user: drh, tags: trunk)
2017-06-03
20:09
[65182ce0] Initialize a variable to zero to prevent an (incorrect) compiler warning of it potentially being uninitialized. (user: drh, tags: trunk)
19:16
[c4089ffb] Fix the SQLITE_PTR_TO_INT macro so that works on recent versions of LLVM on Macs. (user: drh, tags: trunk)
18:27
[dd7e043f] Remove unused header file from kvtest. (user: drh, tags: trunk)
17:24
[f568f666] In kvtest, add the ability to work with a hierarchy of files on disk, in addition to having all files in the same directory. (user: drh, tags: trunk)
15:17
[5828633c] Add the --nocheckpoint and --multitrans options to kvtest. (user: drh, tags: trunk)
2017-06-02
23:44
[1d23294d] Merge all recent trunk enhancements. (user: drh, tags: lsm-vtab)
23:32
[7fdc78a6] Add the --fsync flag to kvtest, and document the --nosync flag. (user: drh, tags: trunk)
19:31
[fc73e7d2] Work toward enhancing kvtest to measure write performance. (user: drh, tags: trunk)
15:44
[ab33d299] Change the name of the OP_Seek opcode into OP_DeferredSeek for better clarity of function. No functional code changes. (user: drh, tags: trunk)
13:16
[d637feb4] Fix a typo in the header comment of the "series.c" virtual table extension. (user: drh, tags: trunk)
09:31
[f131677d] Extend even further the logging designed to find problems in the pointer-map structure. Call abort() to dump a core as soon as such a problem is seen. (user: dan, tags: begin-concurrent)
2017-06-01
16:13
[bb7436e8] Add test code for LSM to the ext/lsm1/lsm-test directory. (user: dan, tags: lsm-vtab)
01:53
[4c2458c1] Add a comment to the Lemon documentation regarding the security of the lemon.exe command-line tool. (user: drh, tags: trunk)
00:54
[4a25c588] Add interfaces sqlite3_prepare_v3() and sqlite3_prepare16_v3() with the extra prepFlags argument. Add the SQLITE_PREPARE_PERSISTENT option as one bit in that argument. (user: drh, tags: prepare_v3)
2017-05-31
17:30
[c26cf978] Add the SQLITE_STMTSTATUS_MEMUSED opcode to sqlite3_stmt_status() for finding the heap memory usage by a single prepared statement. (user: drh, tags: trunk)
17:06
[f7e3e2bc] Generate extra log messages in response to irregularites in the pointer-map used by "BEGIN CONCURRENT" transactions. (user: dan, tags: begin-concurrent)
16:21
[b57d5104] Closed-Leaf: Add the SQLITE_STMTSTATUS_MEMUSED option for sqlite3_stmt_status() that reports the amount of heap memory used for a single prepared statement. (user: drh, tags: stmtstatus-memused)
16:09
[cb4c5c66] Add the experimental "stmts" virtual table for introspection of prepared statements. (user: drh, tags: trunk)
13:45
[df785943] Avoid allocating excess memory to the KeyInfo objects. (user: drh, tags: trunk)
13:27
[7d58836b] Remove a completely unnecessary memset() from the INSERT code generator. (user: drh, tags: trunk)
11:24
[8885b446] Very small performance increase in sqlite3VdbeSetNumCols(). (user: drh, tags: trunk)
03:20
[326e63d7] Reorder fields in the PgHdr object for a performance increase. (user: drh, tags: trunk)
02:58
[de28e651] Avoid unnecessary memory zeroing during expression list allocation. (user: drh, tags: trunk)
00:49
[af8c0fed] Size and performance optimizations to sqlite3ResolveExprNames(). (user: drh, tags: trunk)
2017-05-30
18:34
[e972a386] Change sqlite3BtreeNext() and sqlite3BtreePrevious() so that they return SQLITE_DONE if they have already reached the end (or beginning) of the table. This gives a performance increase and size reduction. (user: drh, tags: trunk)
18:14
[69ae6889] Omit a test of codepoint 0x202F (non-break narrow space) from the fts3 ICU tests. Different versions of ICU apparently handle this obscure codepoint slightly differently. (user: dan, tags: trunk)
2017-05-29
22:44
[9a3e3b34] More efficient error handling and reset in the binding mechanism. (user: drh, tags: trunk)
19:23
[9ad846e5] Instead of a root page number, log the object (table or index) name if a page level locking conflict is detected. (user: dan, tags: begin-concurrent)
17:59
[dd61c736] Omit unnecessary fstat() calls for determining the database file size, resulting in smaller and faster code. (user: drh, tags: trunk)
17:43
[43ce3bd3] Fix an issue with OPT_FEATURE_FLAGS in configure.ac. (user: drh, tags: trunk)
16:45
[6c3476b5] Closed-Leaf: Avoid unnecessary fstat() calls to determine the database size when transitioning into a read transaction on a rollback-mode database. (user: drh, tags: io-opt)
14:57
[c733a1de] Avoid unnecessary calls to fstat() to determine the database file size. (user: drh, tags: io-opt)
14:30
[cb29b838] Fix a typo in a comment. No code changes. (user: drh, tags: trunk)
14:27
[92618492] Enhance the log messages emitted when a page conflict is detected. (user: dan, tags: begin-concurrent)
14:26
[6854a34e] Optimizations to the Walker object and its methods to make the code a little smaller and to help it run a little faster. (user: drh, tags: trunk)
13:09
[43c9ae37] Correctly initialize the iSelectId of FROM clause terms that are a self join of a reused materialized subquery. Without this, the EXPLAIN QUERY PLAN output for the query will identify the subquery using the uninitialized (and arbitrary) iSelectId. (user: drh, tags: trunk)
03:48
[7cc940a9] Improve shell help text for the '.open' command. (user: mistachkin, tags: trunk)
2017-05-27
22:42
[542dc4c5] Smaller and faster vdbeSorterCompareText(). (user: drh, tags: trunk)
18:05
[214d238a] Leaf: Add debugging functions btreePageOriginFile() and btreePageOriginOffset(). (user: dan, tags: btree-debug)
2017-05-26
18:18
[a7e0e7a4] Adjust the bitvec related sqlite3_log messages added by [9527089b]. (user: dan, tags: begin-concurrent)
16:51
[9df01957] Add extra test cases for deferred page allocation. (user: dan, tags: begin-concurrent)
16:15
[a4a3bbe6] Fix a problem with deferred page allocation in transactions that revert page allocations by savepoint rollbacks. (user: dan, tags: begin-concurrent)
2017-05-25
21:35
[6f415833] Small performance increase and size decrease in the btreeInitPage() routine. (user: drh, tags: trunk)
21:02
[47a7dd92] Fix a problem with the deferred page allocation on this branch that could occur when the database file is just slightly smaller than the PENDING_BYTE page offset. (user: dan, tags: begin-concurrent)
17:36
[12964240] Merge all fixes from the 3.19.2 release. (user: drh, tags: apple-osx)
17:27
[6513e4a1] Merge the LEFT JOIN query flattener fixes from 3.19.2. (user: drh, tags: trunk)
16:50
[edb4e819] Version 3.19.2 (user: drh, tags: release, branch-3.19, version-3.19.2)
11:39
[1a074c8a] The SQLITE_EXTRA_IFNULLROW compile-time option causes OP_IfNullRow opcodes to be issued for references to the right-hand side table of *any* flattened join, not just LEFT JOINs. This puts extra stress on the OP_IfNUllRow opcodes for testing purposes. (user: drh, tags: branch-3.19)
00:28
[b30a364a] The TK_IF_NULL_ROW expression node must be treated as a variable that references the table Expr.iTable. Proposed fix for ticket [7fde638e94287d2c]. (user: drh, tags: branch-3.19)
00:12
[c315727a] Increase the version number to 3.19.2 since ticket [7fde638e94287d2] is going to necessitate another patch release. (user: drh, tags: branch-3.19)
00:08
[77fc2301] The TK_IF_NULL_ROW expression node must be treated as a variable that references the table Expr.iTable. Proposed fix for ticket [7fde638e94287d2c]. (user: drh, tags: trunk)
2017-05-24
15:32
[57a60e95] Fix harmless compiler warnings in FTS5. (user: mistachkin, tags: trunk)
13:08
[f6d7b988] Version 3.19.1 (user: drh, tags: release, branch-3.19, version-3.19.1)
04:32
[19dad0a7] Fix a problem in STAT4 equality estimation for multi-column indexes introduced by check-in [3e0590dee0e68cc1599]. (user: drh, tags: branch-3.8.9)
04:18
[cfb0d9e0] Fix a problem in STAT4 equality estimation for multi-column indexes introduced by check-in [3e0590dee0e68cc1599]. (user: drh, tags: trunk)
2017-05-23
20:00
[84996aef] Remove the msvc.h header file from the autoconf tarball. (user: drh, tags: trunk)
19:35
[4440e420] Do not use strcpy() in the (obsolete) amatch extension. In releasetest.tcl, run Apple tests using -Os instead of -O1 (user: drh, tags: trunk)
19:23
[5b9d498f] Add experimental new API sqlite3_wal_info(). (user: dan, tags: begin-concurrent)
15:33
[05ada741] Disable the LEFT JOIN flattening optimization for aggregate queries, as it does not currently work. Further fix for ticket [cad1ab4cb7b0fc344]. (user: drh, tags: branch-3.19)
15:21
[44b21e35] Disable the LEFT JOIN flattening optimization for aggregate queries, as it does not currently work. Further fix for ticket [cad1ab4cb7b0fc344]. (user: drh, tags: trunk)
12:44
[28d2902d] Ensure that the expression rewriter inside the query flattener decends into the substructure of the TK_IF_NULL_ROW operator. This is a continuation of the fix for ticket [cad1ab4cb7b0fc344]. (user: drh, tags: branch-3.19)
12:36
[941d8142] Ensure that the expression rewriter inside the query flattener decends into the substructure of the TK_IF_NULL_ROW operator. This is a continuation of the fix for ticket [cad1ab4cb7b0fc344]. (user: drh, tags: trunk)
01:35
[16656b8f] Change the version number to 3.19.1. (user: drh, tags: branch-3.19)
01:30
[4510d55d] Remove a surplus semicolon, which was harmless on gcc and clang but caused compile-time errors on msvc. This only comes up using the encryption extension. (user: drh, tags: branch-3.19)
01:29
[919d36e6] When flattening a query, make sure iTable attribute of TK_IF_NULL_ROW operators (that result from a prior flattening of a LEFT JOIN) are updated correctly. Fix for ticket [cad1ab4cb7b0fc344]. (user: drh, tags: branch-3.19)
01:21
[92c17850] When flattening a query, make sure iTable attribute of TK_IF_NULL_ROW operators (that result from a prior flattening of a LEFT JOIN) are updated correctly. Fix for ticket [cad1ab4cb7b0fc344]. (user: drh, tags: trunk)
00:32
[987a2b55] Remove a surplus semicolon, which was harmless on gcc and clang but caused compile-time errors on msvc. This only comes up using the encryption extension. (user: drh, tags: trunk)
2017-05-22
19:24
[bbd2d0e1] Pull in all changes from the 3.19.0 release. (user: drh, tags: apple-osx)
18:09
[0bb23c48] Fix incompatibilities between the "sqldiff --changeset" command and the sessions module. Specifically, allow sessions to process changesets containing tables with zero operations on them and have sqldiff output the expected output for tables with multi-column primary keys. (user: dan, tags: trunk)
18:00
[5fe28e15] Add the ".cd" command to the command-line shell. (user: drh, tags: trunk)
17:39
[ab471f61] Increase the version number to 3.20 for the next release cycle. (user: drh, tags: trunk)
14:04
[e6ba2a93] Merge the last-minute 3.19.0 changes into trunk. (user: drh, tags: trunk)
13:58
[28a94eb2] Version 3.19.0 (user: drh, tags: release, branch-3.19, version-3.19.0)
13:06
[3dd6fe53] Include the "msvc.h" header file in the amalgamation tarball. (user: drh, tags: branch-3.19)
08:04
[3ea2bad2] Fix a case where NULL was being passed to memcmp() following an OOM. This is probably not a real problem, as the number-of-bytes parameter was passed 0 in this case, but it was causing a santizer complaint. (user: dan, tags: trunk)
08:01
[a726d981] Add code to this branch to emit a log message after each cumulative second that the WRITER lock has been held. (user: dan, tags: server-edition)
00:45
[f261678c] When planning a query using sorting, resolve ties in the solver by selecting loop plans with the smaller unsorted cost. (user: drh, tags: trunk)
00:27
[962531e7] When planning a query using sorting, resolve ties in the solver by selecting loop plans with the smaller unsorted cost. (user: drh, tags: branch-3.8.9)
2017-05-19
23:04
[50ad60de] Prevent a possible NULL pointer dereference in the OP_Found opcode that can follow an OOM error. Problem found by OSS-Fuzz. (user: drh, tags: branch-3.19)
22:51
[c2de178f] Prevent a possible NULL pointer dereference in the OP_Found opcode that can follow an OOM error. Problem found by OSS-Fuzz. (user: drh, tags: trunk)
20:55
[946b87a5] Improved comments on one routine in the query planner. Improved diagnostic output for ".wheretrace". No production code changes. (user: drh, tags: trunk)
20:47
[68942a4f] Fix a documentation typo. No changes to code. (user: drh, tags: trunk)
20:46
[f2b829ec] Branch for the 3.19 release. (user: drh, tags: branch-3.19)
19:57
[9527089b] Invoke sqlite3_log() in response to irregularities surrounding the Pager.pAllRead bit-vector. (user: dan, tags: begin-concurrent)
12:32
[35f72104] Fix some problems in fts5 code detected by -fsanitize=undefined. (user: dan, tags: trunk)
2017-05-18
20:47
[0eed1521] Fix a problem on this branch causing some page-level read-locks to be omitted. (user: dan, tags: begin-concurrent)
18:17
[cfa4aa20] Closed-Leaf: Fix a documentation typo. No changes to code. (user: drh, tags: doc-type)
2017-05-16
09:49
[7940bff3] Update the tool/warnings.sh script to automatically use the right options on OpenBSD. (user: dan, tags: trunk)
2017-05-15
19:32
[9b7f8024] Avoid writer starvation by adding a RESERVED state to page locks. (user: dan, tags: server-edition)
17:56
[6e0f64ab] Leaf: Merge changes from trunk. (user: drh, tags: schemalint)
17:34
[14ea8400] Merge the latest changes from trunk. (user: drh, tags: begin-concurrent)
15:12
[bb0d9281] Fix the build so that it works again with SQLITE_OMIT_SUBQUERY. (user: drh, tags: trunk)
15:05
[0f05d7e9] Improvements to the omittest.tcl script. (user: drh, tags: trunk)
2017-05-13
19:07
[a38858a2] Avoid running recovery while there is another read/write client. (user: dan, tags: server-edition)
2017-05-12
18:52
[cbf44ed9] Require exclusive access to the db to wrap the wal file. Have "PRAGMA wal_checkpoint = restart" block for this. (user: dan, tags: server-edition)
14:05
[a123cb93] Make sure the 'sqlite3changegroup_*' functions are included in the SQLITE_APICALL handling. (user: mistachkin, tags: trunk)
2017-05-11
19:09
[339df63f] Add another test case for the new authorizer functionality. (user: dan, tags: trunk)
18:49
[b55c0f14] Merge recent enhancements from trunk. (user: drh, tags: apple-osx)
18:42
[3ba9e7ab] Enhance the json_extract() function to reuse parses of the same JSON when the function appears multiple times in the same query. (user: drh, tags: trunk)
18:14
[9a2de4f0] Do not save the state of an fts5 merge operation mid-way through an input term, even if no previous entry for that term has caused any output. Doing so may corrupt the FTS index. (user: dan, tags: trunk)
16:49
[44ca6c2c] Closed-Leaf: Cache the JSON parse used by json_extract(). (user: drh, tags: auxdata-cache)
15:20
[ff530675] Negative N values in sqlite3_get_auxdata() and sqlite3_set_auxdata() can be used to access an auxiliary data cache over all functions in a single prepared statement. (user: drh, tags: auxdata-cache)
13:43
[3980ea09] New requirements marks and documentation for the authorizer. (user: drh, tags: trunk)
12:27
[47629b19] Improvements to the sqlite3_set_authorizer() documentation. (user: drh, tags: trunk)
12:05
[4139953a] Change the SQLITE_READ authorization call for unreferenced tables to use an empty string for the column name, as this is less likely to impact legacy authorization callbacks that assume column names are always non-NULL. (user: drh, tags: trunk)
2017-05-10
19:42
[2be9850c] Rename fields of the internal AuxData object to make them unique and easier to search for. (user: drh, tags: trunk)
16:33
[92c5ea70] Improved documentation for the SQLITE_READ authorizer callback. No code changes. (user: drh, tags: trunk)
16:18
[2584df3d] Fix a problem causing a lock to be held past the end of a transaction. Use a blocking lock to take the read-lock on page 1 taken by all transactions. (user: dan, tags: server-edition)
16:12
[92ab1f72] Invoke the SQLITE_READ authorizer callback with a NULL column name for any table referenced by a query but from when no columns are extracted. (user: drh, tags: trunk)
13:46
[4464ca1d] Use a blocking call to obtain the wal-mode WRITER lock in some cases. (user: dan, tags: server-edition)
13:36
[30018d31] Fix a couple of test scripts so that they work with -DSQLITE_DISABLE_FTS4_DEFERRED builds. (user: dan, tags: trunk)
12:58
[199b2a84] Avoid unnecessary codec operations on in-memory subjournals. (user: drh, tags: trunk)
12:49
[d2bb0066] Closed-Leaf: Do not invoke codec macros for in-memory subjournals. (user: drh, tags: codecless-inmemory-subjournal)
2017-05-09
16:32
[270b7d1e] Fix a problem with wrapping the log file in server mode. (user: dan, tags: server-edition)
2017-05-08
20:15
[b733afc1] Add some support for wal mode to the hack on this branch. (user: dan, tags: server-edition)
18:29
[2c145ee6] Do not invoke codec macros when reading or writing an in-memory sub-journal. (user: dan, tags: codecless-inmemory-subjournal)
2017-05-06
18:09
[04e7e565] Fix an obscure assertion fault that can follow an OOM. The problem was introduced by check-in [a1cf44763277b6c7]. (user: drh, tags: trunk)
17:12
[198ff4c0] Fix requirements marks and harmless compiler warnings. (user: drh, tags: trunk)
16:04
[ed6bad67] Update this branch with latest trunk changes. (user: dan, tags: server-edition)
2017-05-04
14:02
[269bf52e] Remove the tool/schemalint.tcl script. And related Makefile entries. It is superseded by sqlite3_expert. (user: dan, tags: schemalint)
11:13
[b9a58dac] Fix a collision of the "B0" identifier name between the termios.h header file and the SHA3 implementation in the shell. (user: drh, tags: trunk)
2017-05-03
19:36
[e24b7382] Remove the unused "sqlite3_stack_used" TCL command from the test harness. (user: drh, tags: trunk)
17:44
[05eba9e3] Fix the sqlite3GetInt32() function so that it correctly returns 0 on a zero-length input string. (user: drh, tags: trunk)
15:54
[31a51b4d] Always enable URI filenames when compiling with SQLITE_HAS_CODEC. Also allow plaintext keys using the key= query parameter. (user: drh, tags: trunk)
13:05
[593e5dd0] Fix a harmless compiler warning on Windows. (user: drh, tags: schemalint)
12:50
[d8254047] Get sqlite3_expert building on Windows. (user: drh, tags: schemalint)
12:15
[da15752d] In sqlite3expert.c, do not copy the schema for virtual tables. Updates to makefiles to make building easier. (user: drh, tags: schemalint)
2017-05-02
20:42
[af7d1596] In the sqlite3_expert command-line tool, allow two-dash options. Do not accept the database name if it begins with "-". (user: drh, tags: schemalint)
19:45
[a7dcf6a7] Merge the latest enhancements from trunk. (user: drh, tags: schemalint)
18:00
[430f539c] Fix the fts3EvalAverageDocsize() routine so that it returns errors from sqlite3_reset() rather than always returning SQLITE_OK. (user: drh, tags: trunk)
17:54
[9e35c89d] Reuse the same materialization of a view when that view appears in a query more than once, such as in a self-join. (user: drh, tags: trunk)
16:55
[47cbb471] Move terms of the HAVING clause that reference only columns in the GROUP BY clause over to the WHERE clause, resulting in a faster query plan. (user: drh, tags: trunk)
16:46
[8424492e] Closed-Leaf: Additional comments on the sqlite3ExprIsConstantOrGroupBy() routine. No code changes. (user: drh, tags: having-where-optimization)
01:30
[6674814a] Fix typo in comment. No changes to code. (user: mistachkin, tags: trunk)
2017-05-01
20:07
[83b1e163] Update this branch with latest trunk changes. (user: dan, tags: server-edition)
19:53
[a3317959] Remove an unnecessary branch. (user: drh, tags: having-where-optimization)
18:24
[adcad37b] Enhance "PRAGMA integrity_check" to detect duplicate rowids within a leaf page. (user: dan, tags: trunk)
18:12
[a6727eef] Clear the BTCF_ValidNKey flag set if a cursor is moved by sqlite3BtreeInsert(). Fix for [f68dc596c4]. (user: dan, tags: trunk)
17:04
[c64fe3a1] Closed-Leaf: Futher bug fixes to the function that determines when a materialized view can be reused. (user: drh, tags: materialized-view-reuse)
16:37
[b2aae559] Minor bug fixes and performance enhancement. (user: drh, tags: materialized-view-reuse)
15:15
[478c34b9] Initial implementation of an optimization that attempts to reuse the same materialization of a view on a self-join of the view. (user: drh, tags: materialized-view-reuse)
14:25
[11f4761c] Update this branch with latest trunk changes. (user: dan, tags: schemalint)
14:09
[4921cd95] Add extra tests for the optimization on this branch. (user: dan, tags: having-where-optimization)
2017-04-29
20:53
[5375a3ce] Automatically transfer terms from the HAVING clause to the WHERE clause of an aggregate query in cases where the result of evaluating the term depends only one one or more of the GROUP BY expressions (and on no other inputs). (user: dan, tags: having-where-optimization)
19:29
[4e1df76e] Add a single testcase() macro to the subquery processing logic. (user: drh, tags: trunk)
18:02
[e54c9f8d] Improvements to opcode documentation in the bytecode engine. No changes to code. (user: drh, tags: trunk)
15:48
[f6b025bf] Avoid reading the file-size before page 1 is read-locked. (user: dan, tags: server-edition)
15:27
[d7bb79ed] Evaluate WHERE clause terms that reference only the index before evaluating terms that require the table, and thereby avoid seeking the table row if index terms are false. This is called the "push-down" optimization in the MySQL world, we are told. (user: drh, tags: trunk)
14:56
[91dfb61a] Closed-Leaf: Minor size and performance improvements to the push-down optimization. (user: drh, tags: pushdown-optimization)
2017-04-28
19:59
[afe68f0a] Within a loop that uses a non-covering index test, test non-indexed terms that can be tested without seeking the main table cursor before those that cannot. (user: dan, tags: pushdown-optimization)
17:32
[a40b42c4] Fix various bugs revealed by running performance tests. (user: dan, tags: server-edition)
14:09
[a5a08548] Add a missing releasePage() call to the server-mode free-list management code. (user: dan, tags: server-edition)
10:20
[778e8a10] Use a different free-list format for server-mode databases in order to reduce contention. (user: dan, tags: server-edition)
2017-04-27
14:12
[3144ae40] Do not write master journal filenames into server-mode journal files. Use SQLITE_MUTEX_STATIC_APP1 to protect critical sections in server.c. (user: dan, tags: server-edition)
13:05
[d5b5326d] If possible, delete the journal file when a database connection is closed. (user: dan, tags: server-edition)
2017-04-26
20:45
[64ecf7c7] Experimental implementation of pessimistic page-level locking based on rollback mode. (user: dan, tags: server-edition)
17:21
[2d0b6431] Add new test file cachespill.test. (user: dan, tags: trunk)
14:34
[63d9ca5c] Replace <fts5.h> with "fts5.h" in test file fts5_test_tok.c. (user: dan, tags: trunk)
04:32
[304689f8] Fix a subtle bug in Lemon discovered and reported on the mailing list by Kelvin Sherlock, who also suggested the correct fix. (user: drh, tags: trunk)
2017-04-24
16:14
[031feebc] Bring in all the latest enhancements from trunk. (user: drh, tags: apple-osx)
14:16
[1c1b0862] When building an ephemeral table of integers, do not assume that the table does not already contain N if the insert cursor points to N-1. Fix for ticket [61fe9745]. (user: dan, tags: trunk)
2017-04-22
00:20
[e39769f4] Fix an assertion fault found by OSSFuzz. (user: drh, tags: trunk)
2017-04-21
19:58
[9fa2ce3c] Another minor formatting fix. (user: dan, tags: schemalint)
19:56
[da9a2e5a] Fix formatting errors in the previous commit. (user: dan, tags: schemalint)
19:53
[3b2ff4e0] Update the README.md file in the ext/expert/ directory. (user: dan, tags: schemalint)
17:03
[bdc50d8d] Remove a NEVER macro for a condition that may be true as of [a47efb7c]. Problem reported by OSSFuzz. (user: dan, tags: trunk)
16:04
[840042cb] Fix an FTS5 bug that could cause a prefix-query without a prefix-index on a database that contains delete-markers to return extra, non-matching, rows. (user: dan, tags: trunk)
2017-04-20
17:35
[b1533bc4] Merge latest trunk changes into this branch. (user: dan, tags: schemalint)
17:03
[4e366996] Avoid creating a temp table in the user database in the sqlite3_expert code. (user: dan, tags: schemalint)
16:43
[8e57c313] Closed-Leaf: Speed this branch up a bit by filtering before the virtual table layer when sampling user data. (user: dan, tags: schemalint-failure)
16:18
[4577fea5] Avoid adding INTEGER PRIMARY KEY columns to candidate indexes. (user: dan, tags: schemalint)
16:08
[c62e3582] Avoid creating a temp table in the user database in the sqlite3_expert code. Trouble is, this makes sampling for stat1 data much slower. (user: dan, tags: schemalint-failure)
09:54
[c69c3e21] Add an option to generate stat1 data based on a subset of the user database table contents to sqlite3_expert. (user: dan, tags: schemalint)
2017-04-19
13:25
[6b21d0fd] Further improvements to coverage of fts3 module. (user: dan, tags: trunk)
07:33
[ea8a0d2c] Further modifications and test cases to improve test coverage of fts3. (user: dan, tags: trunk)
2017-04-18
20:10
[a157fcfd] Have sqlite3_expert_analyze() populate the sqlite_stat1 table before running queries through the planner for the second time. (user: dan, tags: schemalint)
13:50
[dc2a4802] Use sqlite3_table_column_metadata() instead of a SELECT statement to check for the existence of a %_stat table in fts3. This leads to smaller and easier to test code. (user: dan, tags: trunk)
11:20
[41c27bc0] Improved optimizations of views as the right operand of a LEFT JOIN. (user: drh, tags: trunk)
09:04
[ff4976da] Fix sqlite3_expert handling of triggers on views. (user: dan, tags: schemalint)
05:49
[e47fdb49] Refactor the fts3ColumnMethod() function so that all branches can be covered. (user: dan, tags: trunk)
2017-04-17
23:23
[56845256] Defer checking for null in the comparison operators, since that is an uncommon case. (user: drh, tags: trunk)
20:50
[e698db19] Do not allow a Mem object to be both NULL and some other type at the same time. (user: drh, tags: trunk)
18:42
[69f51f83] Consolidate two branches of code in the "PRAGMA foreign_key_check" implementation. (user: dan, tags: trunk)
18:02
[690870bd] Fix a problem in "PRAGMA foreign_key_check" in handling a WITHOUT ROWID child table with an INTEGER PRIMARY KEY parent key. Also, if an FK violation is detected in a WITHOUT ROWID child table, do not try to read and return the rowid. The second column returned by "PRAGMA foreign_key_check" in this case (WITHOUT ROWID child table) is now always set to NULL. (user: dan, tags: trunk)
17:03
[159e8022] Add support for analyzing trigger programs to the sqlite3_expert code. (user: dan, tags: schemalint)
16:07
[352413ee] Further improvements to test coverage in fts3. (user: dan, tags: trunk)
13:38
[1a08a836] Improve coverage of code in fts3. (user: dan, tags: trunk)
13:18
[f508aff8] Fix the ".column" output mode in the command-line shell so that it correctly counts and formats multi-byte UTF characters. (user: drh, tags: trunk)
2017-04-16
22:41
[90015df3] In the showwal command-line tool, for unix builds, if the auxiliary argument is of the form "Ntruncate" where "N" is a frame number, then truncate the WAL file after the N-th frame. (user: drh, tags: trunk)
22:08
[d7b9813c] Add the anycollseq.c loadable extension in etc/misc (user: drh, tags: trunk)
2017-04-15
16:52
[2e630879] Fix problems with handling constraints on the rowid column in sqlite3expert.c. (user: dan, tags: schemalint)
15:47
[2d0c458e] Merge latest trunk changes into this branch. (user: dan, tags: schemalint)
14:30
[d238694c] Add header comment for sqlite3_vtab_collation(). (user: dan, tags: schemalint)
14:16
[0cd75a87] Fix memory leaks in the code on this branch. Make use of the sqlite3_index_constraint.usage field. Do not try to handle ORDER BY terms with explicit COLLATE clauses - they don't get passed to the vtab layer anyway. (user: dan, tags: schemalint)
11:53
[89f9e436] In the skip-ahead-distinct optimization, fix a bug in the logic that determines when to invoke the optimization based on sqlite_stat1 statistics. (user: drh, tags: trunk)
2017-04-14
22:41
[e50fd489] Closed-Leaf: Fix to the decision logic for when to use the skip-ahead-distinct optimization. (user: drh, tags: skip-ahead-distinct)
19:46
[d78355c8] Remove end-of-line whitespace from lemon.c. (user: drh, tags: trunk)
19:44
[a5379905] Fix some left-over K&R-C constructs in lemon.c. No changes to the core. (user: drh, tags: trunk)
19:41
[3bb65850] Modify the code in ext/expert/ to use the vtab interface instead of sqlite3_whereinfo_hook(). Remove sqlite3_whereinfo_hook(). (user: dan, tags: schemalint)
19:03
[3a5860d8] Closed-Leaf: Add the TK_IF_NULL_ROW opcode to deal with non-NULL result columns in the result set of a view or subquery on the RHS of a LEFT JOIN that gets flattened. (user: drh, tags: left-join-view)
17:30
[f489b5bb] When doing a DISTINCT query using an index, try to use the index to skip ahead to the next distinct element, rather than doing a full scan of the index. (This is the "skip-ahead-distinct" optimization.) (user: drh, tags: trunk)
17:18
[1838a59c] An initial attempt to optimize VIEWs that occur as the right operand of a LEFT JOIN. This particular check-in does not work correctly because it does not deal with the case of columns in the VIEW that return non-NULL even when all columns in the table of the VIEW are NULL because of the LEFT JOIN. (user: drh, tags: left-join-view)
14:50
[6bf67376] Make USE_FULLWARN=1 the default for MSVC and fix harmless compiler warnings. (user: mistachkin, tags: trunk)
14:02
[5159cb8f] Enhance the sqlite3TreeView() display for Expr objects so that it shows the iRightJoinTable value for Expr nodes that have the EP_FromJoin property. (user: drh, tags: trunk)
12:39
[e651074b] Simplify the interface to the subst() routines that are part of the query flattener by collecting common parameters into the SubstContext object and passing around a pointer to that object. (user: drh, tags: trunk)
12:27
[f956f6ae] Remove an incorrect ALWAYS(). (user: drh, tags: trunk)
00:45
[1aa0ea8d] Fix a couple of unreachable branches. (user: drh, tags: skip-ahead-distinct)
2017-04-13
21:29
[ce1e2b88] Fix the skip-ahead-distinct optimization so that it works with indexes that have repeated columns with different collating sequences. (user: drh, tags: skip-ahead-distinct)
19:48
[57c5173b] Simplification of the skip-ahead-distinct logic. There is still an issue with handling COLLATE. (user: drh, tags: skip-ahead-distinct)
18:33
[70ac9ea1] New test cases and minor fixes for the optimization on this branch. (user: dan, tags: skip-ahead-distinct)
16:19
[5fcd840c] Update this branch with latest changes from trunk. (user: dan, tags: schemalint)
15:51
[59c70108] Reinstate the SQLITE_API qualifier on the sqlite3_delete_database() method in test_delete.c. Accidentally removed by the previous commit. (user: dan, tags: trunk)
15:36
[fa9bb7b7] Update the code in test_delete.c to use the "win32" VFS if SQLITE_OS_WIN is defined. (user: dan, tags: trunk)
13:01
[0cf16dec] Only use the skip-ahead-distinct optimization if the index has been analyzed and we know that a skip-head is likely to skip over at least 11 rows. The magic number 11 was determined by experimentation. (user: drh, tags: skip-ahead-distinct)
09:45
[6f54ffd1] Allow a user column name to be used on the LHS of a MATCH operator in FTS5. (user: dan, tags: trunk)
01:19
[132339a1] Forward port the skip-ahead-distinct branch which was abandoned for some reason that I do not recall. This port should have been achived by a merge of trunk into the previous head of skip-ahead-distinct, but that did not work. So I had to manually "rebase" the changes. (user: drh, tags: skip-ahead-distinct)
00:12
[8e7b6118] Fix a regression caused by the fix for ticket [6c9b5514077fed34551f98e64c09a1] - control characters allowed in JSON. (user: drh, tags: trunk)
2017-04-12
17:50
[c847543f] Update fts5 to support "<colset> : ( <expr> )" for column filtering, as well as "<colset> : NEAR(...)" and "<colset> : <phrase>". (user: dan, tags: trunk)
17:38
[f2643315] Improved \n and \r escapes in the ext/misc/dbdump.c utility function. The implementation of dbdump.c now matches the implementation in the CLI. (user: drh, tags: trunk)
2017-04-11
20:48
[7aae5c0f] Avoid updating unaffected indexes on a table as part of an UPDATE that requires foreign key processing in some cases. (user: dan, tags: trunk)
19:58
[477bea9e] Closed-Leaf: Avoid updating unaffected indexes on a table as part of an UPDATE that requires foreign key processing in some cases. (user: dan, tags: fkey-optimization)
19:00
[0f66a093] Update this branch with latest trunk changes. (user: dan, tags: schemalint)
18:55
[1f68c184] Limit the depth of recursion for valid JSON in the JSON1 extension in order to avoid using excess stack space in the recursive descent parser. Fix for ticket [981329adeef51011052667a9]. (user: drh, tags: trunk)
18:29
[cc8c3581] Fix a formatting issue in the output of the sqlite3_expert program. (user: dan, tags: schemalint)
18:06
[76cd611d] Smaller and faster implementation of exprMightBeIndexed(). (user: drh, tags: trunk)
17:43
[0c45c5eb] Add header comments to the API functions in sqlite3expert.h. Include a list of all candidate indexes in the report output by the sqlite3_expert program. (user: dan, tags: schemalint)
16:44
[4143650c] Very slight smaller and faster sqlite3SelectNew() (user: drh, tags: trunk)
12:20
[0f3eb61f] Add an ALWAYS() around an unreachable condition in sqlite3VdbeMemGrow(). (user: drh, tags: trunk)
11:52
[d6bb7c42] Fix a segfault that could occur if an indexed expression was used in a comparison operation within the result-set of a SELECT statement. (user: dan, tags: trunk)
01:30
[a47efb7c] When using an index on an expression, try to use the columns of the index rather than pulling columns from the table and reevaluating the expression. (user: drh, tags: trunk)
01:01
[c59eaf2b] Closed-Leaf: Improved comments. Fix a problem when an indexed expression is used in an ORDER BY clause. (user: drh, tags: covering-index-on-expr)
2017-04-10
23:42
[8978465f] Merge changes from trunk. (user: drh, tags: covering-index-on-expr)
20:51
[e052436d] Smaller and faster vdbeFreeOpArray() (user: drh, tags: trunk)
20:27
[efd1702a] Slightly smaller and faster sqlite3VdbeMemGrow(). (user: drh, tags: trunk)
20:00
[9318f1b9] Add ext/expert/README.md. (user: dan, tags: schemalint)
16:13
[5dd98317] Changes to allow the code in sqlite3expert.c to be tested directly (via the API in sqlite3expert.h) instead of by invoking the sqlite3_expert application. Fix memory leaks and other problems. (user: dan, tags: schemalint)
12:31
[6ee12221] Add a new JSON test case to verify that all control characters are escaped in the json_quote() function. (user: drh, tags: trunk)
12:25
[475d8f82] Change the JSON extension so that it disallows control characters inside of strings. Fix for ticket [6c9b5514077fed34551f98e64c09a10dc2fc8e16]. (user: drh, tags: trunk)
2017-04-09
19:23
[19dd753f] Do not expose the name of the internal Mem object in the public interface defined by sqlite3.h. (user: drh, tags: trunk)
08:38
[0857c48e] Fix the -file option on the sqlite3_expert program. (user: dan, tags: schemalint)
2017-04-08
19:00
[e051e8f2] Merge latest trunk with this branch. (user: dan, tags: schemalint)
18:56
[be0deff9] Rename shell6.test to expert1.test. Have it invoke the sqlite3_expert binary if it is present. (user: dan, tags: schemalint)
18:24
[c23ef5e2] Merge all recent changes from trunk. (user: drh, tags: apple-osx)
18:18
[204e72f0] Disallow leading zeros on numeric constants in JSON. Fix for ticket [b93be8729a895a528e2] (user: drh, tags: trunk)
17:41
[bf10e68d] Use hash tables instead of in-memory database tables for a few purposes in sqlite3expert.c. (user: dan, tags: schemalint)
14:11
[b9a8c2b9] Expand on the comment above OP_Destroy to explain why it throws an error if there are any active reader VMs. (user: dan, tags: trunk)
13:52
[fa4416ad] Have the rtree module close any open blob-handle within the xSavepoint method. This prevents such an open blob handle from interfering with DROP TABLE operations. (user: dan, tags: trunk)
13:42
[78c1e903] Fix the quoting mechanism for ".dump" so that it is not applied for the ".mode quote" output. (user: drh, tags: trunk)
09:12
[a921ada8] Have fts5 close any open blob-handle when a new savepoint is opened. This ensures that fts5 does not prevent DROP TABLE statements (which always open a savepoint) from succeeding. (user: dan, tags: trunk)
01:09
[1cdae2db] Make sure the RTree sqlite3_blob handle is reset prior to renaming the table. (user: drh, tags: trunk)
00:55
[a6ce57ee] Fix the ".dump" command so that it works with ".headers on". Also fix the display of ".mode insert" with ".headers on". (user: drh, tags: trunk)
00:25
[dd16439e] Merge the latest trunk changes. (user: drh, tags: apple-osx)
2017-04-07
20:20
[73073529] Use replace() instead of char() to quote newline and return characters in strings in the output of .dump, to avoid excess expression complexity. (user: drh, tags: trunk)
20:14
[305e19f9] Refactor code to suggest indexes from the shell tool into an extension in ext/expert. Unfinished. (user: dan, tags: schemalint)
19:52
[13a42223] Remove an unused token type. (user: drh, tags: covering-index-on-expr)
19:41
[a52ef2ad] Proof of concept for the ability to use the expression columns in an index on expressions in place of equivalent expressions in the result set or in the WHERE clause. This check-in compiles but is mostly untested. (user: drh, tags: covering-index-on-expr)
11:45
[4c2b5729] Closed-Leaf: Use replace() instead of char() to quote newline and return characters in strings in the output of .dump, to avoid excess expression complexity. (user: drh, tags: shell-fix)
2017-04-06
18:44
[0884ff1d] Changes to allow indexes to be recommended for queries on SQL views. (user: dan, tags: schemalint)
14:56
[48826b22] Fix the ".lint fkey" shell command for cases where the child key is also an INTEGER PRIMARY KEY. (user: dan, tags: trunk)
12:06
[327eff25] Fix the ".lint fkey" shell tool command so that it works for foreign keys that refer implicitly to primary key columns with non-BINARY default collation sequences. (user: dan, tags: trunk)
2017-04-05
13:44
[c5f1a2b6] Remove a confusing and pointless sentence from the documentation for the sqlite3_interrupt() interface. (user: drh, tags: trunk)
12:39
[ad90e8bb] Split off sqlite3DbFreeNN() from sqlite3DbFree() and use it in cases where we know that the argument to be freed is never NULL. (user: drh, tags: trunk)
11:57
[9e6c9391] Save a few bytes and a few CPU cycles in sqlite3ExprListDelete() routine. (user: drh, tags: trunk)
11:49
[a1cf4476] Remove a conditional made unreachable by the previous ExprList enhancement. (user: drh, tags: trunk)
11:32
[2b6560ad] Combine the ExprList_item objects and the ExprList wrapper into a single memory allocation, for improved performance and reduced footprint. (user: drh, tags: trunk)
10:54
[71ed35cc] Attempt to remove bash-isms from configure.ac. Use -O0 with --enable-debug. (user: drh, tags: trunk)
2017-04-04
19:58
[e5bb7db5] Fix a problem causing "PRAGMA integrity_check" to disable the xfer optimization for subsequent VACUUM operations on tables with one or more CHECK constraints. This could result in VACUUM producing slightly larger database files. (user: dan, tags: trunk)
17:50
[5cd07000] Add some support for OR terms to sqlite3_whereinfo_hook(). (user: dan, tags: schemalint)
04:23
[a54aef35] Add the sqlite3_whereinfo_hook() API - an experimental API replacing the DBCONFIG_WHEREINFO hack on this branch. (user: dan, tags: schemalint)
2017-04-03
14:07
[5c11f430] Avoid an unnecessary call to sqlite3WhereGetMask() inside of whereShortCut(). (user: drh, tags: trunk)
13:59
[658f08ce] Do not attempt to run sync2.test with SQLITE_DISABLE_DIRSYNC builds. (user: dan, tags: trunk)
13:33
[86897c24] Force a schema load prior to "PRAGMA optimize". (user: drh, tags: trunk)
13:17
[777b43e6] Fix typos in the documentation for OP_Column. (user: drh, tags: trunk)
12:04
[84fa069c] Slightly smaller and faster implementation for vdbeSorterCompareInt(). (user: drh, tags: trunk)
2017-04-01
20:44
[e6e36b28] Remove an unnecessary setting of the Mem.enc field for the output of the OP_Record opcode, for a performance improvement and size reduction. (user: drh, tags: trunk)
20:14
[c45cd3b9] Minor performance enhancements to the OP_Affinity opcode. (user: drh, tags: trunk)
19:45
[fcd2acdd] Remove an unnecessary clearing of the Vdbe.iCurrentTime value. (user: drh, tags: trunk)
11:59
[8698df60] Faster implementation for sqlite3VdbeIntValue() and sqlite3VdbeRealValue(). (user: drh, tags: trunk)
11:40
[1c0d82e0] Remove unused fields from the BtCursor object. (user: drh, tags: trunk)
00:20
[2452f061] Save a 78 bytes of code space and a million CPU cycles in speedtest1 by storing the cell index for the leaf page in the BtCursor object in its own field (BtCursor.ix), rather than as an entry in the BtCursor.aiIdx array. (user: drh, tags: trunk)
2017-03-31
11:20
[cb721d0b] Merge latest trunk into this branch. (user: dan, tags: schemalint)
08:00
[1e3622de] Update shell6.test to account for the fact that tests are now run in a separate directory. (user: dan, tags: schemalint)
2017-03-30
20:35
[785c37d9] Merge changes from the 3.18.0 release. (user: drh, tags: begin-concurrent)
20:26
[ed28f15e] Merge all changes from the 3.18.0 release. (user: drh, tags: apple-osx)
17:13
[c8000e94] Declare the Lemon-generated parser object as itself. (Duh) (user: drh, tags: trunk)
16:51
[9e550ccc] Increase the version number for the next development cycle. (user: drh, tags: trunk)
16:37
[1279de0b] Ensure that the stack space used to hold the Lemon-generated parser object is always 8-byte aligned. (user: drh, tags: trunk)
2017-03-29
23:22
[a6891942] When compiling with MSVC, disable extra SELECT/WHERE tracing for dynamically built shells. (user: mistachkin, tags: trunk)
18:03
[4a01880b] Avoid unnecessary blob handle invalidation when changes are made to an unrelated table. (user: drh, tags: trunk)
17:06
[06c2b685] Slightly smaller and faster implementation of pcache1InitBulk(). (user: drh, tags: trunk)
16:55
[d336858d] Fix some tests in malloc5.test to account for the sqlite3_release_memory() change in the previous commit. (user: dan, tags: trunk)
15:18
[5d902b7f] Fix the sqlite3_release_memory() interface so that it works even if SQLITE_DEFAULT_PCACHE_INITSZ is non-zero. (user: drh, tags: trunk)
2017-03-28
18:48
[424a0d38] Version 3.18.0 (user: drh, tags: release, branch-3.18, version-3.18.0)
2017-03-25
19:16
[8469fc0d] Add the new sqlite3_set_last_insert_rowid() interface to the extension loader thunk. (user: drh, tags: trunk)
18:31
[55df410b] Do not run tests for ".dump --preserve-rowids" when testing SQLITE_OMIT_VIRTUALTABLE builds. (user: dan, tags: trunk)
18:15
[bd5bbe4e] Disable the new --preserve-rowids option on the CLI ".dump" command if compiled with SQLITE_OMIT_VIRTUALTABLE. (user: drh, tags: trunk)
18:03
[833ab321] Make the default value for SQLITE_DEFAULT_SYNCHRONOUS a simple integer literal, so that it does not show up goofy in the output of "PRAGMA compile_options;". (user: drh, tags: trunk)
12:08
[32be9c3f] Fix two harmless compiler warnings. (user: drh, tags: trunk)
2017-03-24
19:45
[c2c3dd84] Fix a harmless compiler warning in the JSON1 extension. (user: drh, tags: trunk)
18:38
[8194dd28] Previous check-in was not correct. This is a better fix for the OP_Once problem of ticket [06796225f59c057cd120f1]. (user: drh, tags: trunk)
17:59
[25560145] Fix the OP_Once opcode so that it works correctly for recursive triggers. Ticket [06796225f59c057cd120f1]. (user: drh, tags: trunk)
15:09
[fd5676fe] Merge all recent enhancements from trunk. (user: drh, tags: begin-concurrent)
13:31
[c5441d2d] Add the RFC-7396 Appendix A test cases for json_patch(). (user: drh, tags: trunk)
12:35
[9d535041] Fix an error in the new json_patch() routine discovered by Ralf Junker. (user: drh, tags: trunk)
2017-03-23
23:44
[47608848] Add the json_patch() SQL function to the JSON1 extension. (user: drh, tags: trunk)
20:33
[04d41004] Closed-Leaf: Change the name of the json_merge_patch() function to just json_patch(). (user: drh, tags: json_mergepatch)
19:51
[bf28a55d] Improvement to the amalgamation configure.ac file contributed by Bob Friesenhahn. (user: drh, tags: trunk)
17:22
[e1d06a57] Do not run test file autoanalyze1.test if OMIT_VIRTUALTABLE is defined. (user: dan, tags: trunk)
17:03
[9f2e04d3] Remove an invalid assert() statement failing when VACUUMing a database that contains an index on a column explicitly declared "COLLATE BINARY". (user: dan, tags: trunk)
12:56
[4a8e6437] Avoid redundant edits in the json_merge_patch() function. (user: drh, tags: json_mergepatch)
00:46
[5d2cf5a2] Fix harmless compiler warnings in the new json_merge_patch() logic. (user: drh, tags: json_mergepatch)
00:13
[f49fd255] Various fixes to the json_merge_patch() function. (user: drh, tags: json_mergepatch)
2017-03-22
21:45
[53bf70f3] Change the name of the new function to "json_merge_patch()". (user: drh, tags: json_mergepatch)
21:24
[a2674440] Initial implementation of the json_mergepatch(A,B) SQL function. (user: drh, tags: json_mergepatch)
12:51
[a7868297] Fix harmless compiler warnings in the shell. (user: drh, tags: trunk)
2017-03-21
20:17
[055b36f1] New simplified memory initialization for MacOS. (user: drh, tags: trunk)
18:56
[ad741976] Fix an incorrect assert in the ANALYZE logic for STAT4 on WITHOUT ROWID tables. (user: drh, tags: trunk)
17:19
[ee9588e8] Add short script ext/fts3/tool/fts3cov.sh. To help measure test-coverage of fts3 source code. (user: dan, tags: trunk)
10:45
[9f680bc7] Do not run sync2.test as part of the "inmemory_journal" permutation. (user: dan, tags: trunk)
2017-03-20
22:58
[0dd18ec8] Add the --native-malloc option to fuzzcheck. Fix ossfuzz.c and fuzzcheck.c so that they both deallocate the temp_store_directory before closing. (user: drh, tags: trunk)
20:42
[021e8874] Fix the fuzzcheck program so that it can create new databases again. (user: drh, tags: trunk)
19:35
[49b93d97] Avoid passing NULL as the second argument to memcpy() in fts3. (user: dan, tags: trunk)
19:26
[a144875f] Avoid a technically undefined right-shift of a signed value in rtree.c. (user: dan, tags: trunk)
18:53
[16a8e84f] Fix some problems in fts3 found by address-sanitizer. (user: dan, tags: trunk)
16:34
[ef3a7c87] Avoid the possibility of signed integer overflow with oversized precisions in %d conversions in the printf() implementation. (user: drh, tags: trunk)
16:06
[285005a9] Do not run sync2.test as part of the "journaltest" permutation, as it uses "PRAGMA synchronous = off". (user: dan, tags: trunk)
15:29
[673a7b67] Ensure that a "--" prefix is added to sqlite3_trace_v2() output for nested SQL statements. (user: drh, tags: trunk)
15:11
[ecb9321e] Only run sync2.test on unix, as it depends on instrumentation in os_unix.c. (user: dan, tags: trunk)
14:44
[8822eb5d] Fix the check.test script so that it works on Windows. (user: drh, tags: trunk)
13:03
[2aa22509] Documentation fix: SQLITE_SOURCE_ID is a now a SHA3-256 hash. (user: drh, tags: trunk)
2017-03-18
13:59
[4e6a03d9] Only do the specialized MacOS single-core zone_malloc initialization if compiled with the SQLITE_MIGHT_BE_SINGLE_CORE flag. This avoids a (harmless) warning about OSAtomicCompareAndSwapPtrBarrier() being deprecated. (user: drh, tags: trunk)
2017-03-17
23:08
[f4cf8635] Fix an error in the newly revised documentation for SQLITE_LIMIT_VDBE_OP. No changes to code. (user: drh, tags: trunk)
22:51
[f74899ed] Set a reasonable limit on the number of opcodes in a prepared statement for ossfuzz.c. This should prevent timeouts in OSS-Fuzz when it generates totally unreasonable queries. (user: drh, tags: trunk)
22:50
[ef591461] Begin enforcing the SQLITE_LIMIT_VDBE_OP. The documentation warned that this day might come. (user: drh, tags: trunk)
14:59
[626bdca9] Add the --show-errors and --show-max-delay command-line options to the ossshell test program. (user: drh, tags: trunk)
14:15
[36f5602e] Fix the Makefile.in so that it builds the ossshell test program correctly. (user: drh, tags: trunk)
13:59
[f336fba7] Fix a buffer overread in debugging routine sqlite3VdbeMemPrettyPrint(). Problem discovered by OSS-Fuzz. (user: dan, tags: trunk)
03:21
[019dd3d5] Fix a problem in the enhanced PRAGMA integrity_check where it verifies CHECK constraints: Do not be confused by the reuse of the Table.pCheck field by VIEWs with named columns. Problem discovered by OSS-Fuzz. (user: drh, tags: trunk)
2017-03-16
18:55
[5c604479] If the user has not set it explicitly, set the "PRAGMA synchronous" setting to SQLITE_DEFAULT_SYNCHRONOUS when a database connection changes from wal to rollback journal mode. (user: dan, tags: trunk)
18:54
[df39adea] Closed-Leaf: Fix a typo causing the build to fail if SQLITE_DEFAULT_SYNCHRONOUS==SQLITE_DEFAULT_WAL_SYNCHRONOUS. (user: dan, tags: default-synchronous-fix)
18:14
[78030c0f] If the user has not set it explicitly, set the "PRAGMA synchronous" setting to SQLITE_DEFAULT_SYNCHRONOUS when a database connection changes from wal to rollback journal mode. (user: dan, tags: default-synchronous-fix)
14:28
[6d85eb57] Simplified OOM detection in the instr() SQL function. (user: drh, tags: trunk)
13:30
[e3d48716] Fix an uninitialized variable reference in the text generator for "PRAGMA vdbe_trace=ON" output. Problem discovered by OSS-Fuzz. (user: drh, tags: trunk)
13:14
[eb7680a1] Fix a problem in the "showdb" utility that prevents it from correctly decoding cells with no content beyond the record header. (user: drh, tags: trunk)
12:11
[6e59e903] Fix a crash that could follow an OOM condition in the instr() SQL function. Problem discovered by OSS-Fuzz. (user: dan, tags: trunk)
2017-03-15
20:27
[029bc5d2] Updates to README files under the ext/ hierarchy. No changes to code. (user: drh, tags: trunk)
19:11
[b1b1aa8b] Add the "Obtaining The Code" subsection in the top-level README.md file. No changes to code. (user: drh, tags: trunk)
14:20
[37f766db] Mention the ".selftest" command in the ".help" output of the CLI. (user: drh, tags: trunk)
14:04
[bcf6bb08] Make "PRAGMA temp.synchronous=N" a no-op to ensure that the TEMP schema always has synchronous=OFF. This fixes an issue discovered by OSS-Fuzz. (user: drh, tags: trunk)
13:47
[84f2e3d5] Improved header comment on the shathree.c extension. No changes to code. (user: drh, tags: trunk)
2017-03-14
15:27
[1e4b9e7c] Updates to the MSVC makefiles. (user: mistachkin, tags: trunk)
2017-03-13
22:10
[2b9980a2] Add the dbdump.c extension that implements functionality similar to the ".dump" command of the CLI, though in a separate library. (user: drh, tags: trunk)
22:02
[59241a50] Closed-Leaf: Add dbdump.exe to the MSVC makefile. (user: drh, tags: dbdump)
21:49
[007b11e3] Fixes to the dump logic. All appears to be working in preliminary tests. (user: drh, tags: dbdump)
21:26
[84ea4fcc] First draft of the complete dbdump.c library. (user: drh, tags: dbdump)
19:26
[74c5ace4] Infrastructure for an extension C-library to implement sqlite3_db_dump() and a corresponding "dbdump" command-line utility - both of which do the same work as the ".dump" command of the CLI. (user: drh, tags: dbdump)
18:31
[3d04b2cd] Merge all recent changes from trunk. (user: drh, tags: apple-osx)
18:24
[68f6dc7a] In the output of the ".dump" command in the CLI, quote newline and carriage-return characters using the char() function, so that they do not get eaten by end-of-line processing logic in the OS or in other command-line utilities and/or libraries. (user: drh, tags: trunk)
17:37
[9034cf7e] Fix the sqlite3TreeViewSelect() routine so that it works with a null pointer to the Select object. (user: drh, tags: trunk)
14:30
[c6dda3f7] Fix a segfault that could occur following an OOM error in the flattenSubquery() routine. (user: dan, tags: trunk)
13:45
[f3b6959c] In the OSSFuzz test module, invoke the progress handler much more frequently so that timeouts are detected punctually even if the test script is running opcodes that individually take a long time (for example, an OP_Function opcode that invokes "randomblob(1.5e6)"). (user: drh, tags: trunk)
2017-03-12
20:28
[5ec655e8] Fix a possible NULL pointer dereference in following an OOM error in sqlite3ExprIsInteger(). Problem found by OSS-Fuzz. (user: drh, tags: trunk)
19:39
[18bf6aca] Remove an obsolete assert() in the IN operator code generation. (user: drh, tags: trunk)
2017-03-11
13:02
[3299a261] Make sure the translateColumnToCopy() routine in the query planner does not try to access an array that failed to be fully allocated due to a prior OOM. This fixes an issue discovered by OSSFuzz. (user: drh, tags: trunk)
01:56
[8b2954dd] Closed-Leaf: The output of the ".dump" command in the CLI quotes newline and carriage-return characters using "char(10)" and "char(13)". (user: drh, tags: string-quoting-dump)
00:46
[7359fcac] Increase the number of significant digits in floating point literals on ".dump" output from the shell. (user: drh, tags: trunk)
2017-03-10
18:36
[b5bf2957] Remove the rbu_round_trip.tcl script. It is now part of project "test-dbs". (user: dan, tags: trunk)
17:03
[f8560c60] Fix an error in the SQLITE_MAX_MEMORY implementation resulting from a bad merge. Update the OSSFuzz interface so that it times out after running the byte-code engine for 10 seconds. (user: drh, tags: trunk)
16:22
[eabd4ef4] Add the -DSQLITE_MAX_MEMORY=N compile-time option. The default is no limit. (user: drh, tags: trunk)
15:55
[77dfe2ab] Closed-Leaf: Add the SQLITE_MAX_MEMORY compile-time option that provides a hard upper bound on the amount of memory that SQLite will use, per process. (user: drh, tags: max-memory-option)
14:36
[118f5c05] Enhance the ".stats" dot-command in the CLI to use sqlite3_status64() instead of sqlite3_status(). (user: drh, tags: trunk)
01:05
[b044b152] Improvements to ".selftest --init". Tests are number in increments of 10 starting with 100. The tests are generated inside a SAVEPOINT. Errors are reported during test generation. Tests can be appended to existing tests. Add a test case to verify the schema. (user: drh, tags: trunk)
2017-03-09
22:00
[f4fcd46f] Remove the test/dbselftest.c program. In its place, add the ".selftest" command to the CLI. The new CLI version is .selftest is slightly different in that it uses SHA3 hashing instead of SHA1, so the new is subtly incompatible with the old. (user: drh, tags: trunk)
18:13
[6c627e50] Fix the ".dump" command to correctly extract tail data from corrupt WITHOUT ROWID tables. (user: drh, tags: trunk)
16:32
[5dc82a15] Closed-Leaf: Add the --recovery-mode option to the CLI ".dump" command. This involves enhancing the "PRAGMA reverse_unordered_selects" command to accept a "TOGGLE" option. Recovery mode used to be always on. Now it is opt-in. Not sure this is the correct approach. Also not sure if TOGGLE is a good feature to have on boolean PRAGMA statements. (user: drh, tags: dump-recovery)
13:50
[50eec5d9] Begin moving separate boolean variables in the ShellState object of the CLI into the shellFlgs bitmask. (user: drh, tags: trunk)
2017-03-08
23:29
[aacac906] Leaf: Refactor the output logic in the CLI. Not sure we want to go this way. Just saving the work for historical reference, or in case I decide to come back to it. (user: drh, tags: shell-print-refactor)
18:37
[9b439173] Merge recent enhancements from trunk, including the --preserve-rowids option to .dump and the .sha3sum commands of the CLI. (user: drh, tags: apple-osx)
18:06
[2ea300fb] Make sure the database connection is open prior to running the ".sha3sum" command. (user: drh, tags: trunk)
17:56
[30f87883] In the ".sha3sum" command, if there is a LIKE pattern, show the hashes for each table separately. Without a LIKE pattern, show a single hash over the entire database. (user: drh, tags: trunk)
16:10
[fc663799] Add the ".sha3sum" command to the CLI - used to compute a cryptographic hash of the content of a database file or of individual tables with in that file. (user: drh, tags: trunk)
15:03
[54ef7abd] Improved comments explaining the sha3_query() format. Fix a performance #ifdef error in the sha3 implementation. (user: drh, tags: trunk)
13:50
[f7ca9193] Add the shathree.c extension for implementing SHA3() and SHA3_QUERY() SQL functions. (user: drh, tags: trunk)
12:25
[de65f907] In the CLI, avoid unnecessary identifier quoting in the ".dump" output. Also add new ".dump" test cases. (user: drh, tags: trunk)
11:44
[c60aee24] Add the --preserve-rowids option to the ".dump" command in the CLI. (user: drh, tags: trunk)
2017-03-07
20:03
[961e79da] Add test script ext/rbu/rbu_round_trip.tcl. Uses "dbselftest" to test that "rbu" and "sqldiff" work together. (user: dan, tags: trunk)
14:47
[694fe0b2] Leaf: Before beginning an incremental checkpoint in RBU, sync the directory containing the target database file. This ensures that the new directory entry created by renaming the *-oal file to *-wal is synced to disk. Cherrypick of [915a9a28]. (user: dan, tags: version-3.17.0-rbu-fixes)
14:46
[59a11b7f] Fix another RBU case similar to the previous. This one for systems where the sector-size is larger than the page-size. Cherrypick of [4012bb3a]. (user: dan, tags: version-3.17.0-rbu-fixes)
14:45
[811a5599] When saving the state of an RBU update in the incremental-checkpoint phase, sync the database file. Otherwise, if a power failure occurs and the RBU update resumed following system recovery, the database may become corrupt. Cherrypick of [edee6a80]. (user: dan, tags: version-3.17.0-rbu-fixes)
14:38
[2cb71583] Performance optimization in the tokenizer/parser loop. (user: drh, tags: trunk)
12:18
[01cd9fb1] Minor comment typo fixes. No changes to code. (user: drh, tags: trunk)
03:40
[e0a3d39f] More size and speed improvements in the expression name resolver. (user: drh, tags: trunk)
03:25
[1a3554e1] Small size reduction and performance increase in the name resolver routine for expressions. (user: drh, tags: trunk)
2017-03-06
23:51
[73019a8b] Make the default MASK argument for "PRAGMA optimize" be 0xfffe, to allow for future expansion of up to 14 new default-on optimizations. (user: drh, tags: trunk)
20:44
[ec529bf1] Fix a typo in a comment. No changes to code. (user: drh, tags: trunk)
20:00
[1650c3f4] Merge all pending 3.18 enhancements from trunk. (user: drh, tags: apple-osx)
17:33
[137aeb2b] Add an initial implementation of the "PRAGMA optimize" command. (user: drh, tags: trunk)
11:39
[5f7fc79a] Closed-Leaf: Merge updates from trunk. (user: drh, tags: auto-analyze)
2017-03-03
21:51
[45797fee] If a reprepare is needed after binding to a variable with a number larger than 32, set only the high-order bit of the Vdbe.expmask rather than setting all bits. This could potentially result in fewer false-positive reprepares. (user: drh, tags: trunk)
21:36
[4a04c48a] Remove an redundant function call from the date/time function implementation. (user: drh, tags: trunk)
20:43
[8831f439] Fix another corner-case for the 'start of ...' modifier in the date/time functions. Related to ticket [6097cb92745327a1]. (user: drh, tags: trunk)
20:02
[5d0455fe] Fix a case introduced by [4cd2a967] where a corrupt database could cause a buffer overwrite. (user: dan, tags: trunk)
16:51
[915a9a28] Before beginning an incremental checkpoint in RBU, sync the directory containing the target database file. This ensures that the new directory entry created by renaming the *-oal file to *-wal is synced to disk. (user: dan, tags: trunk)
2017-03-02
23:40
[081dbcfb] Fix a bug in the 'start of ...' date/time modifiers when they follow a julian day number. Fix for ticket [6097cb92745327a1]. (user: drh, tags: trunk)
16:56
[4012bb3a] Fix another RBU case similar to the previous. This one for systems where the sector-size is larger than the page-size. (user: dan, tags: trunk)
14:51
[edee6a80] When saving the state of an RBU update in the incremental-checkpoint phase, sync the database file. Otherwise, if a power failure occurs and the RBU update resumed following system recovery, the database may become corrupt. (user: dan, tags: trunk)
14:17
[a35388ee] Add an optional bitmask of allowed optimizations on the "PRAGMA optimize" command. The 0x01 bit is Debug Mode. (user: drh, tags: auto-analyze)
13:22
[c60cdb47] Merge recent trunk enhancements. (user: drh, tags: auto-analyze)
13:13
[29f54b89] Make sure the Vdbe.expmask value is set correctly in sqlite3VdbeSwap(). This fixes a problem introduced by [a8fd7052]. (user: drh, tags: trunk)
2017-03-01
11:30
[ac760db0] Fix a use-after-free problem in the shell tool code that could occur if an SQL statement were executed after an ".open" command with invalid options. (user: dan, tags: trunk)
2017-02-27
17:16
[23a8917e] Make PATH handling more robust in the batch tools for MSVC. (user: mistachkin, tags: trunk)
17:06
[2b210d69] Improve performance of fts5 writes by writing the "averages" record once at the end of each transaction instead of every time the table is updated. (user: dan, tags: trunk)
16:15
[952a3906] Add an sqlite3_set_last_insert_rowid() method. Use it to work around fts4 and fts5 modifying the last-insert-rowid unintuitively from within commit processing. (user: dan, tags: trunk)
14:52
[fe41bb56] Closed-Leaf: Add an sqlite3_set_last_insert_rowid() method. Use it to work around fts4 and fts5 modifying the last-insert-rowid unintuitively from within commit processing. (user: dan, tags: set-last-insert-rowid)
12:23
[660f9569] Remove references to special handling in virtual table methods from the documentation for sqlite3_last_insert_rowid(). (user: dan, tags: trunk)
2017-02-25
20:57
[ffd61fb4] Add an 'extern "C"' block to header file sqlite3userauth.h. (user: dan, tags: trunk)
17:47
[4cd2a967] Optimize defragmentPage() in the case where the page contains either one or two free-blocks and a small number of fragmented bytes. (user: dan, tags: trunk)
16:24
[f9863b39] Closed-Leaf: Tweak the code on this branch to detect b-tree page corruption in the same cases as the trunk. (user: dan, tags: defragmentpage-opt)
2017-02-24
19:58
[202b1c02] Optimize defragmentPage() in the case where the page contains either one or two free-blocks and a small number of fragmented bytes. (user: dan, tags: defragmentpage-opt)
2017-02-23
16:30
[a8fd7052] Save a few bytes and a few cycles by setting Vdbe.expmask to zero for statements prepared using legacy interface sqlite3_prepare(). (user: dan, tags: trunk)
02:15
[7a959f6d] Add two NEVER() operators in the sqlite3BtreeRowCountEst() routine. (user: drh, tags: auto-analyze)
00:58
[188300a3] Do a single OP_Expire at the very end of "PRAGMA optimize", and omit the OP_Expire on ANALYZE commands invoked by the pragma. (user: drh, tags: auto-analyze)
2017-02-22
20:24
[9fced545] Change the name of the analyze_as_needed pragma to "optimize". Enhance the comment (which will become documentation, assuming these changes land on trunk) to explain that the optimize pragma is likely to be enhanced in various ways in future releases and that applications should not depend upon the current behavior. (user: drh, tags: auto-analyze)
19:49
[fe073905] Merge integrity_check and other improvements from trunk. (user: drh, tags: auto-analyze)
19:41
[d6afd98d] Move a branch condition in analyze.c inside an #ifdef SQLITE_ENABLE_STAT4 block. (user: dan, tags: trunk)
19:27
[737a8244] Improve the performance of ANALYZE when SQLITE_ENABLE_STAT4 is defined. (user: dan, tags: trunk)
18:53
[aa02bd3c] Improvements to PRAGMA integrity_check. Verify CHECK constraints. Verify NOT NULL constraints even on table that lack indexes. Verify CHECK and NOT NULL constraints with PRAGMA quick_check. (user: drh, tags: trunk)
18:04
[5af7d72e] Closed-Leaf: Cleanup and simplification of the output row count limit control of PRAGMA integrity_check. (user: drh, tags: integrity-check-improvements)
15:11
[5264844b] Fix integrity_check so that it verifies NOT NULL constraints even for tables that have no indexes. Enhance quick_check so that it verifies NOT NULL and CHECK constraints. (user: drh, tags: integrity-check-improvements)
14:15
[549bae08] Enhance "PRAGMA integrity_check" so that it verifies CHECK constraints. (user: drh, tags: integrity-check-improvements)
2017-02-21
21:24
[80adc0cb] In sqlite3VdbeHalt(), return as soon as possible if Vdbe.magic!=VDBE_MAGIC_RUN. This makes sqlite3_reset() slightly faster in some cases. (user: dan, tags: trunk)
17:52
[e400909f] Fix an FTS5 problem that could cause a crash when certain queries were interrupted using sqlite3_interrupt(). (user: dan, tags: trunk)
15:27
[3c3228ed] Very small enhancement to dispatch speed for SQL functions. (user: drh, tags: trunk)
14:04
[7a62fc6a] Leaf: The VDBE cycle counts for the sqlite3_progress_handler() callback are now cumulative. Leftovers from the previous statement are applied to the next statement. (user: drh, tags: cumulative-progress-count)
13:29
[9626b41e] Leaf: Proof of concept for a "PRAGMA vdbe_cycle_limit=N" command. When N>0, invoke sqlite3_interrupt() whenever any byte code program uses more than N virtual machine cycles. (user: drh, tags: vdbe_cycle_limit)
2017-02-20
23:32
[1589db01] Correct a harmless typo in the previous check-in. (user: mistachkin, tags: trunk)
19:13
[96b6a98e] Avoid unsigned integer overflows for SQLITE_WIN32_HEAP_INIT_SIZE when the Win32 heap subsystem is used with very large values of SQLITE_DEFAULT_CACHE_SIZE and/or SQLITE_DEFAULT_PAGE_SIZE. (user: mistachkin, tags: trunk)
14:30
[0d8a868a] Small grammar simplification. (user: drh, tags: trunk)
13:11
[ff213f2e] Merge fixes from trunk. (user: drh, tags: auto-analyze)
2017-02-18
22:52
[e842ad39] Updated comments. No code changes. (user: drh, tags: auto-analyze)
20:05
[c1adf959] Leaf: Add an optimization to OP_Column to speed up sequential OP_Column instructions that read earlier fields from the same cursor. Attempt to reorder OP_Column opcodes so as to take advantage of this. (user: dan, tags: sort-column-opcodes)
15:58
[d386015f] Add the OP_SqlExec opcode and use it to implement "PRAGMA analyze_as_needed", invoking ANALYZE subcommands as necessary. This simplifies the implementation. (user: drh, tags: auto-analyze)
13:47
[49181427] Add the SQLITE_BUG_COMPATIBLE_20160819 compile-time option to omit the error message when an unrecognized argument is provided to the VACUUM command. (user: drh, tags: trunk)
02:42
[4229caec] Fix errors in the table resize detection. (user: drh, tags: auto-analyze)
02:19
[882599a4] In the analyze_as_needed pragma, avoid running unnecessary OP_LoadAnalysis and OP_Expire opcodes. Make the analyze_as_needed pragma responsive to the schema name. (user: drh, tags: auto-analyze)
2017-02-17
23:52
[8cc9d74c] Fix the #endif location for an #ifndef SQLITE_UNTESTABLE macro in the command-line shell. (user: drh, tags: trunk)
21:23
[38298ef9] Leaf: Increase the estimated cost of sorting when sorting wide results sets, to account for the extra storage space and I/O required for the external sort. (user: drh, tags: apple-increased-sorting-cost)
19:24
[bfbdd074] The analyze_as_needed pragma now responds to table size growth and will automatically rerun the analysis after each 10x size increase. (user: drh, tags: auto-analyze)
16:26
[e93db237] Add the "PRAGMA analyze_as_needed" command. (user: drh, tags: auto-analyze)
15:26
[fb2b8ae8] Set the TF_StatsUsed flag on tables when the query planner outcome is affected by the sqlite_stat1 data. Also, change the column names of the "PRAGMA stats" command so that they are not keywords. (user: drh, tags: auto-analyze)
13:38
[85026c8e] Enhance the Index and Table objects so that they remember if their stats come from the sqlite_stat1 table. Make the "PRAGMA stats" an SQLITE_DEBUG only pragma. Add the flags column to "PRAGMA stats". These are all preliminary steps toward a "PRAGMA analyze_ifneeded;" feature. (user: drh, tags: auto-analyze)
02:07
[662e8ccf] Leaf: Merge fixes from trunk. (user: drh, tags: increased-sorting-cost)
02:04
[218b2bbb] Fix a test case that was made to fail by the LIKE optimization enhancement in check-in [158290c0ab] but which went unnoticed because test builds were running with ICU enabled and ICU disables the LIKE optimization. (user: drh, tags: trunk)
01:43
[8a03be1d] Enable the ".wheretrace" and ".selecttrace" extensions in the command-line shell when compiled on Windows using DEBUG=3 or higher. Fix a harmless warning in the shell that comes up when compiled this way. (user: drh, tags: trunk)
2017-02-16
21:29
[aa0703e5] Increase the estimated cost of sorting when sorting wide results sets, to account for the extra storage space and I/O required for the external sort. (user: drh, tags: increased-sorting-cost)
20:52
[9fc5cd50] Change the name of WhereInfo.pDistinctSet to pResultSet, since it is now used for more than just DISTINCT processing. (user: drh, tags: trunk)
17:18
[ff5e733c] Change two MallocZero() calls into MallocRaw() to avoid unnecessary memset(). (user: drh, tags: trunk)
16:26
[bb8e2642] Fix a comment on a field of the ExprList object. No changes to code. (user: drh, tags: trunk)
15:57
[7e14044c] Increase Table.tabFlags from 8 to 32 bits. (user: drh, tags: trunk)
15:06
[6bd82b95] Remove two redundant initializations from the virtual table logic. (user: drh, tags: trunk)
14:48
[6affb1c8] Always use the IsVirtual() macro to determine if a Table object is a virtual table. Slightly smaller and faster code. (user: drh, tags: trunk)
14:02
[325ccfa9] Leaf: Merge recent enhancements from trunk. (user: drh, tags: est_count_pragma)
2017-02-15
22:36
[58797e9b] Query planner optimization to detect empty tables in a join early and bail out without doing excess work. (user: drh, tags: trunk)
18:30
[830b9235] Minor enhancement to mutex tracing on Win32. (user: mistachkin, tags: trunk)
17:47
[1d4759c1] Leaf: simple test cases for carray_asc. (user: drh, tags: carray_asc)
16:11
[a2b4f60b] Add the companion "carray_asc" table-valued function to the carray extension. (user: drh, tags: carray_asc)
16:04
[396b9d99] Closed-Leaf: Bummer. Checked this in as a branch off of the wrong branch.... Was: Add the companion "carray_asc" table-valued function to the carray extension. (user: drh, tags: mistake)
15:11
[8d3f485d] Leaf: Remove the CLANG_VERSION macro, since we have learned that version numbers in clang are "marketing" and are inconsistent and unreliable. Builds using clang will still use the GCC_VERSION macro since clang works hard to be gcc compatible. (user: drh, tags: branch-3.17)
15:09
[810d2932] Remove the CLANG_VERSION macro, since we have learned that version numbers in clang are "marketing" and are inconsistent and unreliable. Builds using clang will still use the GCC_VERSION macro since clang works hard to be gcc compatible. (user: drh, tags: trunk)
04:16
[ee1e6896] Further reforms to Tcl_*Alloc() usage. (user: mistachkin, tags: trunk)
01:39
[1d267757] In the blob test code, avoid crashing on low-memory systems by using Tcl_AttemptAlloc(). (user: mistachkin, tags: trunk)
01:02
[4ca2b2f8] Leaf: Make SQLITE_GET_MUTEX_TIME a proper noop on non-Win32/non-POSIX. (user: mistachkin, tags: mutexDbg2)
00:52
[82ef47ea] Another compilation fix for POSIX. (user: mistachkin, tags: mutexDbg2)
00:45
[79057716] Make fine time granularity work on POSIX. (user: mistachkin, tags: mutexDbg2)
00:02
[9964ad24] Compilation fix for POSIX. (user: mistachkin, tags: mutexDbg2)
2017-02-14
23:58
[80481754] Experimental enhancements to mutex debugging. (user: mistachkin, tags: mutexDbg2)
21:47
[ca4f1e49] Clarification of the help text for the command-line shell. (user: drh, tags: trunk)
20:00
[54836270] Enable the SQLITE_ENABLE_NULL_TRIM option for WITHOUT ROWID tables. (user: drh, tags: trunk)
16:30
[e4731fd6] More realistic lengths of string values in speedtest1 with --testset orm. (user: drh, tags: trunk)
15:58
[58b2f911] Fix a testcase number on the ORM testset of speedtest1. (user: drh, tags: trunk)
15:57
[1836adc1] Add the new "--testset orm" to the speedtest1 utility. (user: drh, tags: trunk)
2017-02-13
16:17
[1913a758] Merge all changes up through the 3.17.0 release. (user: drh, tags: apple-osx)
16:02
[ada05cfa] Version 3.17.0 (user: drh, tags: release, branch-3.17, version-3.17.0)
13:35
[670f10b2] Change all legacy instances of "#if SQLITE_DEBUG" to "#ifdef SQLITE_DEBUG" for consistency. (user: drh, tags: trunk)
13:26
[f3b65926] Fix typos in using the MSVC_VERSION macro. (user: drh, tags: trunk)
13:20
[c447441c] Avoid a duplication #define in FTS5 (user: drh, tags: trunk)
11:35
[25ebadd0] Fix typos in using the MSVC_VERSION macro. (user: drh, tags: branch-3.17)
2017-02-11
15:02
[b2e49ae3] Ensure that indexed expressions with collating sequences are handled correctly. Fix for ticket [eb703ba7b50c1a5] backported from trunk. (user: drh, tags: branch-3.17)
14:59
[e464b919] Fix indexes on expressions so that they can be actually used with a COLLATE clause. (user: drh, tags: trunk)
13:51
[9689d04b] Ensure that indexed expressions with collating sequences are handled correctly. Proposed fix for ticket [eb703ba7b50c1a5]. (user: drh, tags: trunk)
2017-02-10
21:40
[7520c238] Bump the version number up to 3.18.0. (user: drh, tags: trunk)
21:37
[158290c0] Enhance the LIKE optimization so that it works for arbitrary expressions on the LHS as long as the pattern on the RHS does not begin with a digit or a minus sign. (user: drh, tags: trunk)
19:38
[064445b1] Add the "," flag to printf(). (user: drh, tags: trunk)
17:38
[ad867e87] Version 3.17.0 release candidate (user: drh, tags: branch-3.17)
2017-02-09
17:12
[798fb9d7] Cleanup the usage of the SQLITE_DISABLE_INTRINSIC compile-time option. Remove the SQLITE_RUNTIME_BYTEORDER compile-time option. Use -DSQLITE_BYTEORDER=0 instead. Fix a bug in R-Tree that occurs when compiling on a known little-endian machine without the use of intrinsic byteswapping functions. (user: drh, tags: trunk)
2017-02-08
19:12
[1afec575] Avoid preparing a SELECT statement each time an UPDATE or DELETE by docid is executed against an fts3 table. (user: dan, tags: trunk)
19:10
[9962c10a] Leaf: Avoid preparing a SELECT statement each time an UPDATE or DELETE by docid is executed against an fts3 table. (user: dan, tags: fts3-seekstmt-cache)
18:13
[c09dd5c0] Typo fixes in comment. No changes to code. (user: mistachkin, tags: trunk)
16:55
[92dbd875] Merge the 3.17.0beta changes from trunk. (user: drh, tags: apple-osx)
16:01
[77b470b0] Always invoke the xRoundup() method of the memory allocator before calling xMalloc(). (user: drh, tags: trunk)
12:18
[c46e06fa] Round up the size of all memory allocations to a multiple of 8 bytes when using the system memory allocator. (user: drh, tags: trunk)
2017-02-07
21:44
[c8bfd99b] When generating the hash on the sqlite_master table in dbselftest, use an ORDER BY clause, since the sqlite_master table is reordered by VACUUM. (user: drh, tags: trunk)
21:09
[fc1dfe87] MSVC makefile enhancments for several command line tools and the session extensions. (user: mistachkin, tags: trunk)
21:00
[61242267] Fix harmless compiler warnings in dbfuzz. (user: drh, tags: trunk)
20:57
[db6b3993] Fix harmless compiler warnings in kvtest.c (user: drh, tags: trunk)
20:51
[e68829c9] The dbselftest utility now generates hashes in the selftest table with --init. It also accepts multiple database files on the command-line. (user: drh, tags: trunk)
19:36
[cb1e83f9] Omit fts5fault1.test from the inmemory_journal permutation. (user: dan, tags: trunk)
19:23
[be82d5ae] Update a test parameter in malloc5.test to account for the increase in default lookaside buffer size. (user: dan, tags: trunk)
17:36
[1fcac836] Add the initial version of the "dbselftest" utility program. (user: drh, tags: trunk)
16:15
[722e57fe] Update an error message in corruptC.test. (user: dan, tags: trunk)
14:45
[bb7f445b] Fix a build problem affecting non-amalgamation rtree builds. (user: dan, tags: trunk)
14:22
[e11cc523] Fix a test case to account for the fact that sqlite3_blob_reopen() now returns SQLITE_IOERR_NOMEM instead of SQLITE_NOMEM if an OOM occurs in the VFS layer. (user: dan, tags: trunk)
13:51
[a136609c] Fix SQLITE_BYTEORDER #defines in R-Tree when compiled separately from the amalgamation. (user: drh, tags: trunk)
12:58
[07fe6228] Make the cellMargin() routine of R-Tree slightly smaller and faster while also fixing a harmless compiler warning. (user: drh, tags: trunk)
03:44
[0611770d] Back out [ec8ff892ac] which is causing missed OOM errors on some tests. (user: drh, tags: trunk)
00:55
[f77ee9e9] Fix a minor typo in a comment in R-Tree. No changes to code. (user: drh, tags: trunk)
2017-02-06
16:52
[e5aea894] Remove a small amount of unnecessary code from R-Tree. (user: drh, tags: trunk)
15:27
[c54173b6] Add the "max-limits" utility program to the tools/ subdirectory. (user: drh, tags: trunk)
07:37
[6b0276f9] Fix a bug in kvtest causing "init --variance 0" runs to generate single byte blob values only. (user: dan, tags: trunk)
01:19
[853a58a7] Remove incorrect testcase() macros from R-Tree. (user: drh, tags: trunk)
2017-02-04
20:15
[ec8ff892] Simplification to the error handling to extension loading in sqlite3_open(). (user: drh, tags: trunk)
17:33
[b20ff81f] Allow sqlite3session_apply() to apply changesets to tables that have been extended using ALTER TABLE ADD COLUMN. (user: dan, tags: trunk)
15:29
[6c3f0902] Merge recent trunk enhancements. (user: drh, tags: apple-osx)
14:30
[61bd2a88] Leaf: Merge the latest trunk changes, especially the RTREE enhancement to use sqlite3_blob objects. (user: drh, tags: sqlite3_blob_reset)
14:24
[97ccf3e4] In RTREE, use an sqlite3_blob object rather than an sqlite3_stmt object for reading content out of the %_node shadow table. (user: drh, tags: trunk)
13:12
[95ee745f] Closed-Leaf: Close sqlite3_blob objects on xSync rather than waiting until xCommit. (user: drh, tags: rtree-blob-agressive-release)
2017-02-03
20:54
[5706d470] Improved performance and stack usage when processing VALUES clauses with a very large number of rows. (user: drh, tags: trunk)
19:16
[f5306ad6] Closed-Leaf: Avoid a performance problem when very large "VALUES(..), (..), (..)" terms are used in queries. (user: dan, tags: recursive-selectdup)
15:16
[83a099f1] Improved tests for the carray() table-valued function. (user: drh, tags: trunk)
14:44
[a7674ead] Modify the sqlite3SelectDup() routine to avoid recursing on Select.pPrior. (user: dan, tags: recursive-selectdup)
00:07
[e9c94a1f] Closed-Leaf: Merge in the sqlite3_blob_reset() interface. (user: drh, tags: rtree-sqlite3_blob)
2017-02-02
23:57
[53b77838] Add the sqlite3_blob_reset() interface. Enhance the behavior of sqlite3_blob objects so that they can go active again after encountering an error by rerunning sqlite3_blob_reopen(). More work needed on the documentation. (user: drh, tags: sqlite3_blob_reset)
20:32
[8e03a8e9] Ensure that all cursors have their positions saved prior to rolling back a savepoint. (user: drh, tags: trunk)
19:24
[5a0da77c] Fix issues in the sha1 extension seen with MSVC. (user: mistachkin, tags: trunk)
16:30
[e51dc0ec] Remove the unused pReadNode prepared statement from each RTREE object. (user: drh, tags: rtree-sqlite3_blob)
16:08
[a1c74e09] Fix a potential uninitialized (though harmless) variable in RTREE. (user: drh, tags: rtree-sqlite3_blob)
15:35
[88333441] The sqlite3_blob_close() interface can cause recursive invocations of nodeBlobReset() in RTREE. Make sure that does not cause problems. (user: drh, tags: rtree-sqlite3_blob)
14:40
[9bb4eafe] Change RTREE so that the sqlite3_blob object is closed whenever the cursor count drops to zero and there is not a pending write transaction. (user: drh, tags: rtree-sqlite3_blob)
02:28
[fc4917d7] Use the sqlite3_blob interface for reading values from the %_node shadow table in RTREE. This is a work in progress. There are still some minor problems. (user: drh, tags: rtree-sqlite3_blob)
00:46
[01d97e5b] Closed-Leaf: This is an experimental patch that ensures that all cursors have their position saved prior to starting a ROLLBACK TO. (user: drh, tags: savepoint-rollback)
2017-02-01
23:06
[0c66cf0f] Fix harmless compiler warnings seen with MSVC. (user: mistachkin, tags: trunk)
23:03
[aaae74d0] Backout the change in [02f6293f27] as it causes MSVC to complain. (user: mistachkin, tags: trunk)
22:59
[54d28546] Fix C99-style variable declaration issue seen with older versions of MSVC. (user: mistachkin, tags: trunk)
22:43
[997f765b] Closed-Leaf: Fix harmless compiler warnings seen with MSVC. (user: mistachkin, tags: msvcWarn)
22:32
[6a378c29] Add an option to the MSVC makefile to enable treating warnings as errors. (user: mistachkin, tags: trunk)
17:08
[4854ea9c] Unwind the RTREE dimension loop inside of rtreeCallbackConstraint(). (user: drh, tags: trunk)
16:41
[3c4c0126] Completely unroll the dimension loop inside of cellArea() in RTREE. (user: drh, tags: trunk)
15:49
[f1f3c8cc] Precompute the nDim2 value in the Rtree object and use that to make loops over coordinates faster. (user: drh, tags: trunk)
15:24
[82fcd54a] Use compiler intrinsic functions (when available) for byteswapping in RTREE. (user: drh, tags: trunk)
15:19
[510933cb] Fix the build by making the OPFLAG_ISNOOP macro available unconditionally. (user: drh, tags: trunk)
14:19
[7f857020] Update the documentation comment in sqlite.h.in for sqlite3_preupdate_hook(). (user: dan, tags: trunk)
14:10
[964bdc27] Changes so that the pre-update hook and the sessions module work with WITHOUT ROWID tables. (user: dan, tags: trunk)
02:25
[c5395e74] More RTREE performance optimizations related to decoding values. (user: drh, tags: trunk)
01:34
[9663eea2] Improved comments on the statGet() implementation in ANALYZE. No changes to code. (user: drh, tags: trunk)
2017-01-31
21:22
[0bf7b518] R-TREE optimization: unwrap the coordinate decode loop in rtreeCallbackConstraint(). (user: drh, tags: trunk)
19:10
[85dddf2b] Very small performance improvements and size reductions in sqlite3VdbeExec() and blobSeekToRow(). (user: drh, tags: trunk)
19:02
[495ea824] Closed-Leaf: Simplifications to blobSeekToRow(). (user: drh, tags: micro-optimizations)
17:31
[25f1275f] Leaf: Add a speed-test program for the sessions module. (user: dan, tags: preupdate-without-rowid)
16:49
[91eb6b62] Remove a C99-style comment. Fixes to the kvtest-speed.sh script. (user: drh, tags: micro-optimizations)
16:43
[2361b03b] Remove another unnecessary local variable initialization from sqlite3VdbeExec() (user: drh, tags: micro-optimizations)
16:34
[02f6293f] Remove an unnecessary initialization of the pOp variable in sqlite3VdbeExec(). (user: drh, tags: micro-optimizations)
15:29
[b63deed6] Add the "stat" command to kvtest.c. Also add the --variance option to the "init" command. Add the tool/kvtest-speed.sh script used for doing performance testing on key/value access patterns. (user: drh, tags: trunk)
15:27
[bd22bf9c] Fix a typo in a comment. (user: drh, tags: trunk)
14:08
[4a592abb] Merge latest trunk with this branch. (user: dan, tags: preupdate-without-rowid)
12:41
[eacfdcf2] Further minor enhancement and size reduction in sqlite3ExprAssignVarNumber(). (user: drh, tags: trunk)
03:52
[5987ca1f] Performance optimization in sqlite3ExprAssignVarNumber(). (user: drh, tags: trunk)
2017-01-30
19:44
[856f8604] Experimental change to invoke the preupdate hook when WITHOUT ROWID tables are written. (user: dan, tags: preupdate-without-rowid)
11:38
[e93d2c49] Fix building with SQLITE_OMIT_FOREIGN_KEY defined. (user: dan, tags: trunk)
2017-01-28
20:46
[4fe879d4] In the amalgamation, allocate the parser engine object from stack rather than from heap, for improved performance. This only happens in the amalgamation, since otherwise the sqlite3RunParser() routine does not know the object size. (user: drh, tags: trunk)
19:53
[2a2e7d86] Fix a couple comment typos. No changes to code. (user: mistachkin, tags: trunk)
19:45
[dc555b10] Avoid redundant table b-tree cursor seeks in UPDATE statements that use the two-pass strategy. (user: dan, tags: trunk)
15:26
[426b440a] Updates to the sqlite3_blob documentation. No changes to code. (user: drh, tags: trunk)
13:40
[aa1ab371] In the speed-check.sh script, automatically invoke "fossil test-diff --tk" on the cachegrind output against trunk, if not generating a trunk run. (user: drh, tags: trunk)
06:50
[7c029655] Fix a typo in the docs for sqlite3_update_hook(). (user: dan, tags: trunk)
2017-01-27
19:27
[24e77c1c] Add the sha1.c loadable extension that implements the sha1() and sha1_query() SQL functions. (user: drh, tags: trunk)
17:02
[fbb6bf1b] Fix a problem causing the pre-update hook to be invoked by DROP TABLE statements. (user: dan, tags: trunk)
16:39
[0e14fe1b] Merge all recent trunk enhancements into the apple-osx branch. (user: drh, tags: apple-osx)
16:24
[fe86ff54] Merge all recent enhancements from trunk. (user: drh, tags: est_count_pragma)
13:14
[d9752c8f] Alternative ICU fix (compare to check-in [50e60cb4]) that avoids casting integers to pointers. (user: drh, tags: trunk)
01:52
[58f02e6e] In the command-line shell, enhance the ".mode" command so that it restores the default column and row separators for modes "line", "list", "column", and "tcl". (user: drh, tags: trunk)
01:25
[c012619b] Another micro-optimization in accessPayload(). Slightly smaller and faster. (user: drh, tags: trunk)
01:13
[ebb1fd98] Performance optimization in accessPayload(). (user: drh, tags: trunk)
00:31
[68e7a8c6] Simplify the accessPayload() routine so that it always populates the overflow page cache. In the one case where populating the page cache can lead to problems, simply invalidate the cache as soon as accessPayload() returns. This simplification reduces code size and helps accessPayload() to run a little faster. This backs out the eOp==2 mode of accessPayload() added by check-in [da59198505]. (user: drh, tags: trunk)
2017-01-26
21:30
[293bf3ed] Remove an unreachable branch in the error handling logic for sqlite3BtreePayloadChecked(). (user: drh, tags: trunk)
18:00
[b4a98f65] Improvement to the OP_Permutation opcode to prevent it from using CPU cycles for initialization in prepared statements that do not use that opcode. (user: drh, tags: trunk)
17:26
[b4803184] Remove the obsolete lastRowid cache from the sqlite3VdbeExec() for a size reduction and performance improvement. (user: drh, tags: trunk)
17:11
[1e96e5ec] Performance optimization in sqlite3VdbeCloseStatement(). (user: drh, tags: trunk)
16:54
[7459f4b7] Performance optimization to sqlite3_blob_read(). (user: drh, tags: trunk)
16:27
[3e96d6ef] Minor simplification and performance optimization for Direct Overflow Read. (user: drh, tags: trunk)
02:26
[9879be18] Make SQLITE_DIRECT_OVERFLOW_READ work for in WAL mode as long as the page being read is not in the the -wal file. (user: drh, tags: trunk)
01:54
[62a4851c] Enhancements to the kvtest utility program. Add the --jmode option. Improved output formatting. (user: drh, tags: trunk)
00:58
[50e60cb4] Modify the ICU extension to use a static initializer, as VC++ complains about a dynamic initialization. Maybe the dynamic structure initialization is a GCC extension. This fixes a problem identified on the SQLite mailing list by Ziemowit Laski. (user: drh, tags: trunk)
2017-01-25
20:55
[4801bd59] Trim NULL values off the end of records when the SQLITE_ENABLE_NULL_TRIM compile-time option is used. Increase the size of the P5 operand to 16 bits. Fix a problem with short records in the sessions extension. (user: drh, tags: trunk)
18:53
[c7651d21] Closed-Leaf: Fix another pre-update hook issue, this time in sqlite3preupdate_old(). (user: dan, tags: trim-nulls)
18:12
[f66614dc] Fix a test script problem in exclusive2.test causing it to fail on this branch. (user: dan, tags: trim-nulls)
17:44
[6fc4fbfa] Fix a problem with the pre-update hook on this branch. (user: dan, tags: trim-nulls)
14:58
[118ded40] Experimental enhancement to automatically trim NULL values from the end of records, for a reduced disk footprint. This change also involves increasing the P5 operand from 8 to 16 bits. (user: drh, tags: trim-nulls)
14:38
[8cd1a445] Ensure that sqlite3_blob_reopen() correctly handles short rows. Fix for ticket [e6e962d6b0f06f46e]. (user: drh, tags: trunk)
13:54
[0803390c] Fix SQLITEINT_H macro usage in two extensions. (user: drh, tags: trunk)
04:41
[57d8dad3] Closed-Leaf: Ensure that sqlite3_blob_reopen() correctly handles short rows. Proposed fix for ticket [e6e962d6b0f06f46e]. Further testing needed. (user: drh, tags: blob_reopen-fix)
2017-01-23
21:12
[64131724] Leaf: Experimental changes to permit a VFS to directly override the initial page size. (user: mistachkin, tags: pagePerSector)
19:11
[175bda87] Document the --mmap option in the --help screen for kvtest. Enhance kvtest so that numeric arguments can have suffixes like "K" or "M". Add kvtest to the unix makefiles. (user: drh, tags: trunk)
18:40
[4948f7e6] Add the --mmap option to the kvtest utility program. (user: drh, tags: trunk)
16:56
[ee793d30] Optimization: Try to avoid unnecessary btree searching when repositioning a cursor to the next row. (user: drh, tags: trunk)
15:58
[7a4f512d] Add the missing SQLITE_API symbol to test_delete.c (it is not added automatically as this file is not part of the amalgamation). (user: dan, tags: trunk)
07:06
[03c60134] Fix a problem preventing FTS5 from correctly passing the FTS5_TOKENIZE_PREFIX flag to custom tokenizer implementations. (user: dan, tags: trunk)
2017-01-22
16:34
[06b8001a] Fix an uninitialized variable in the command-line shell. (user: drh, tags: trunk)
02:04
[772dcb08] Fixes to documentation comments in the public header file. (user: mistachkin, tags: trunk)
00:11
[ed62c5a6] Fix an initialized variable in kvtest. (user: drh, tags: trunk)
2017-01-21
21:47
[2c4ecb85] Closed-Leaf: A better implementation of the moveto-neighbor optimization that checks for nearby rows on adjacent pages. (user: drh, tags: btree-moveto-neighbor)
16:54
[8e5cfb20] B-tree optimization: When seeking on a rowid table that has already been positioned, check to see if the new row happens to be the next row on the same leaf page. That is a reasonably common case, and if it is true it avoids a full binary search. (user: drh, tags: btree-moveto-neighbor)
16:27
[347df3c1] Change sqlite3_blob_reopen() to call sqlite3VdbeExec() directly rather than going through sqlite3_step(). Performance enhancement. (user: drh, tags: trunk)
16:21
[74ad80eb] Leaf: Fix problems in the previous commit. (user: dan, tags: trigger-trace)
15:58
[ffda1d1e] Add extra (somewhat inefficient) trace callbacks for triggers if SQLITE_TRACE_TRIGGER is defined. (user: dan, tags: trigger-trace)
15:55
[0d1ad13a] In the kvtest.c test utility, reuse the buffer into which blobs are read, rather than reallocating it for each row. This is a closer match to how other test programs work, and thus provides a better comparison. (user: drh, tags: trunk)
15:30
[4cda3b30] Leaf: A proof-of-concept for running sqlite3_blob_open() without using OP_Column when operating on a pure key/value table. This demo does not include any corrupt database checking. Uses about 3% fewer CPU cycles on a key/value performance test. (user: drh, tags: kv-access-opt-demo)
14:11
[9d197a53] Remove an unnecessary sqlite3_bind_int64() call from sqlite3_blob_open(). Also other minor refactoring of the sqlite3_blob implementation. (user: drh, tags: trunk)
2017-01-20
20:43
[264e5c10] Minor performance optimization and size reduction to the accessPayload() routine in btree.c. (user: drh, tags: trunk)
16:47
[8971d98f] Fix a typo in the help message for kvtest. (user: dan, tags: trunk)
16:46
[90291327] Add option "--stats" to test program kvtest. Specifying --stats causes kvtest to output information similar to the shell tool option of the same name. (user: dan, tags: trunk)
16:09
[87b640c8] Get the "--testset rtree" option working on speedtest1. Add the --rtree, --lookaside, and --clang options to the speed-check.sh script. (user: drh, tags: trunk)
00:40
[52a61967] Minor performance optimizations to sqlite3_blob_open() and sqlite3_blob_reopen(). (user: drh, tags: trunk)
2017-01-19
21:20
[9ed38521] If compiled with SQLITE_INLINE_MEMCPY, all memcpy() calls are replaced with in-line code. With that change, cachegrind shows which memcpy() calls are taking the most time. This is a performance-measurement hack only and is not for production use. (user: drh, tags: trunk)
18:20
[ffd559af] In the 'vtshim' extension, avoid accessing freed memory when handling errors from xCreate/xConnect. (user: mistachkin, tags: trunk)
12:07
[088c5903] Leaf: Add a prototype of the sqlite3_kv_reset() interface. (user: drh, tags: sqlite3_kv)
11:52
[50ca94b9] Leaf: Add test cases for the instrumentation on this branch. Fix some OOM handling issues in the same. (user: dan, tags: transaction-pages)
2017-01-18
23:12
[47beb55c] Leaf: For Windows 8.x and higher, require the SQLITE_WIN32_WIN8_SECTOR_SIZE compile-time option in order to enable sector size determination. (user: mistachkin, tags: winSectorSize)
22:47
[a84a08d0] In the 'windirent' test module, use a macro for the hidden/system attribute checking. (user: mistachkin, tags: trunk)
22:19
[b92cc6e5] Remove superfluous option to Tcl 'lsort' in the vtabH test file. (user: mistachkin, tags: trunk)
22:16
[d3c91c1f] Make the vtabH-3.1 test more portable and robust. (user: mistachkin, tags: trunk)
22:16
[26dd42b4] Fix handling of initial hidden and/or system files in the opendir() implementation for Windows. No changes to non-test code. (user: mistachkin, tags: trunk)
20:14
[2a8f6c89] Add temporary code to record and report on the set of b-tree pages read and written by the current transaction. This is likely still buggy. (user: dan, tags: transaction-pages)
19:54
[02d60e19] Begin fleshing out the key/value accessor implementation. This is an incremental check-in. (user: drh, tags: sqlite3_kv)
19:36
[2dc16d34] Improve and update comments. (user: mistachkin, tags: winSectorSize)
19:06
[8d429a59] Minimize the requested permissions when opening the volume on Windows 7 and Vista. (user: mistachkin, tags: winSectorSize)
17:20
[a435841e] Baseline interface definition for the experimental sqlite3_kv accessor object. (user: drh, tags: sqlite3_kv)
01:11
[cb9d1ab3] Add runtime version checking for winSectorSize. (user: mistachkin, tags: winSectorSize)
00:27
[de699ead] When determining sector sizes on Windows 7 and Vista, make sure the target file is on the same volume as corresponding root directory. (user: mistachkin, tags: winSectorSize)
2017-01-17
10:41
[681d96eb] Fix a problem that could cause a spurious SQLITE_NOMEM error when attempting to resume an RBU operation if the previous client failed right after completing the incremental checkpoint. Also a "cannot vacuum wal db" error that could occur when resuming an RBU vacuum if an error (OOM or IO error) occurs during the incremental checkpoint. (user: dan, tags: trunk)
00:10
[7fd560c6] Disable intrinsic functions for Windows using Clang, due to reports of linkage errors. This causes a 0.6% performance reduction. We will want to revisit this change in the future. (user: drh, tags: trunk)
2017-01-16
18:10
[9b64af7b] Back out check-in [0b3174e0b1364c] and replace it with a better fix for \ticket [91e2e8ba6ff2e2] - a fix that does not cause the problem identified by ticket [7ffd1ca1d2ad4ec]. Add new test cases for both tickets. (user: drh, tags: trunk)
16:43
[06136652] Closed-Leaf: Back out check-in [0b3174e0b1364c] and replace it with a better fix for ticket [91e2e8ba6ff2e2] - a fix that does not cause the problem identified by ticket [7ffd1ca1d2ad4ec]. (user: drh, tags: automatic-index-affinity)
16:01
[9d0dfe0b] Add test cases for tickets [91e2e8ba6ff2e2] and [7ffd1ca1d2ad4ec]. (user: drh, tags: automatic-index-affinity)
11:54
[e42ed9b4] Leaf: An example showing how to improve performance of sqlite3VdbeSerialPut() using the GCC intrinsic function __builtin_bswap64(). (user: drh, tags: builtin-bswap64)
2017-01-13
22:21
[8b42b8e3] Merge updates from trunk. (user: mistachkin, tags: winSectorSize)
18:24
[97914266] Fix a problem preventing resumption of RBU operations after recovering from a process or system failure that occurs during the incremental-checkpoint phase. (user: dan, tags: trunk)
12:53
[8c85b8fd] Fix the build for SQLITE_ENABLE_MEMORY_MANAGEMENT. (user: drh, tags: trunk)
2017-01-12
23:37
[6e388423] Attempt to detect physical sector sizes on Windows Vista and higher. (user: mistachkin, tags: winSectorSize)
19:10
[9acc7238] Remove a branch that is probably unreachable, and which adds no value. (user: drh, tags: trunk)
16:21
[385db266] Fix harmless compiler warnings in the UPDATE code generator. (user: drh, tags: trunk)
16:14
[bddf3956] Remove an unnecessary corruption test from the btree balancer. If corruption is present, it will be found harmlessly by later tests. (user: drh, tags: trunk)
15:19
[bd8b977a] Leaf: Test case macros to show that the previous check-in is well tested. (user: drh, tags: extra-testcase-macros)
15:11
[8097712c] Improved detection of cells that extend into the reserved space at the end of the page while adjusting overflow page pointers during autovacuum. (user: drh, tags: trunk)
11:52
[163cc1b2] Remove invalid test case from cursorhints2.test (user: drh, tags: trunk)
11:50
[c07aef6f] Make sure Tcl_AppendResult() always has a NULL-pointer argument at the end. (user: drh, tags: trunk)
2017-01-11
21:03
[7ae6104a] Changes to allow some multi-row UPDATE statements to avoid the two-pass approach. (user: dan, tags: trunk)
20:10
[62257eb5] Closed-Leaf: Fix a problem causing the pre-update hook to be passed an incorrect rowid value in some single-pass multi-row updates. (user: dan, tags: onepass-update)
19:03
[0a2b8e1b] Fix a problem with single-pass multi-row UPDATE statements that invoke REPLACE conflict handling. (user: dan, tags: onepass-update)
16:52
[381fd34b] Attempt to detect physical sector sizes on Windows 8 and higher. (user: mistachkin, tags: winSectorSize)
15:42
[cab86c90] Fix a problem preventing UPDATE statements that use a range-scan on the PK index of a WITHOUT ROWID table from using a one-pass strategy. (user: dan, tags: onepass-update)
14:21
[4f83f680] In the STAT4 computations, ensure that the aAvgEq values do not go negative. (user: drh, tags: branch-3.8.9)
14:15
[f58f75b5] In the STAT4 computations, ensure that the aAvgEq values do not go negative. (user: drh, tags: trunk)
2017-01-10
20:04
[46db23cc] Changes to allow some multi-row UPDATE statements to avoid the two-pass approach. (user: dan, tags: onepass-update)
17:37
[e500c15a] Add a test case for ticket [25e335f802dd]. (user: dan, tags: trunk)
17:33
[c92ecff2] Throw an error if the ON clause of a LEFT JOIN references tables to the right of the ON clause. Fix for ticket [25e335f802dd]. (user: drh, tags: trunk)
16:09
[4209b89e] Avoid unnecessary calls to the xRoundup() method of the memory allocator when the soft heap limit is not set. (user: drh, tags: trunk)
15:08
[71c03b59] Fix a potential assertion fault discovered by OSS-Fuzz. (user: drh, tags: trunk)
2017-01-09
20:57
[ff9eab95] Leaf: Merge latest changes from trunk, and also move the perf-counter into the inner loop of sqlite3BtreeMovetoUnpacked(). (user: drh, tags: vdbe-aux-perf)
19:55
[a5fa0965] Remove a redundant assignment statement. (user: drh, tags: trunk)
19:27
[237aa974] Performance optimization and size reduction in the OP_Variable opcode. (user: drh, tags: trunk)
18:22
[d38fd229] Fix typo in a comment. No changes to code. (user: mistachkin, tags: trunk)
18:20
[8a90f691] Closed-Leaf: Try to move OP_Concat operations outside the inner loop. This turns out to make things very slightly slower, at least in speedtest1.c. (user: drh, tags: failed-optimization)
15:44
[6e106acd] Modify the OP_RowData opcode so that when P3!=0 it is allowed to hold an ephemeral copy of the content. This avoids unnecessary memcpy() operations in the xfer-optimization and VACUUM. (user: drh, tags: trunk)
13:43
[a5fe03bc] Add the SQLITE_UINT64_TYPE compile-time option. (user: drh, tags: trunk)
07:00
[50fb1eb3] Merge the "changebatch" functionality into this branch. (user: dan, tags: begin-concurrent)
06:53
[c8ca3e0a] Disable the optimization from [8cb8516d] (omit TableLock instructions for non-sharable databases) on this branch. This branch uses the TableLock instructions to ensure that the db schema is not written from within a BEGIN CONCURRENT transaction. (user: dan, tags: begin-concurrent)
06:33
[d0e212d0] Upgrade this branch to 3.16 plus the various fixes that appeared after its release. (user: dan, tags: begin-concurrent)
2017-01-07
14:47
[3178ec4c] Improvements to the iIdxNoSeek optimization of sqlite3GenerateRowDelete() so that it is automatically disabled for BEFORE triggers but works in all other cases. (user: drh, tags: trunk)
14:26
[db2c0960] Critical fix to the previous check-in so that it works when there are BEFORE triggers that move the cursor before the OP_Delete has a chance to be applied. (user: drh, tags: trunk)
03:26
[f0495c51] Avoid an unnecessary btree seek while deleting an index entry due to a conflict on a REPLACE operation. (user: drh, tags: trunk)
00:56
[d577dda0] Avoid duplicate b-tree searches in the duplicate row detector used to implement DISTINCT. (user: drh, tags: trunk)
00:42
[746b1836] This hack illustrates how to use the VDBE_PROFILE mechanism to show which bytecode operators are using resources other than time. In this case, the number of loops through the binary search code in sqlite3BtreeMovetoUnpacked() is measured, for the purpose of helping to identify unnecessary btree searches. (user: drh, tags: vdbe-aux-perf)
2017-01-06
17:01
[c59c8880] Merge the changes for version 3.16.2. (user: drh, tags: apple-osx)
16:32
[a65a6289] Leaf: Version 3.16.2 (user: drh, tags: release, branch-3.16, version-3.16.2)
13:53
[01b4cb26] Clarify the documentation on sqlite3_column_count(). (user: dan, tags: branch-3.16)
13:52
[4a97ba4e] Ensure that "PRAGMA case_sensitive_like" and "PRAGMA shrink_memory" set the number of output columns to 0 (as they are statements that return no data). (user: dan, tags: branch-3.16)
13:49
[6696cd18] Ensure that "PRAGMA case_sensitive_like" and "PRAGMA shrink_memory" set the number of output columns to 0 (as they are statements that return no data). (user: dan, tags: trunk)
11:56
[b0726941] Improve handling of corrupt databases in fts5. (user: dan, tags: branch-3.16)
11:55
[609ac1c7] Improve handling of corrupt data in fts5. (user: dan, tags: trunk)
01:09
[9ea0badd] Clarify the documentation on sqlite3_column_count(). (user: drh, tags: trunk)
00:02
[28d87789] Remove several non-portable tests for the deprecated temp_store_directory PRAGMA. (user: mistachkin, tags: trunk)
2017-01-05
20:01
[e745da6b] Ensure that sqlite3_column_count() returns 0 for the "set" mode of "get/set" PRAGMA statements that do not return a value in that case (e.g. page_size, cache_size, auto_vacuum). (user: dan, tags: branch-3.16)
20:00
[2f57939a] Ensure that sqlite3_column_count() returns 0 for the "set" mode of "get/set" PRAGMA statements that do not return a value in that case (e.g. page_size, cache_size, auto_vacuum). (user: dan, tags: trunk)
19:32
[5c05d8ec] Closed-Leaf: Ensure that sqlite3_column_count() returns 0 for the "set" mode of "get/set" PRAGMA statements that do not return a value in that case (e.g. page_size, cache_size, auto_vacuum). (user: dan, tags: pragma-columncount-fix)
17:27
[285c5a54] Version 3.16.2 second release candidate (user: drh, tags: branch-3.16)
17:25
[ec1e85a6] Fix handling the case where a sub-query in a FROM clause is itself a UNION ALL, and one side of that UNION ALL is a query on a view that includes an ORDER BY. Fix for ticket [190c2507]. (user: dan, tags: branch-3.16)
17:23
[590ca83b] Fix handling the case where a sub-query in a FROM clause is itself a UNION ALL, and one side of that UNION ALL is a query on a view that includes an ORDER BY. Fix for ticket [190c2507]. (user: dan, tags: trunk)
15:50
[9d8ffe13] Version 3.16.2 release candidate (user: drh, tags: branch-3.16)
14:05
[9592cbcf] Increase the version number to 3.16.2 (user: drh, tags: branch-3.16)
13:56
[8a788594] Fix problems in trigger and foreign key handling when doing REPLACE on a WITHOUT ROWID table that has no secondary indexes. Fix for ticket [30027b613b4]. (user: drh, tags: branch-3.16)
13:52
[ca185808] Ensure that the sqlite3_value_text() interface returns a buffer that is long enough to hold the complete string plus the zero terminator even when the input is a zeroblob. Fix for a problem detected by OSS-Fuzz. (user: drh, tags: branch-3.16)
13:50
[571f166e] Fix problems in trigger and foreign key handling when doing REPLACE on a WITHOUT ROWID table that has no secondary indexes. Fix for ticket [30027b613b4]. (user: drh, tags: trunk)
07:58
[2dc7eeb5] Ensure that the sqlite3_value_text() interface returns a buffer that is long enough to hold the complete string plus the zero terminator even when the input is a zeroblob. Fix for a problem detected by OSS-Fuzz. (user: drh, tags: trunk)
06:57
[c1220b1a] Closed-Leaf: Fix some problems with foreign key processing within REPLACE ops on WITHOUT ROWID tables with no triggers or auxiliary indexes. (user: dan, tags: replace-fix)
2017-01-04
22:02
[c6506b82] Improved the comment on the block of code the provides the performance optimization originally added by check-in [925840cfdb]. The original check-in omitted condition 4, which was the cause of bug [30027b613b]. (user: drh, tags: replace-fix)
20:13
[71ccb1f4] Possible fix for [30027b61]. There may still be problems surrounding foreign key processing. (user: dan, tags: replace-fix)
14:53
[8d670973] Adjust filename creation in test_sqllog.c so that it uses leading zeros on counters, so that files appear in order when sorted lexicographically. (user: drh, tags: trunk)
13:09
[82e4001b] Performance enhancements in the printf implementation. (user: drh, tags: trunk)
04:18
[80ad317f] Factor constant functions out of the inner loop since they are more expensive than the extra OP_Copy needed to move the result into place. (user: drh, tags: trunk)
04:10
[2ab997e4] Closed-Leaf: Clean up the implementation of constant function factorization. (user: drh, tags: factor-constant-funcs)
01:07
[62e9270a] Attempt to factor out constant functions from the interior of table scans, since functions can often be expensive to compute. (user: drh, tags: factor-constant-funcs)
00:26
[acdb8f6f] Closed-Leaf: Changes to the printf implementation for better performance. (user: drh, tags: printf-optimization)
2017-01-03
21:57
[d3ac32a6] Use compiler intrinsic functions for signed integer math when overflow detection is needed. (user: drh, tags: trunk)
21:50
[4c2efd42] Closed-Leaf: Back out the use of __sync_fetch_and_sub() as it does not appear to work. (user: drh, tags: gnu-safe-math)
21:03
[ae087123] Fix a typo in a comment. (user: drh, tags: gnu-safe-math)
20:20
[dcbec226] Merge changes from the 3.16.1 release (user: drh, tags: apple-osx)
20:01
[f8ebeec2] Use the CLANG_VERSION macro to control clang-specific features. (user: drh, tags: gnu-safe-math)
18:27
[979f0439] Version 3.16.1 (user: drh, tags: release, branch-3.16, version-3.16.1)
18:05
[f69ce75b] Use the GCC built-in __sync_fetch_and_sub() to make the sqlite3StatusDown() routine atomic, and thereby avoid some mutexing. (user: drh, tags: gnu-safe-math)
17:33
[82cbebb8] Make use of the __buildin_OP_overflow() functions from GCC when doing 64-bit signed integer arithmetic. (user: drh, tags: gnu-safe-math)
16:03
[a60b60d6] Bump the version number up to 3.16.1. (user: drh, tags: branch-3.16)
15:59
[5c892938] Defer size checking on row-value assignments for when the RHS is a SELECT until after the "*" wildcards have been expanded. (user: drh, tags: branch-3.16)
15:57
[bf984e98] Fix the row-values in UPDATE statements within TRIGGER problem identified by ticket [8c9458e7]. (user: drh, tags: branch-3.16)
14:45
[bed0eaa5] Add the experimental affinity() SQL function when SQLITE_DEBUG is defined. (user: drh, tags: trunk)
14:39
[f778f58a] Closed-Leaf: Put the affinity() function implementation inside of #ifdef SQLITE_DEBUG. (user: drh, tags: affinity-sql-func)
14:30
[c27cd8a8] Merge all the latest changes from trunk. (user: drh, tags: affinity-sql-func)
13:45
[36944be6] Defer size checking on row-value assignments for when the RHS is a SELECT until after the "*" wildcards have been expanded. (user: drh, tags: trunk)
11:59
[abc27b60] Fix a typo on a comment. No code changes. (user: drh, tags: trunk)
08:11
[548532fd] Add test cases for the fix in [f12ed3ce]. No problems discovered. (user: dan, tags: trunk)
02:58
[696219b1] Closed-Leaf: Improvements to the way vector assignment size checking is done. Size checks when the RHS is a SELECT are deferred until after "*" wildcards are expanded. (user: drh, tags: vector-size-check)
01:24
[f12ed3ce] Fix the row-values in UPDATE statements within TRIGGER problem identified by ticket [8c9458e7]. (user: drh, tags: trunk)
00:27
[14da99d4] Closed-Leaf: Improved assert()s on the sqlite3ExprListDup() logic for TK_SELECT_COLUMN. (user: drh, tags: rowvalue-update-trigger)
2017-01-02
23:43
[b9b96437] Test cases for the row-value UPDATE TRIGGER fix. (user: drh, tags: rowvalue-update-trigger)
23:18
[2caaaab5] Put an ALWAYS() on an unreachable branch in the sqlite3ExprListDup() routine. (user: drh, tags: rowvalue-update-trigger)
22:36
[61a442ea] Proposed fix for the row-value TRIGGER UPDATE problem described in ticket [8c9458e7]. (user: drh, tags: rowvalue-update-trigger)
19:10
[16415b5a] Increase the version number to 3.17.0 for the next release cycle. (user: drh, tags: trunk)
19:02
[584da48f] Provide the SQLITE_DEFAULT_LOOKASIDE compile-time option and make it's default value be 1200,100 (raised from 512,125 in the latest release). (user: drh, tags: trunk)
18:40
[12d9493c] Change SQLITE_DEFAULT_PCACHE_INITSZ from 100 to 20, which is experimentally determined to be slightly faster. (user: drh, tags: trunk)
18:19
[cfb31582] Avoid unnecessary calls to sqlite3BtreeEnterAll() and sqlite3BtreeLeaveAll() when no btree is using shared-cache. (user: drh, tags: trunk)
12:20
[cb338f36] Add the --all option to the wordcount test program. Fix the speedtest1 test program so that it builds on MSVC and so that the --lookaside 0 0 option works. (user: drh, tags: trunk)
11:57
[04ac0b75] Version 3.16.0 (user: drh, tags: trunk, release, version-3.16.0)
2017-01-01
12:44
[2c4d167c] Detect row-value comparison size mismatches even when the size of one operand is obscured by an unexpanded subquery. (user: drh, tags: trunk)
2016-12-31
21:55
[18baeadf] Closed-Leaf: Add the --help and --all options to the wordcount test utility. (user: drh, tags: wordcount-enhancement)
18:37
[52b99bcb] Closed-Leaf: In speedtest1.c, make the "--lookaside 0 0" option completely disable lookaside. (user: drh, tags: speedtest1)
14:33
[8c28fde0] Minor #include change to speedtest1.c so that it will compile under MSVC. (user: drh, tags: speedtest1)
2016-12-30
17:40
[14d855d2] Fix a crash that could occur following an OOM in the group_concat() function if the second argument is an SQLITE_BLOB value. (user: dan, tags: trunk)
15:16
[a0971e71] Strengthen the defense against OOM in the instr() SQL function. (user: drh, tags: trunk)
14:25
[0bdbe49c] Add a test to ensure that the app-defined pcache xFetch() method is never passed a key of zero. (user: drh, tags: trunk)
14:15
[56ff72ab] Avoid passing NULL pointers to memcmp() or memcpy(), even when the "number-of-bytes" argument is passed 0. (user: dan, tags: trunk)
13:55
[b0810ac1] Closed-Leaf: Clarify the expectations for the behavior of the xFetch method on the sqlite3_pcache_methods object for the case when the key is zero. (user: drh, tags: pcache1-zero-page)
13:40
[5550e815] Improved detection of zero page numbers in the page cache. (user: drh, tags: pcache1-zero-page)
12:10
[2842bc60] Fix a harmless compiler warning in fuzzcheck.c (user: drh, tags: trunk)
12:06
[3e25ba6e] Disable the pagerAcquireMapPage() routine if memory-mapped I/O is disabled. This fixes a harmless compiler warning on OpenBSD. (user: drh, tags: trunk)
00:09
[f57952ba] Encode a 64-bit integer literal in date.c as a constant expression so that it works on older compilers. Also fix a harmless compiler warning in vdbe.c. (user: drh, tags: trunk)
2016-12-29
19:48
[afcdc4a6] Fix harmless compiler warnings in the command-line shell and in Lemon. (user: drh, tags: trunk)
17:25
[a7dca29f] In kvtest.c, use stat() instead of fseek()/ftell() to determine the size of a BLOB to be read directly from disk. This makes the pile-of-files database more competative against SQLite. (user: drh, tags: trunk)
16:58
[8074d59c] Add the kvtest.c test program used to show that it is many times faster to read thumbnail and similar BLOBs out of an SQLite database than it is to read them as separate files from the filesystem. (user: drh, tags: trunk)
16:49
[55d29839] Closed-Leaf: Add more detail to the header command to further explain how to compile and use the kvtest.c utility. (user: drh, tags: kvtest)
16:18
[e2bbeae7] Fix kvtest.c so that it compiles using MSVC. (user: drh, tags: kvtest)
15:26
[b0f58d24] In kvtest.c: do not show the --cache-size setting on fopen() runs. Show progress for the (potentially slow) "export" command. (user: drh, tags: kvtest)
14:44
[f6fcac6a] Improvements to the kvtest.c utility. Added the --cache-size option. Additional reporting of version and settings at the end of "./kvtest run". (user: drh, tags: kvtest)
03:57
[489e0787] Add the kvtest.c test program for measuring key/value read performance under various scenarios. (user: drh, tags: kvtest)
2016-12-27
15:59
[a6af06f1] Do not allow the nockpt.test module to run under the inmemory_journal permutation. (user: drh, tags: trunk)
13:33
[7854bee2] Allow sqlite3_interrupt() to be invoked on a database connection that is in the process of being closed even if SQLITE_ENABLE_API_ARMOR is defined. (user: drh, tags: trunk)
12:45
[4cb0945f] Adjust a corruption test case to accommodate the sqlite3BtreeInsert() optimization of check-in [0b86fbca66]. (user: drh, tags: trunk)
12:35
[a54e619e] Disable new test modules nockpt.test and interrupt2.test for incompatible permutations. Add a CORRUPT_DB term to an assert() in vdbe.c. (user: drh, tags: trunk)
12:08
[2d71cbdf] Avoid a potential (harmless) signed integer overflow in memory usage accounting when calling sqlite3_realloc() to reduce the size of an allocation. (user: drh, tags: trunk)
02:43
[382eea36] Minor changes to make some newer test cases work under more compile-time options. (user: drh, tags: trunk)
2016-12-26
12:25
[edc9db41] During fuzz testing with the fuzzcheck utility program, impose a record length limit of 100MB and a limit on the length of LIKE strings of 50 bytes. (user: drh, tags: trunk)
12:14
[a37c00dc] Enable ossfuzz.c to build even if SQLITE_OMIT_PROGRESS_CALLBACK is defined. (user: drh, tags: trunk)
01:41
[e447b23c] Remove an incorrect ALWAYS() macro from balance_nonroot(), which could result in corrupt databases if it were optimized out. This ALWAYS was added only two weeks ago (check-in [f9f2e23bbd68a]) and has never appeared in an official release. (user: drh, tags: trunk)
00:18
[57e40e1c] Add the built-in affinity() SQL function. (user: drh, tags: affinity-sql-func)
00:15
[8c5187f6] Enhance the fuzztest utility with the --prng-seed option. Always reseed the PRNG prior to each test. (user: drh, tags: trunk)
2016-12-24
21:32
[def29333] Combine the implementations of the ".tables" and ".indexes" commands in the command-line shell. The ".indexes" command now puts the indexes in multiple columns, just like ".tables" and shows all indexes in all attached databases. (user: drh, tags: trunk)
19:37
[2f481b85] The schema name "main" is always an acceptable alias for the primary database even if the primary database is renamed using SQLITE_DBCONFIG_MAINDBNAME. (user: drh, tags: trunk)
18:18
[8558512e] Change the output format of the ".databases" command in the command-line shell so that it shows the schema name, a colon, and the corresponding filename. (user: drh, tags: trunk)
18:04
[c0d5626e] In the command-line shell, improve the formatting to the ".databases" command and on the ".tables" command, only show the schema prefix for databases past the first ("main") database. (user: drh, tags: trunk)
2016-12-23
16:05
[2940661b] Fill in missing opcode documentation entries for OP_SorterNext and OP_SorterSort. (user: drh, tags: trunk)
13:54
[99fddf2e] Use the VList object to capture the mapping between SQL parameter names and variable numbers in a single memory allocation. (user: drh, tags: trunk)
13:52
[aa23d7ea] Closed-Leaf: Add check to prevent a VList from growing after pointers to labels have been taken. (user: drh, tags: VList)
13:30
[9dcd8569] Fix the VList object so that it actually works. (user: drh, tags: VList)
03:59
[68ecafa1] Use the VList object to replace Parse.azVar for tracking the mapping between SQL parameter names and parameter numbers. There is a performance improvement, though there are still a few hiccups in the current code. (user: drh, tags: VList)
2016-12-22
14:53
[fa86db2f] Fix harmless compiler warnings. (user: drh, tags: trunk)
2016-12-21
21:26
[52a12e47] Change the default lookaside configuration from 500 slots of 128 bytes each to 125 slots of 512 bytes each. This uses the same amount of memory (64,000 bytes) but seems to perform much better in test applications. (user: drh, tags: trunk)
19:45
[f7ab01f2] Simplifications to the way UnpackedRecord objects are allocated. Smaller and faster code that also fixes a subtle (currently unreachable) bug. (user: drh, tags: trunk)
2016-12-18
17:42
[165c0446] Change the OP_IfNotZero opcode so that it decrements register P1 by 1 rather than the value in P3, and so that it only decrements if originally positive. This avoids decrementing the smallest 64-bit signed integer. (user: drh, tags: trunk)
2016-12-17
21:07
[50325abe] Refinements to the new dbfuzz test program. (user: drh, tags: trunk)
20:27
[ef6e071a] Enhance fuzzershell.c to read and execute SQL commands in the autoexec table of the database under test. Add the dbfuzz.c test program combining selected features of fuzzershell.c and fuzzcheck.c. (user: drh, tags: trunk)
08:18
[8dedd6ad] Fix a problem in the shell tools readfile() command causing blobs to be truncated at the first embedded 0x00 byte in release builds, or an assert() to fail in a debug build. (user: dan, tags: trunk)
2016-12-16
21:29
[4b1e7804] Merge recent enhancements from trunk, and especially the pragma-as-vtab change. (user: drh, tags: apple-osx)
21:15
[89250777] Merge the pragma-as-vtab enhancement from trunk. (user: drh, tags: est_count_pragma)
21:02
[396ab8f8] Fix a potential memory leak following an OOM error in the pragma processing. (user: drh, tags: est_count_pragma)
18:43
[94689e3b] Add the ".lint fkey-indexes" command to the command-line shell. (user: drh, tags: trunk)
18:41
[1268dc77] Closed-Leaf: Fix minor issues with the ".lint" command implemention in the shell and the shell help text related to ".lint". (user: drh, tags: fkey-missing-indexes)
18:14
[d66ec5cf] Built-in PRAGMA statements without side-effects can be invoked as table-valued functions by prefixing their name with "pragma_". (user: drh, tags: trunk)
17:28
[ee621ade] Change ".fkey_missing_indexes" to ".lint fkey-indexes". (user: dan, tags: fkey-missing-indexes)
16:49
[4b73ee33] Closed-Leaf: Experimental merge of the est_count_pragma and the pragma-as-vtab branches. (user: drh, tags: est-count-pragma-vtab)
16:44
[3ab05987] Update .fkey_missing_indexes to use the built-in pragma vtabs. (user: dan, tags: fkey-missing-indexes)
16:13
[4ba45e72] Merge the pragma-as-vtab change into this branch. (user: dan, tags: fkey-missing-indexes)
15:57
[74a0ca1f] Merge recent trunk enhancements. (user: drh, tags: est_count_pragma)
15:05
[053a149c] Fix a problem causing the planner to generate sub-optimal plans for some queries that use recursive WITH sub-queries with LIMIT clauses. (user: dan, tags: trunk)
04:20
[546821e2] Closed-Leaf: Fix an error in the way the "schema" argument to some pragma virtual tables is handled. (user: drh, tags: pragma-as-vtab)
02:31
[01afc515] Simplifications to facilitate full test coverage. (user: drh, tags: pragma-as-vtab)
02:14
[3f8f4615] Minor bug fixes and enhancements to the pragma eponymous virtual tables. (user: drh, tags: pragma-as-vtab)
01:09
[994a4401] Merge enhancements from trunk, and especially the ability to use temp.sqlite_master as an alias for sqlite_temp_master. (user: drh, tags: pragma-as-vtab)
01:00
[8d646905] All temp.sqlite_master to be used as an alias for sqlite_temp_master. (user: drh, tags: trunk)
2016-12-15
21:33
[7126807a] Fix the cost estimation in the BestIndex method of the eponymous pragma virtual table implementation. (user: drh, tags: pragma-as-vtab)
21:11
[2c274a1a] The pragma as eponymous virtual table mechanism now appears to work. (user: drh, tags: pragma-as-vtab)
20:59
[988a61e8] Code to automatically create eponymous virtual tables for read-only pragmas. Compiles, but does not yet work. (user: drh, tags: pragma-as-vtab)
18:59
[4e374912] Do exponential rather than linear expansion of the SrcList.a array when appending new elements, to reduce the number of malloc() calls. (user: drh, tags: trunk)
16:01
[a88ca352] Closed-Leaf: Do more pragma processing from tables rather than in-line code. (user: drh, tags: table-driven-pragma)
06:01
[976c51b4] Add the -groupbyparent option to the ".fkey_missing_indexes" command. (user: dan, tags: fkey-missing-indexes)
2016-12-14
19:28
[7df23aca] Add the experimental ".fkey_missing_indexes" command to the shell tool. To identify indexes that should be created on child keys if FK processing is to be enabled. (user: dan, tags: fkey-missing-indexes)
14:07
[9cae4c2e] Refactor the Table.nRef field as Table.nTabRef for easier grepping. (user: drh, tags: trunk)
13:54
[d08b72c3] Increase the size of the reference count on Table objects to 32 bits. (user: drh, tags: trunk)
11:39
[00a184b6] Fix the configure makefile to align it with the manual makefile. Unsaved changes from the previous check-in. (user: drh, tags: trunk)
11:23
[bb48f7a5] Adjust the unix makefiles so that "make test" runs fuzzcheck prior to even attempting to build the other test programs. (user: drh, tags: trunk)
11:14
[0ea2762f] Three times faster sqlite3SrcListAppend() in the common case by avoiding the call to sqlite3SrcListEnlarge() for the first allocation. (user: drh, tags: trunk)
10:30
[6aa9b265] Fix the optimization that prevents writing freelist pages to the journal. (user: drh, tags: trunk)
2016-12-13
23:22
[c7021960] In the command-line shell, in the output of the ".dump", ".schema", and ".fullschema" commands, convert CREATE TABLE statements that appear to come from shadow tables into CREATE TABLE IF NOT EXISTS statements. (user: drh, tags: trunk)
20:30
[ed2c9f37] Fix harmless compiler warnings. (user: drh, tags: trunk)
18:47
[7f88bb44] Convert sqlite3PagerGet() into a pointer-dispatched virtual method. This makes it about 25% faster. (user: drh, tags: trunk)
18:34
[dee20ba9] Closed-Leaf: In the pager, avoid checking for the illegal page number 0 except when creating a new page. (user: drh, tags: pager-get-method)
16:57
[850877d1] Fix a problem causing SQLite to return false "foreign key violation" errors when there is a partial (i.e. WHERE constrained) UNIQUE index on the parent key columns. This bug did not cause SQLite to allow illegal data to be inserted into the database, only to reject legal operations. (user: dan, tags: trunk)
15:53
[67df4446] Further refinements to the virtual method implementation of sqlite3PagerGet(). (user: drh, tags: pager-get-method)
14:32
[df5bb90d] Make the sqlite3PagerGet() interface into a virtual method, with different implementations based on the current state of the pager. This gives a small performance increase by avoiding unnecessary branches inside the various methods. (user: drh, tags: pager-get-method)
2016-12-12
23:24
[1a636d5e] Add the --mmap option to the speedtest1 program and to the speed-check.sh script that is frequently used to run speedtest1. (user: drh, tags: trunk)
18:12
[1b36fbb9] Remove unnecessary MemPage initialization resets in the autovacuum ptrmap processing. (user: drh, tags: trunk)
16:15
[a24f805b] Merge all the latest performance enhancements from trunk. (user: drh, tags: apple-osx)
16:08
[9675518b] Faster operation for large in-memory databases. (user: drh, tags: trunk)
12:58
[dc006e08] Merge recent enhancements from trunk. (user: drh, tags: est_count_pragma)
11:05
[d4dff10a] Performance optimization in sqlite3PagerWrite(). (user: drh, tags: trunk)
01:53
[4fc6580f] Updates to the tokenizer for EBCDIC. No changes for standard builds. (user: drh, tags: trunk)
01:30
[57deb1b4] Size and performance optimization in btreeInitPage() in the freeblock validation step. (user: drh, tags: trunk)
00:58
[f9f2e23b] Change the order of comparison for divider cell overflow in balance non-root to avoid a (harmless) reference to an uninitialized variable. (user: drh, tags: trunk)
2016-12-10
13:12
[35ecd4eb] Avoid an unnecessary memset() in the sqlite3BtreeInsert() routine. (user: drh, tags: trunk)
12:58
[8165f88b] Reorder the fields in the VdbeCursor object so that those that need to be bulk zeroed on allocation are grouped at the beginning, and the memset() only runs over those fields that really need it. (user: drh, tags: trunk)
04:06
[c9bdf7ad] Avoid signed integer overflow when dealing with a LIMIT and OFFSET whose sum exceeds the maximum integer value. (user: drh, tags: trunk)
00:14
[478627c9] Closed-Leaf: In balance_nonroot, try to combine dropCell/insertCell combinations for the dividers into a cell overwrites. This results in a very small (0.05%) performance gain which is probably not worth the added complexity. (user: drh, tags: failed-dropCell-opt)
2016-12-09
19:42
[684ef458] When doing the sqlite3BtreeInsert() overwrite optimization, make sure the memcpy() does not extend off the end of the page. (user: drh, tags: trunk)
18:09
[c1f0ae9d] Additional comments and an assert on the sqlite3BtreeInsert() overwrite optimization. (user: drh, tags: trunk)
17:32
[0b86fbca] In sqlite3BtreeInsert() when replacing a re-existing row, try to overwrite the cell directly rather than deallocate and reallocate the cell. (user: drh, tags: trunk)
16:12
[0ea3ece9] Fix an fts5 bug that could cause a crash following an OOM error or sqlite3_interrupt() interrupt. (user: dan, tags: trunk)
16:02
[01ada3d1] Avoid unnecessary zeroing of fields in the MemPage object that are going to be reinitialized before use anyhow. A smaller and faster binary results. (user: drh, tags: trunk)
00:15
[1f16c9a7] Fix an obscure problem in range estimation with STAT4. (user: drh, tags: trunk)
2016-12-08
23:52
[92998e4a] Fix the showstat4 utility program so that is displays strings using standard SQL notation (single quotes) rather than C-style notation. (user: drh, tags: trunk)
19:04
[b26df26e] Fix a minor error in the cg_anno.tcl script causing the cycles-per-file counts to be miscomputed. (user: drh, tags: trunk)
18:36
[254a83bf] Update the tool/cg_anno.tcl script to give a summary of cycle counts by canonical source file name. (user: drh, tags: trunk)
01:38
[83bc5e40] More changes to take advantage of the sqlite3VdbeAppendP4() method. (user: drh, tags: trunk)
2016-12-07
21:35
[28883e8f] Add the sqlite3VdbeAppendP4() method for adding P4 content to the most recently coded instruction. (user: drh, tags: trunk)
20:22
[3954f837] The use P4_DYNAMIC in place of the P4_MPRINTF operand type. (user: drh, tags: trunk)
20:09
[04716c90] Performance optimization for sqlite3VdbeAddOp4(). (user: drh, tags: trunk)
17:06
[24574a15] Put the SQLITE_UNTESTABLE compile-time option in the correct order for PRAGMA compile_options. (user: drh, tags: trunk)
15:49
[f3608187] Rename the SQLITE_OMIT_BUILTIN_TEST compile-time option to SQLITE_UNTESTABLE. (user: drh, tags: trunk)
15:38
[433d16ff] Prevent the flattening or where-term push-down optimizations from obscuring misuses of SQL row values that can lead to crashes or assert() failures. (user: dan, tags: trunk)
13:49
[afab1663] Always honor the sqlite3.dbOptFlags bitmask, regardless of compile-time options. Continuing fix for ticket [da78413751863]. (user: drh, tags: trunk)
07:46
[391344d8] Leaf: Merge latest trunk changes into this branch. (user: dan, tags: changebatch)
2016-12-06
22:47
[2a81763e] Performance improvement and size reduction in the Expr node allocator function sqlite3PExpr(). (user: drh, tags: trunk)
19:33
[0820f8b3] Add missing nul-terminator to a Tcl_AppendResult() call in tclsqlite.c. (user: dan, tags: trunk)
17:59
[e8247065] In the LEMON parser-generator, fix the stack overflow processing so that it correct invokes the destructor on the top-level of the parse stack. (user: drh, tags: trunk)
2016-12-05
20:16
[b4bc40d1] Fix a harmless redundant local variable declaration in the date/time function logic. (user: drh, tags: trunk)
20:06
[8df492c1] Work around a bug in the definition of "ino_t" on some versions of Android. (user: drh, tags: trunk)
2016-12-02
19:07
[6e144735] Simplify the date/time function logic for improved rebustness and also to decrease the size of the binary. (user: drh, tags: trunk)
17:08
[768c9859] Extend the valid range of 'unixepoch' dates from JulianDay 0 through 9999-12-31. (user: drh, tags: trunk)
14:15
[3c58b173] Closed-Leaf: Fix a potential integer overflow during out-of-bound date computations. (user: drh, tags: date-overflow-fix)
02:19
[0bdb7ae1] Test cases for the improved LIKE/GLOB matcher. (user: drh, tags: trunk)
2016-12-01
19:58
[a427c405] Avoid clearing the EP_FromJoin flag from terms in ON clauses when flattening sub-selects. Possible fix for [2df0107b]. (user: dan, tags: trunk)
19:38
[8bed4cd5] Closed-Leaf: Avoid clearing the EP_FromJoin flag from terms in ON clauses when flattening sub-selects. Possible fix for [2df0107b]. (user: dan, tags: left-join-fix)
18:57
[2df0ebf9] Performance improvement for GLOB and LIKE matching for patterns with two or more multi-character wildcards ("*" or "%"). (user: drh, tags: trunk)
18:49
[a1e2b6ce] Closed-Leaf: Faster version of patternCompare() that uses new return values rather than an extra parameter to communicate wildcard information back up to parent searches. (user: drh, tags: pattern-compare-optimization)
17:34
[c5e5614d] Modify the patternCompare() function (used for GLOB, LIKE) to better handle patterns containing multiple wildcard characters ("*", "%"). (user: dan, tags: pattern-compare-optimization)
2016-11-30
16:54
[d2d30914] Add the remember(V,PTR) extension function which copies an SQL value into an application variable. (user: drh, tags: trunk)
16:39
[7ca58a07] Merge all the latest changes from trunk. (user: drh, tags: est_count_pragma)
14:47
[3816bb41] Fix then handling of the (oversized) integer literal -0x8000000000000000. (user: drh, tags: trunk)
05:08
[9d0d8c2e] Change the OP_DecrJumpZero opcode back to its old behavior of always decrementing, except top the decrementing when it reaches the largest negative number. (user: drh, tags: trunk)
04:07
[1218005a] More improvements to boundary cases in the date/time functions, flowing out of branch coverage testing. (user: drh, tags: trunk)
01:05
[96106d56] Prevent a warning about integer overflow when using a very large negative LIMIT. (user: drh, tags: trunk)
00:48
[dc453b34] Further changes to the date/time functions to suppress harmless signed integer overflow warnings that could have occurred when doing out-of-range date calculations which, according to the docs, give undefined results. (user: drh, tags: trunk)
2016-11-29
20:39
[d410a839] The documentation says that the built-in date-time functions give undefined results for dates before 0000-01-01 and after 9999-12-31. Change the actually implementation so that the answer given is really NULL. This also avoids unnecessary hand-wringing over an signed integer overflow that might otherwise occur when processing out-of-bound dates. (user: drh, tags: trunk)
2016-11-28
21:22
[9021f687] Fix broken hyperlinks to the sqlite3_snapshot objection definition in the documentation. No changes to code. (user: drh, tags: trunk)
19:13
[bbd85d23] Leaf: Version 3.15.2 (user: drh, tags: release, branch-3.15, version-3.15.2)
14:52
[7cc2d60d] Simplify some code in fts5_expr.c. Add some extra test cases for the same. (user: dan, tags: trunk)
2016-11-26
20:44
[41a3af54] Merge all recent trunk changes, and especially the new sqlite3_snapshot_recover() interface. (user: drh, tags: apple-osx)
20:12
[d6a7bf80] Update test case for opening SHM files read/write on a read-only connection so that they are only attempted on Darwin with SQLITE_ENABLE_PRESIST_WAL. (user: drh, tags: apple-osx)
19:44
[b70c85ce] Add the sqlite3_snapshot_recover() interface and related functionality. (user: drh, tags: trunk)
2016-11-25
20:20
[a4205a83] Clarification of the behavior of sqlite3_stmt_readonly() on BEGIN IMMEDIATE statements. The is comment changes only - no changes to code. (user: drh, tags: trunk)
19:32
[6ac7b07a] Remove the OP_RowKey opcode. Use OP_RowData in its place. (user: drh, tags: trunk)
19:18
[49ebc219] Refactor the sqlite3BtreeKey() and sqlite3BtreeData() internal interfaces into sqlite3BtreePayload() and sqlite3BtreePayloadChecked(), respectively. This is a continuation of the optimization started by check-in [2d831074cf]. The result is a slightly smaller and faster binary. (user: drh, tags: trunk)
17:03
[a9498407] Small performance increase and size reduction in the OP_Column opcode. (user: drh, tags: trunk)
15:47
[c53dca7f] Performance enhancement to sqlite3_snprintf(). (user: drh, tags: trunk)
15:11
[b6acf5d4] Performance improvement in sqlite3StrAccumFinish() for the common case where no memory allocation is required. (user: drh, tags: trunk)
14:30
[6df7c574] Add a comment to help clarify the EP_FromJoin hack in exprCodeBetween(). (user: drh, tags: trunk)
2016-11-24
13:42
[e31d646a] Fix a test case in vacuum5.test so that it works with the in-memory journal permutation. Cherrypick of [81c86401]. (user: dan, tags: branch-3.15)
2016-11-23
23:18
[9a603a18] Fix the error message for invalid ".mode" arguments in the command-line shell, so that it mentions the new "quote" mode. (user: drh, tags: trunk)
21:33
[f693850a] Updates makefiles and build scripts on windows to used Tcl 8.6. (user: drh, tags: branch-3.15)
21:14
[86dc74cb] Update the version number to 3.15.2. (user: drh, tags: branch-3.15)
21:13
[4c6efe60] Code constant vector components outside of any loops in CASE and BETWEEN expressions. Fix for [1a684656]. (user: drh, tags: branch-3.15)
21:08
[661b4506] Prevent a possible use-after-free bug in the query optimizer. (user: drh, tags: branch-3.15)
21:01
[27438fb4] Disable the query flattener optimization for SELECT statements that are on the RHS of vector IN operators. This is a hack that fixes the bug described in ticket [da7841375186386c]. A better solution that does not disable the query flattener is needed, but this will server for the time being. (user: drh, tags: branch-3.15)
20:44
[0f956597] Fix a potential use-after-free error during parsing of malformed CREATE TABLE statement. (user: drh, tags: branch-3.15)
20:37
[4efd331e] Fix an fts5 problem causing a crash in phrase queries where the first token of the phrase matches one or more rows but some other token within the phrase matches zero. (user: drh, tags: branch-3.15)
20:31
[6492e57e] Fix OOM error reporting in the json1_group_object() SQL function. Remove an unreachable branch from the JSON1 logic. (user: drh, tags: branch-3.15)
20:24
[7c466283] Fix the JSON1 extension so that the JSON validator correctly rejects malformed backslash escapes within string literals. (user: drh, tags: branch-3.15)
20:19
[8a55b8e1] Avoid a crash that can occur after an obscure OOM in the built-in INSTR() function. (user: drh, tags: branch-3.15)
20:12
[8fd2fcce] Mark the ICU extension functions as deterministic. (user: drh, tags: branch-3.15)
19:43
[794763fd] Handle some obscure "row value misused" cases that could cause segfaults or assertion failures. (user: drh, tags: branch-3.15)
19:40
[f8cf7ff1] Take care not to try to generate code for the ATTACH and DETACH commands if there were syntax errors during parsing. Fix for ticket [2f1b168ab4d4844] (user: drh, tags: branch-3.15)
19:31
[c08aff13] Code constant vector components outside of any loops in CASE and BETWEEN expressions. Fix for [1a684656]. (user: dan, tags: trunk)
14:19
[161192f1] Correctly display the names of SQL functions in the VDBE_PROFILE output. (user: drh, tags: trunk)
2016-11-22
22:23
[e2c4bdf5] Closed-Leaf: Merge bug fixes and enhancements from trunk. (user: drh, tags: serializable-snapshot)
21:11
[e7be3183] Enclose the sqlite3WalSnapshotRecover() routine within (user: drh, tags: serializable-snapshot)
20:29
[bee2859b] Add a new requirement mark for CAST expressions. (user: drh, tags: trunk)
19:15
[f5ac98ef] Update requirement marks to reflect changes in wording in the documentation. No changes to code. (user: drh, tags: trunk)
01:26
[32be7aae] Remove unnecessary OP_Close opcodes for a size reduction and performance increase. (user: drh, tags: trunk)
2016-11-21
21:33
[abeddb6d] Remove unnecessary OP_Close opcodes at the end of INSERT operations, resulting in smaller and faster code. (user: drh, tags: trunk)
18:15
[9979ba80] Enhance speedtest1.c so that is works on older versions of SQLite, before the introduction of the group_concat() aggregate function. (user: drh, tags: trunk)
2016-11-20
17:59
[b3b7b42d] Fix harmless compiler warnings. (user: drh, tags: trunk)
12:00
[0a98c8d7] Prevent a possible use-after-free bug in the query optimizer. (user: drh, tags: trunk)
2016-11-19
18:31
[28393c41] Remove the requirement to open the wal file before sqlite3_snapshot_recover() is called. Also add some comments to new functions. (user: dan, tags: serializable-snapshot)
17:30
[db314213] Test some extra error conditions in sqlite3_recover_snapshot(). (user: dan, tags: serializable-snapshot)
17:20
[7e040406] Add another fault-injection test for sqlite3_snapshot_recover(). (user: dan, tags: serializable-snapshot)
16:35
[525f75fa] Fix a problem causing sqlite3_snapshot_recover() to return SQLITE_IOERR_SHORT_READ. (user: dan, tags: serializable-snapshot)
14:53
[9abeb798] Fix a bug in sqlite3_snapshot_recover() that could cause subsequent read transactions to use out-of-data cache entries. (user: dan, tags: serializable-snapshot)
2016-11-18
20:49
[174a6076] Add experimental sqlite3_snapshot_recover() API. (user: dan, tags: serializable-snapshot)
18:43
[83b658da] Require that the database handle be in autocommit mode for sqlite3_snapshot_get() to succeed. This is because it may open a read transaction on the database file. (user: dan, tags: serializable-snapshot)
18:22
[1f7ee7af] Add tests for snapshot interfaces. (user: dan, tags: serializable-snapshot)
14:38
[16b9bf92] Enhance existing snapshot tests to serialize/deserialize snapshots. No new tests. (user: dan, tags: serializable-snapshot)
2016-11-17
21:52
[4fe94b0f] Closed-Leaf: Experimental changes for faster in-memory DB operation for large databases. (user: drh, tags: memdb-opt)
20:05
[d6b3779e] Fix a problem in rtreeD.test causing it to fail in OMIT_BUILTIN_TEST builds. (user: dan, tags: trunk)
14:02
[a07c581e] When opening the *-shm file for a readonly database, try to open it in read-write mode before falling back to readonly. This is in case some other read/write connection within the same process uses the same file descriptor. (user: dan, tags: apple-osx)
13:54
[2331192b] Change the --enable-debug option on configure so that it enables the ".selecttrace" and ".wheretrace" commands in the command-line shell. (user: drh, tags: trunk)
13:13
[005d5b87] Disable the query flattener optimization for SELECT statements that are on the RHS of vector IN operators. This is a hack that fixes the bug described in ticket [da7841375186386c]. A better solution that does not disable the query flattener is needed, but this will server for the time being. (user: drh, tags: trunk)
2016-11-15
21:17
[77aeb705] Add a needed #include to speedtest1.c. (user: drh, tags: trunk)
17:37
[b6a81fa1] Experimental changes toward making snapshots serializable. (user: drh, tags: serializable-snapshot)
04:00
[66347385] Change the OP_Last opcode so that it is a no-op if the cursor is already pointing at the end of the b-tree. (user: drh, tags: trunk)
02:46
[5ed0bd38] Make the VACUUM command about 9% faster by avoiding unnecessary calls to sqlite3BtreeMovetoUnpacked() while copying rowid tables. (user: drh, tags: trunk)
2016-11-14
20:47
[03f75a67] Add 8794 new test cases received from the OSS-FUZZ project. (user: drh, tags: trunk)
20:08
[c5dbc599] Fix a potential use-after-free error during parsing of malformed CREATE TABLE statement. (user: drh, tags: trunk)
18:27
[a71fad45] Enhance fuzzcheck.c to accept database-specific configuration parameters in the option CONFIG table. Add the fuzzdata5.db fuzz database containing test cases from OSS-FUZZ. (user: drh, tags: trunk)
17:25
[6f2d43ec] Fix the ossfuzz.c test module so that it does not segfault after a "PRAGMA empty_result_callbacks=1;". Add the ossshell.c program for simple command-line testing of ossfuzz.c. (user: drh, tags: trunk)
15:28
[e211c579] Avoid unnecessary calls to sqlite3ExprCacheAffinityChange() when generating OP_MakeRecord opcodes that do not change any register affinities. (user: drh, tags: trunk)
08:19
[e78f6f3b] Fix an fts5 problem causing a crash in phrase queries where the first token of the phrase matches one or more rows but some other token within the phrase matches zero. (user: dan, tags: trunk)
2016-11-11
20:37
[7b76be41] Fix harmless compiler warnings in test code for MSVC. (user: drh, tags: trunk)
19:08
[b835cf3e] Avoid storing redundant fields in sorter records when the sort-key and data have fields in common. (user: drh, tags: trunk)
19:01
[925840cf] Enhance the OP_IdxInsert opcode so that it can used unpacked key values if they are available. Update the code generator to take advantage of this new capability. The speedtest1.c test is about 2.6% faster as a result. Later: This also introduced bug [30027b613b]. Bummer. (user: drh, tags: trunk)
18:45
[dd62d2de] Closed-Leaf: Merge trunk with this branch. (user: dan, tags: sorter-opt)
18:19
[1a587d72] Closed-Leaf: Remove obselete and unused logic in the update code generator. Fix the sqlite3BtreeMovetoUnpacked() routine so that it remembers the rowid of the row that it landed on. (user: drh, tags: unpacked-IdxInsert)
18:08
[6e2e9d38] Reenable the SQLITE_EXPR_REF optimization for "SELECT DISTINCT ... ORDER BY" queries. (user: dan, tags: sorter-opt)
17:52
[5515b827] Merge enhancements and bug-fixes from trunk. (user: drh, tags: unpacked-IdxInsert)
17:08
[46e00162] Fix a problem with switching from wal to rollback mode when SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE is configured. (user: dan, tags: trunk)
16:33
[119d6ef8] Add the test/ossfuzz.c interface adaptor for OSS-FUZZ. Make previsions for testing the adaptor using fuzzcheck.c. (user: drh, tags: trunk)
15:49
[fba5fddb] Handle some obscure "row value misused" cases that could cause segfaults or assertion failures. (user: dan, tags: trunk)
14:54
[f98c8ac8] Back out the "--raw" option on ".read" in the command-line shell. Instead, fix the command-line shell so that if EOF is reached without seeing a final semicolon, it goes ahead and passes the accumulated SQL text to SQLite. (user: drh, tags: trunk)
09:51
[642a8fba] Add extra tests for the xBestIndex() virtual table method. (user: dan, tags: trunk)
05:19
[6311a8bd] In the command line shell, avoid using utf8_printf() in a couple places where it is superfluous. (user: mistachkin, tags: trunk)
04:37
[09233770] Add the --raw option to the ".read" dot-command of the command-line shell, to cause the named file to be read and sent directly into sqlite3_exec() without any interpretation. (user: drh, tags: trunk)
03:37
[b0ff183b] Take care not to try to generate code for the ATTACH and DETACH commands if there were syntax errors during parsing. Fix for ticket [2f1b168ab4d4844] (user: drh, tags: trunk)
2016-11-10
21:19
[9a64a4f2] Leaf: Break up the sqlite3BtreeMovetoUnpacked() routine into an eponymous routine and sqlite3BtreeMovetoIntkey(). Each routine specializes in a single kind of btree. (user: drh, tags: split-moveto)
20:42
[eac0e827] Avoid a few unnecessary calls to sqlite3BtreeMovetoUnpacked(). (user: drh, tags: unpacked-IdxInsert)
20:14
[0af62fdb] Avoid storing redundant fields in sorter records when the sort-key and data have fields in common (as in "SELECT a FROM t1 ORDER BY 1"). (user: dan, tags: sorter-opt)
17:01
[f7041cbb] When doing a REPLACE on a WITHOUT ROWID table with no secondary indexes, bypass the OP_NoConflict/OP_Delete sequence and directly overwrite any preexisting row, for a performance increase. (user: drh, tags: unpacked-IdxInsert)
16:07
[42f8aa62] Remove C++ style comments. No code changes. (user: drh, tags: unpacked-IdxInsert)
14:24
[67602e40] Add the unpacked key fields to OP_IdxInsert for INSERT and UPDATE statements. (user: drh, tags: unpacked-IdxInsert)
2016-11-09
20:14
[345b46be] Comment changes that attempt to better explain the behavior of the "seekResult" field on VdbeCursor objects and the seekResult parameter to sqlite3BtreeInsert() and the OPFLAG_USESEEKRESULT flag on insert opcodes. No changes to code. (user: drh, tags: unpacked-IdxInsert)
16:03
[51d0aed8] Fix a simple comment typo. No changes to code. (user: drh, tags: unpacked-IdxInsert)
01:46
[b4889588] Fix typo in the CSV extension. (user: mistachkin, tags: trunk)
01:38
[42db7cd2] Make use of the unpacked key on the OP_IdxInsert on sorters with a LIMIT. (user: drh, tags: unpacked-IdxInsert)
01:19
[e4acd982] Fix a typo on the OP_IdxInsert documentation. No code changes. (user: drh, tags: unpacked-IdxInsert)
01:07
[754ee844] Add a DISTINCT query to speedtest1.c. Also change INSERT OR REPLACE into just REPLACE. (user: drh, tags: trunk)
00:57
[d6dd2ad3] Remove the "experimental" marking from the sqlite3_preupdate interfaces. But be sure all the interface definitions are within documentation. (user: drh, tags: trunk)
00:10
[89d958ab] Enhance the OP_IdxInsert opcode to optionally accept unpacked key material. (user: drh, tags: unpacked-IdxInsert)
2016-11-08
19:22
[bec5b6d4] Avoid superfluous cursor seeks in "INSERT OR REPLACE" statements. (user: dan, tags: trunk)
17:19
[8cb8516d] Avoid generating OP_TableLock unnecessary instructions on btrees that are not sharable. (user: drh, tags: trunk)
16:27
[c2f84f63] Fix the speedtest1.c test program so that it gives closing "%" wildcards on LIKE searches. (user: drh, tags: trunk)
00:30
[b5733cae] Tweaks to speedtest1.c to better reflect mobile usage based on findings in the "Pocket Data" paper by Kennedy, Ajay, Challen, and Ziarek. (user: drh, tags: trunk)
2016-11-07
18:18
[b5409849] Fix OOM error reporting in the json1_group_object() SQL function. Remove an unreachable branch from the JSON1 logic. (user: drh, tags: trunk)
15:15
[145cd13e] Replace some unreachable branches from the JSON1 extension with assert(). (user: drh, tags: trunk)
13:37
[7a635391] Fix the JSON1 extension so that the JSON validator correctly rejects malformed backslash escapes within string literals. (user: drh, tags: trunk)
2016-11-04
19:09
[0e5ffd91] Merge recent trunk changes, including all the fixes that appeared in version 3.15.1. (user: drh, tags: apple-osx)
12:08
[1136863c] Version 3.15.1 (user: drh, tags: release, branch-3.15, version-3.15.1)
12:05
[b86b79c4] Avoid a crash that can occur after an obscure OOM in the built-in INSTR() function. (user: dan, tags: trunk)
12:03
[afbbb6c6] Mark the ICU extension functions as deterministic. (user: drh, tags: trunk)
11:23
[97354093] Add an assert() to silence a coverity false-positive. (user: drh, tags: trunk)
07:25
[81c86401] Fix a test case in vacuum5.test so that it works with the in-memory journal permutation. (user: dan, tags: trunk)
2016-11-03
21:35
[1d0e43c5] Replace a couple more references to Tcl 8.5 in the Windows build tools. (user: mistachkin, tags: trunk)
19:27
[752e14d9] Fix a test case in vacuum5.test so that it works with -DSQLITE_TEMP_STORE=2 and -DSQLITE_ENABLE_ATOMIC_WRITE.. (user: dan, tags: branch-3.15)
19:24
[3ca80010] Fix a test case in vacuum5.test sot aht it works with -DSQLITE_ENABLE_ATOMIC_WRITE. (user: dan, tags: trunk)
19:01
[f5dd95e2] Fix a test case in vacuum5.test so that it works with -DSQLITE_TEMP_STORE=2. (user: dan, tags: trunk)
18:49
[5221e3cc] Add the SQLITE_FCNTL_WIN32_GET_HANDLE file control. (user: drh, tags: branch-3.15)
18:44
[ccdcce46] Increase the version number to 3.15.1. (user: drh, tags: branch-3.15)
18:38
[ee16fedd] Escape non-ASCII character from an ICU extension comment. (user: drh, tags: branch-3.15)
18:36
[3fae483f] Fix an issue that was causing the new database image to be assembled entirely in heap memory when VACUUMing a database, even if it should use a temp file. This could cause SQLITE_NOMEM errors when vacuuming very large databases on 32-bit systems. (user: drh, tags: branch-3.15)
18:35
[aba1e22b] Make sure left-join markings are transferred to the virtual scalar subexpressions when decomposing a vector comparison in the ON clause of a LEFT JOIN. Fix for ticket [fef4bb4bd9185ec8f]. (user: drh, tags: branch-3.15)
18:33
[54eeddec] If all branches of an OR optimize scan that is the rhs of a LEFT JOIN use the same index, set the index cursor to return NULL values if there are no matches for a row on the lhs. Fix for ticket [34a579141b2c5ac] (user: drh, tags: branch-3.15)
18:31
[0fc4f0f4] In the sessions module, avoid recording a change if an UPDATE statement overwrites a column with REAL affinity containing an integer value with the same value. (user: drh, tags: branch-3.15)
18:30
[63cfe197] Avoid using the "direct overflow read" optimization to read large blobs if the pager layer has a wal file open - even if the database header indicates that the db is not a wal database. (user: drh, tags: branch-3.15)
13:12
[ba9873da] In the command-line shell, fix the .imposter command so that it works with indexes on expressions. Fix the ".mode quote" mode so that it works with ".headers ON". (user: drh, tags: trunk)
13:01
[be3ec8fd] Add the ".imposter" command to the command-line shell. (user: drh, tags: trunk)
02:25
[ad08753a] Fix an possible NULL pointer deference in the command-line shell that can occur when using imposter mode. (user: drh, tags: trunk)
2016-11-02
19:49
[def8f598] Adjust the MSVC makefile to use Tcl8.6 by default. (user: drh, tags: trunk)
16:29
[8e4ba115] When the block sorting optimization is used in a scalar subquery, be sure to exit the loop as soon as the first valid output row is received. Fix for ticket [cb3aa0641d9a4] backported to the 3.8.9 branch. (user: drh, tags: branch-3.8.9)
14:50
[30288453] Fix an issue that was causing the new database image to be assembled entirely in heap memory when VACUUMing a database, even if it should use a temp file. This could cause SQLITE_NOMEM errors when vacuuming very large databases on 32-bit systems. (user: dan, tags: trunk)
13:18
[d18f61b7] Fix a requirement mark. No changes to code. (user: drh, tags: trunk)
02:17
[9b3a3b41] Use NOT NULL partial indexes when the query is constrained by a single LIKE or GLOB. (user: drh, tags: trunk)
2016-10-31
16:49
[6d142025] Add the SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE sqlite3_dbconfig() option - for disabling SQLite's default checkpoint-on-close behaviour. (user: dan, tags: trunk)
16:16
[093d2fc2] Closed-Leaf: Add the SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE sqlite3_dbconfig() option - for disabling SQLite's default checkpoint-on-close behaviour. (user: dan, tags: no-ckpt-on-close)
2016-10-27
14:51
[6374978e] Remove the mutex from test_multiplex.c. (user: dan, tags: trunk)
01:02
[619f5cc7] Make sure left-join markings are transferred to the virtual scalar subexpressions when decomposing a vector comparison in the ON clause of a LEFT JOIN. Fix for ticket [fef4bb4bd9185ec8f]. (user: drh, tags: trunk)
2016-10-26
18:41
[c23f5ef3] Small size reduction and performance enhancement in whereScanInit(). (user: drh, tags: trunk)
17:57
[d861ee17] Small size reduction and performance improvement in whereScanNext(). (user: drh, tags: trunk)
16:05
[ec9dab80] If all branches of an OR optimize scan that is the rhs of a LEFT JOIN use the same index, set the index cursor to return NULL values if there are no matches for a row on the lhs. Fix for ticket [34a579141b2c5ac] (user: dan, tags: trunk)
15:46
[e7b9bc67] Closed-Leaf: If all branches of an OR optimize scan that is the rhs of a LEFT JOIN use the same index, set the index cursor to return NULL values if there are no matches for a row on the lhs. (user: dan, tags: leftjoin-or-fix)
13:58
[86675ae0] Merge the SQLITE_ENABLE_URI_00_ERROR compile-time option. (user: drh, tags: trunk)
13:44
[1aaa06e3] Closed-Leaf: Add extra tests to check the result of including a %00 escape in a URI when ENABLE_URI_00_ERROR is defined. (user: dan, tags: uri-00-error)
12:58
[71167951] Add an elapsed-time output for faststat1.c. (user: drh, tags: est_count_pragma)
12:15
[e8a9bfec] Add compile time option SQLITE_ENABLE_URI_00_ERROR. If defined, any "%00" escape found in a URI is treated as an error. (user: dan, tags: uri-00-error)
2016-10-25
19:39
[f7f78147] Simplifications to faststat1.c. Fix a bug in sqlite3MovetoProportional() for very large b-trees. (user: drh, tags: est_count_pragma)
19:21
[b051fd19] Further refinements to the faststat1.c utility. (user: drh, tags: est_count_pragma)
18:28
[65444f2e] Enhance faststat1.c to deal better with WITHOUT ROWID tables. (user: drh, tags: est_count_pragma)
17:28
[c3570e46] Merge recent trunk changes, and especially the PRAGMA index_info enhancement which is needed on this branch. (user: drh, tags: est_count_pragma)
15:39
[fe49fb03] Leaf: Enhance the "PRAGMA index_info" and "PRAGMA index_xinfo" statements so that they work on WITHOUT ROWID tables and provide information about the underlying index btree that implements the WITHOUT ROWID table. (user: drh, tags: index-info-on-table)
15:06
[b1158564] Add test case to demonstrate a "BEGIN EXCLUSIVE" command returning SQLITE_BUSY_SNAPSHOT. (user: dan, tags: trunk)
13:57
[7b83581a] First attempt at a utility program to compute sqlite_stat1 without doing a full table scan. (user: drh, tags: est_count_pragma)
2016-10-24
01:01
[98795c2d] Performance optimization in moveToRoot(). Avoid repeated validity checking of the root page on each call. Once is enough. (user: drh, tags: trunk)
2016-10-22
01:22
[5f3e6028] In the sessions module, avoid recording a change if an UPDATE statement overwrites a column with REAL affinity containing an integer value with the same value. (user: drh, tags: trunk)
2016-10-21
21:21
[b861328a] Closed-Leaf: In the sessions module, avoid recording a change if an UPDATE statement overwrites a column with REAL affinity containing an integer value with the same value. (user: dan, tags: sessions-fix)
18:01
[04fe12b5] When reading from an index, the shared-cache lock must be on the corresponding table. (user: drh, tags: est_count_pragma)
17:45
[0c8a5b88] Merge updates from trunk, and especially the ".mode quote" enhancement to the shell. (user: drh, tags: est_count_pragma)
17:39
[c4f5fa78] Add ".mode quote" to the command-line shell. (user: drh, tags: trunk)
17:25
[affc2ef5] Add the btree_sample(INDEX,LOCATION,LIMIT) pragma. (user: drh, tags: est_count_pragma)
15:36
[c39fd9b8] Fix problems in the est_count pragma for indexes and WITHOUT ROWID tables. (user: drh, tags: est_count_pragma)
10:49
[b54c15f1] Avoid using the "direct overflow read" optimization to read large blobs if the pager layer has a wal file open - even if the database header indicates that the db is not a wal database. (user: dan, tags: trunk)
10:09
[b7d9727b] If SQLITE_DIRECT_OVERFLOW_READ is defined at compile time, add "DIRECT_OVERFLOW_READ" to the list of symbols returned by "PRAGMA compile_options". (user: dan, tags: trunk)
2016-10-20
22:02
[340822af] Experimental est_count pragma. (user: drh, tags: est_count_pragma)
18:20
[fd81d8a4] Leaf: Add the ability for the PRAGMA statement to accept multiple arguments. Currently all arguments other than the first are ignored. (user: drh, tags: multi-arg-pragma)
11:48
[fd9c6ff0] Add test case to incrblob4.test. No changes to code. (user: dan, tags: trunk)
2016-10-18
16:36
[56474ebc] Minor simplification of the comparison opcodes. (user: drh, tags: trunk)
15:29
[2aa7a03b] Fix harmless uninitialized variable warnings in speedtest1.c. (user: drh, tags: trunk)
14:35
[6ca0e06b] Add the --repeat option to speedtest1.c and speed-check.sh. (user: drh, tags: trunk)
2016-10-17
23:44
[29997f79] Leaf: Fix SQLITE_DBCONFIG_REQUIRE_TXN so that it allows BEGIN IMMEDAITE and BEGIN EXCLUSIVE to run outside of a transaction. (user: drh, tags: require-write-txn)
19:00
[a3a96c4d] Leaf: Escape non-ASCII character from an ICU extension comment. Cherrypick of [5ec02ecf3d20ce7e]. (user: mistachkin, tags: mutexDbg)
18:59
[2fb9a5dd] Enhancments to Win32 mutex debugging. (user: mistachkin, tags: mutexDbg)
18:44
[5ec02ecf] Escape non-ASCII character from an ICU extension comment. (user: mistachkin, tags: trunk)
18:33
[3d89dc45] Corrections to a couple recently added 'filectrl.test' results. (user: mistachkin, tags: trunk)
15:28
[c88d36e2] Changes to support interrupting a checkpoint using sqlite3_interrupt(). (user: dan, tags: trunk)
00:48
[cda998f0] Small size reduction and performance increase in the string duplicator. (user: drh, tags: trunk)
2016-10-15
18:37
[16d88a90] Add documentation for the OP_SorterInsert opcode, formerly omitted by mistake. No changes to code. (user: drh, tags: trunk)
08:56
[2674d779] Add test case to hook.test. No changes to non-test code. (user: dan, tags: trunk)
2016-10-14
21:27
[16039be3] Add the SQLITE_FCNTL_WIN32_GET_HANDLE file control. (user: mistachkin, tags: trunk)
21:16
[aa6de9c4] Bump the version number in anticipation of the next development cycle. (user: drh, tags: trunk)
10:20
[70787558] Version 3.15.0 (user: drh, tags: trunk, release, version-3.15.0)
2016-10-13
12:56
[4d66ac98] Take care to avoid integer overflow when doing the initial page cache allocation with an excessively large cache_size setting. (user: drh, tags: trunk)
2016-10-12
18:55
[443913d5] Avoid reading the -1-th element of an array in the query planner. Fix to a bug introduced by check-in [8e2b25f9b8a7] from earlier today. Curiously, the problem only appeared on 32-bit systems. (user: drh, tags: trunk)
18:26
[e87d02d2] Add to sqlite3_analyzer command-line options --version and --tclsh, and also the undocumented --debug option. (user: drh, tags: trunk)
15:15
[61f05269] New testcase() macros to ensure coverage of the ORDER BY LIMIT optimization code in where.c. (user: drh, tags: trunk)
14:48
[8e2b25f9] Fix a problem affecting queries that match the pattern (... WHERE ipk IN (....) ORDER BY ? LIMIT ?). Fix for [96c1454c]. (user: dan, tags: trunk)
2016-10-10
14:48
[6624c496] Remove a stray line from session4.test causing a memory leak. No changes to SQLite code. (user: dan, tags: trunk)
14:34
[aebe429e] When handling ORDER BY expressions, do not assume all values of an indexed expressions are distinct. Fix for [4766f444]. (user: dan, tags: trunk)
13:29
[71797ba4] Make sure indexes on expressions skip over initial NULL values in the index. Fix for ticket [4baa464912129477f3c9] (user: drh, tags: trunk)
10:06
[788f86be] Fix a case in which the rtree module was ignoring an OOM while generating an error message. (user: dan, tags: trunk)
2016-10-08
16:10
[010ec225] Update test/trace3.test to account for the fact that casting a pointer to a 64-bit signed integer might produce a negative value. (user: dan, tags: trunk)
13:34
[c568ae3e] Corrections to Lemon documentation. No SQLite changes. (user: drh, tags: trunk)
11:55
[cbed3d75] Add missing "static" to internal function whereRangeVectorLen(). (user: dan, tags: trunk)
09:21
[dbe2997f] Updates to the tool/warnings.sh script to make it easier to use on OpenBSD. (user: dan, tags: trunk)
2016-10-05
20:14
[b066637b] Fix some compiler warnings in fts5. (user: dan, tags: trunk)
20:10
[2dde3375] Fix harmless compiler warnings. (user: drh, tags: trunk)
15:04
[b2ef39b1] Add a test case for the fix in [a596b7c6cc]. (user: dan, tags: trunk)
15:02
[a596b7c6] Do not set MEM_Blob unless the appropriate fields of the Mem object have been correctly initialized. (user: drh, tags: trunk)
01:33
[d080012d] Fix the backup_malloc.test script so that it works on Windows. (user: drh, tags: trunk)
2016-10-04
12:20
[3a9d802f] Fix a problem with the lempar.c parser template. (user: drh, tags: trunk)
00:47
[b10d0f93] Do not bother to initialize unused fields in the BtreePayload object. (user: drh, tags: trunk)
2016-10-03
18:13
[c6e9b942] Allow deterministic functions in the WHERE clause of a partial index. (user: drh, tags: trunk)
16:33
[109852e5] Size and performance optimizations on the sqlite3ExprAssignVarNumber() routine. (user: drh, tags: trunk)
15:28
[d15ae2e5] Avoid unnecessary strlen() calls in sqlite3ExprAssignVarNumber() by passing in the token length from the parser. (user: drh, tags: trunk)
14:44
[5bb7cde0] Avoid unnecessary memset() calls in the query optimizer. (user: drh, tags: trunk)
12:56
[012ff6dd] Fix an obsolete comment on a variable definition in expr.c. No code changes. (user: drh, tags: trunk)
02:59
[81e4d4f8] Make sure the sqlite_sequence table is updated when an optional xfer optimization is used. Fix for ticket [7b3328086a5c1]. (user: drh, tags: trunk)
01:21
[ea8affa9] Allocate Parse objects off of the stack where appropriate for a substantial performance increase and a size reduction. (user: drh, tags: trunk)
2016-10-01
23:55
[fe07609e] Add SQLITE_USE_ALLOCA to the --lean configuration in speed-check.sh. (user: drh, tags: trunk)
21:43
[361940b4] Rearrange fields in the Parse object to reduce the amount of initialization required. (user: drh, tags: trunk)
20:43
[34edbfd1] Reduce the width of a memset() to avoid double-initializing some variables. (user: drh, tags: trunk)
19:32
[a76bff74] Remove an unnecessary memset() call. (user: drh, tags: trunk)
19:21
[54a449a4] Use sqlite3DbMallocRawNN() where appropriate, instead of sqlite3DbMallocRaw(). (user: drh, tags: trunk)
16:53
[7983eef0] Make sure deleting an unused prepared statement does not reference uninitialized fields in the structure. (user: drh, tags: trunk)
11:39
[6ac6e446] Avoid accessing Vdbe.pc if it is uninitialized. Check Vdbe.magic first. (user: drh, tags: trunk)
00:37
[1e21bbe8] Avoid unnecessary zeroing of fields in the Vdbe object when it is allocated. (user: drh, tags: trunk)
2016-09-30
22:24
[63cf7eaf] Avoid initializing the column-cache section of the Parse object, since entries in the cache will be initialized as they are used, and avoiding the initial memset() saves many CPU cycles. (user: drh, tags: trunk)
21:20
[ab12fce3] Fix an always-true conditional left over from the previous commit. (user: drh, tags: trunk)
20:22
[60285020] Fix the Parse.aColCache column cache so that all of the valid entries are in the first Parse.nColCache slots. (user: drh, tags: trunk)
19:14
[c1419727] Another simplification to the Parse object. (user: drh, tags: trunk)
18:35
[814e41da] Remove unnecessary fields from the Parse object. (user: drh, tags: trunk)
17:46
[47ae1cda] Avoid unnecessary Mem initializations when generating a new sqlite3_stmt object. (user: drh, tags: trunk)
2016-09-29
20:28
[3c93c8f5] Small size and performance optimization to sqlite3VdbeChangeP5(). (user: drh, tags: trunk)
19:50
[984a96d7] Remove the peep-hole optimization of removing OP_Close opcodes that come before OP_Halt, as the extra work of removing those opcodes uses more cycles than just running them. (user: drh, tags: trunk)
19:27
[945f82bc] Size and performance optimization to sqlite3ValueFromExpr() (user: drh, tags: trunk)
15:53
[e2cd79aa] Clarification and typo-fixes in comments. No changes to code. (user: drh, tags: trunk)
2016-09-28
20:42
[cc29ddd6] Use Knuth multiplicative hashing for the symbol table. (user: drh, tags: trunk)
16:15
[06014163] Merge recent enhancements from trunk. (user: drh, tags: apple-osx)
16:05
[40c0fb0a] Two more typo fixes in comments. (user: drh, tags: trunk)
16:04
[5bbd071d] Fix typos in comments. No code changes. (user: drh, tags: trunk)
2016-09-27
00:09
[bf903b2e] Update requirements marks due to improvements in the wording of documentation. No changes to code. (user: drh, tags: trunk)
00:03
[0c8b9b21] Fix FTS3 test cases due to the flattener change of the previous check-in. (user: drh, tags: trunk)
2016-09-26
14:39
[cf7f9e6d] When flattening a query of the form "SELECT * FROM (SELECT * FROM tbl WHERE x=?) WHERE y=?", ensure that the final WHERE clause is "x=? AND y=?" instead of "y=? AND x=?". Although it is still not guaranteed, this makes the order in which WHERE clause terms are processed comport more closely to users expectations. (user: dan, tags: trunk)
12:38
[fe89225e] Inline the relevent parts of sqlite3ExprAlloc() into spanExpr(), for a performance improvement. (user: drh, tags: trunk)
2016-09-24
17:42
[795454a3] Omit the LikeOp object from the parser. Change more sqlite3PExpr() calls into sqlite3ExprAlloc() calls. (user: drh, tags: trunk)
01:41
[a8cb1390] Add -DSQLITE_MAX_EXPR_DEPTH=0 to the --lean option on speed-check.sh. (user: drh, tags: trunk)
2016-09-23
21:36
[8a6ea455] Add the EP_Leaf flag bit to the Expr.flags field to indicate Expr nodes that do not have substructure. Use that bit to avoid unnecessary recursion. (user: drh, tags: trunk)
20:59
[afac0709] Use sqlite3ExprAlloc() instead of sqlite3PExpr() for leaf nodes in the expression tree, where appropriate. This is both smaller and faster. (user: drh, tags: trunk)
18:13
[9a5a489d] New test case for the ORDER BY LIMIT optimization. (user: drh, tags: trunk)
18:06
[0c3cafb7] Fix the ORDER BY LIMIT optimization backport so that it works when the ORDER BY uses the DESC direction. (user: drh, tags: branch-3.8.9)
2016-09-22
21:37
[ee1382a3] Fix a potential null-pointer dereference and crash in the case where one thread is calling sqlite3_column_text() and another thread is calling sqlite3_step() on the same prepared statement at the same instant. (user: drh, tags: trunk)
18:53
[c3774c6a] Remove the internal sqlite3CodeOnce() interface, replacing it with a direct call to sqlite3VdbeAddOp0(v,OP_Once). Slightly smaller and faster. (user: drh, tags: trunk)
18:46
[5e892d60] Makefile changes to support building winsqlite3.dll using STDCALL rather than CDECL. (user: mistachkin, tags: trunk)
2016-09-21
23:58
[7785b3a2] Fix speedtest1.c so that it works with SQLITE_OMIT_DEPRECATED. Add the --lean and --cachesize options to speed-check.sh. (user: drh, tags: trunk)
19:43
[0741812d] Fix a problem with the fts5 auxiliary function API causing a crash when a query contained a phrase of zero terms. (user: dan, tags: trunk)
19:00
[4a613d85] Do not run vacuummem.test if ENABLE_MEMORY_MANAGEMENT is defined. (user: dan, tags: trunk)
18:18
[2b44f9aa] Fix obsolete requirements marks. Add new tests for VACUUM of attached databases. (user: drh, tags: trunk)
17:53
[be184bef] Avoid running vacuum5.test in auto-vacuum mode. (user: dan, tags: trunk)
17:47
[46b7d19e] Do not run test "delete_db.test" with either the journaltest or inmemoryjournal permutations. Ensure that the multiplexor tests in delete_db.test are performed in non-autovacuum mode. (user: dan, tags: trunk)
14:41
[d4928fb5] Update the fts5vocab table to handle "ORDER BY term" efficiently. (user: dan, tags: trunk)
2016-09-20
22:04
[db3ebd7c] Improved implementation of 64-bit signed integer multiply that correctly detects overflow (and promotes to floating-point) in some corner cases. Fix for ticket [1ec41379c9c1e400] (user: drh, tags: trunk)
17:49
[72429063] Fix harmless compiler warning. (user: mistachkin, tags: trunk)
17:38
[bd3ecbb5] Fix typo in comment. (user: mistachkin, tags: trunk)
01:46
[21b0e3b7] Further performance enhancements in zeroblob() handling. (user: drh, tags: trunk)
01:19
[5e196fd1] Avoid unnecessary calls to ExpandBlob() for smaller and faster code. (user: drh, tags: trunk)
2016-09-19
23:39
[46002511] Very small optimization in the bytecode engine. (user: drh, tags: trunk)
11:00
[2401ea5a] Fix a segfault introduced by the row-value enhancement that comes up on a skip-scan where the first term of the index is unconstrained and the second term is of the form "columm IN (SELECT...)". (user: drh, tags: trunk)
10:24
[75146165] Improved performance in sqlite3ExprCodeTarget(). (user: drh, tags: trunk)
02:19
[c6e6afb9] Small performance optimization in the expression walker. (user: drh, tags: trunk)
2016-09-18
16:08
[6bf5ba10] Revise the implementation of OP_Once so that it is smaller, faster, and uses less memory. This also fixes an obscure bug introduced 3 days ago by check-in [5990a1bdb4a073]. (user: drh, tags: trunk)
2016-09-17
22:46
[baceb988] Minor enhancement to the TclKit batch tool: it should download the TclKit EXE alone when the TCLKIT_NOENV environment variable is set. (user: mistachkin, tags: trunk)
19:34
[63962e2a] Small performance optimization in the freeSpace() routine of btree.c. (user: drh, tags: trunk)
17:39
[e011435e] Improved description of the ElseNotEq opcode in comments. No changes to code. (user: drh, tags: trunk)
2016-09-16
20:39
[6fc95dd7] Fix typo in the name of a Win32 string conversion routine. Replace several uses of raw_printf() with utf8_printf() in the shell. (user: mistachkin, tags: trunk)
19:42
[03573887] If no KEY is specified on ATTACH, copy the main schema key if the key size is non-zero. In other words, allow for -1 as a valid key size in support of the --textkey to SEE. (user: drh, tags: trunk)
19:11
[e660402e] Fix problems with the fileRead() function in the command-line shell. Fix a harmless memory leak in the command-line shell, to make validation testing easier. (user: drh, tags: trunk)
18:53
[9885dac4] Remove the #ifdef SQLITE_DEBUG from around the testcase_glob() routine in the command-line shell. (user: drh, tags: trunk)
17:50
[e3d9efa2] Merge recent changes from trunk. (user: drh, tags: apple-osx)
16:30
[a92aee55] Fix a problem causing incorrect code to be generated for IN constraints like "a IN (1, 2, 3)" where column "a" is a rowid column with an extra UNIQUE index created on it. Ticket [0eab1ac759]. (user: dan, tags: trunk)
15:42
[a49bc0a8] Replace a faulty assert() with a testcase() to assure the condition is tested. Ticket [0eab1ac7591f]. (user: drh, tags: trunk)
14:50
[e7653dec] Add WHERETRACE macros showing every entry and exit from whereLoopAddBtreeIndex(). (user: drh, tags: trunk)
11:53
[a3e3b3e1] Fix SQLITE_OMIT_AUTHORIZATION so that it compiles cleanly. (user: drh, tags: trunk)
02:52
[792afefa] In the shell, make ".testcase" and ".check" available in all configurations, not just SQLITE_DEBUG. All testcases to be named. Show the result of each testcase on stdout. (user: drh, tags: trunk)
00:26
[8e5c9203] In the command-line shell, add the --new option to the ".open" command. Also, report the current database filename as part of the ".show" command. (user: drh, tags: trunk)
2016-09-15
21:35
[62289f27] Add the ".testcase" and ".check" dot-commands in the shell, when compiled using SQLITE_DEBUG. (user: drh, tags: trunk)
19:15
[7b104613] Omit the sqlite3Apis constant object when compiling with SQLITE_OMIT_LOAD_EXTENSION, since it is not used. (user: drh, tags: trunk)
14:54
[b9f5bdbf] Remove no-op code (adding an assert() to prove that the code was no-op) in the text affinity logic of the bytecode engine comparison operators. (user: drh, tags: trunk)
05:47
[12df7152] Fix a typo in a comment in sqlite.h.in. No changes to code. (user: dan, tags: trunk)
00:32
[5990a1bd] Slight size reduction and performance increase in sqlite3VdbeHalt(). (user: drh, tags: trunk)
00:04
[5a2a7712] Optimization to vdbeRecordCompareInt() makes it slightly smaller and faster. (user: drh, tags: trunk)
2016-09-14
18:56
[55f7f8ee] Update comments used to generate API documentation to include the new "[dateof:3.X.Y]" notation for dates of release where appropriate. No changes to code. (user: drh, tags: trunk)
01:43
[db361482] Backport the ORDER BY LIMIT optimization to version 3.8.9. (user: drh, tags: branch-3.8.9)
2016-09-12
18:50
[29dbef4b] Leaf: Version 3.14.2 (user: drh, tags: release, branch-3.14, version-3.14.2)
14:23
[264e9c75] Fix a bug in sqldiff causing it to confuse blobs zero bytes in size with NULL values. (user: dan, tags: trunk)
13:32
[02f40c3b] Add missing "finish_test" command to vacuum5.test. (user: dan, tags: trunk)
09:28
[e0e042dc] Have releasetest.tcl delete all test files except for "testfixture", "testfixture.exe", "sqlite3", "sqlite3.exe", "test.log" and "test-out.txt" after each test run is finished. Passing the "--keep" option restores the old behaviour. (user: dan, tags: trunk)
2016-09-10
19:51
[711c5917] Changes to give a warning-free build with SQLITE_OMIT_INCRBLOB and SQLITE_OMIT_SHARED_CACHE. (user: drh, tags: trunk)
14:43
[8a9d1281] Add test code to delete an SQLite database and its auxiliary files. (user: dan, tags: trunk)
2016-09-09
20:26
[0e3ace39] Closed-Leaf: Make the new file test_delete.c portable to MSVC on Windows. (user: mistachkin, tags: test_delete)
20:23
[19e2e595] Remove an unnecessary call to sqlite3VdbeMemExpandBlob() when casting to text. (user: drh, tags: trunk)
20:00
[fb0b95e9] Add new file test_delete.c, containing test code for deleting an sqlite database. (user: dan, tags: test_delete)
19:33
[37803b19] Performance improvements to the comparison operators in the bytecode engine. (user: drh, tags: trunk)
15:12
[6ac932c9] Fix a out-of-order variable declaration for some compile-time configurations. (user: drh, tags: trunk)
13:23
[2bdd838e] In releasetest.tcl, the --srcdir option is automatic, so no need to mention it in the --help output. (user: drh, tags: trunk)
13:17
[afaaa276] Fix an obsolete comment in the releasetest.tcl source code. (user: drh, tags: trunk)
12:29
[9a14e6c4] In releasetest.tcl: Improved testing for uncommitted changes. If uncommitted changes are seen, exit immediately unless the --force option is used. (user: drh, tags: trunk)
2016-09-08
23:18
[a04a21ad] Remove an extra space before function names in the amalgamation. Cherrypick of [20f3c7436f6a8a7bab39]. (user: mistachkin, tags: branch-3.14)
23:16
[20f3c743] Closed-Leaf: Remove an extra space before function names in the amalgamation. (user: mistachkin, tags: callbackConv)
23:12
[30e917ff] Issue a warning and prompt the user to continue if the releasetest.tcl script is run in a checkout with uncommitted changes. (user: drh, tags: trunk)
2016-09-07
20:12
[e9acf616] Fix the sqlite3_trace_v2() interface so that it goes disabled if either the callback or mask arguments are zero, in accordance with the documentation. Cherrypick of [37e6c54b1afc6348]. (user: mistachkin, tags: branch-3.14)
19:54
[ddb5f055] Add support for row-value comparisons, including IN operators, and row-value updates in the UPDATE statement. (user: drh, tags: trunk)
19:47
[c844f3da] Fix the extra comments (added with -DSQLITE_ENABLE_EXPLAIN_COMMENTS) so that the sense of <, <=, >, and >= tests is correct and so that the SQLITE_STOREP2 version is shown correctly. Cherrypick of [4d43c4698eef4e3d]. (user: mistachkin, tags: branch-3.14)
19:37
[7f2c5c9e] Closed-Leaf: Fix a problem handling expressions like "(a, b) IN (SELECT ... ORDER BY 1, 2)" when there is an index on "a" but not "b". (user: dan, tags: rowvalue)
19:31
[71866b36] Merge selected test fixes from trunk. (user: mistachkin, tags: branch-3.14)
19:23
[b3777e1f] Sync up the MSVC makefiles. (user: mistachkin, tags: branch-3.14)
18:20
[00759af0] Merge recent enhancements from trunk. (user: drh, tags: apple-osx)
18:11
[12b7782a] Add the ext/misc/memvfs.c extension that implements a VFS for read-only database files contained in memory. (user: drh, tags: trunk)
13:30
[bbab9621] Simplify the affinity handling logic in codeAllEqualityTerms(). Logically the same, just a little easier to read and understand. (user: drh, tags: rowvalue)
13:20
[7c2c0d1d] Fix the ".read" command in the command-line shell so that it understands that the input is not interactive. (user: drh, tags: branch-3.14)
13:12
[193f036c] Merge fixes from trunk. (user: drh, tags: rowvalue)
12:47
[925ef2f9] Version number to 3.14.2. (user: drh, tags: branch-3.14)
12:41
[af951e03] Makefile changes to support building winsqlite3.dll using STDCALL rather than CDECL. (user: drh, tags: branch-3.14)
12:20
[2d1983ff] Correct affinity computations for a SELECT on the RHS of an IN operator. Fix for ticket [199df4168c]. (user: drh, tags: branch-3.14)
12:08
[b4f8be1f] The ORDER BY LIMIT optimization is not valid unless the inner-most IN operator loop is actually used by the query plan. Fix for ticket [0c4df46116e90f92]. (user: drh, tags: branch-3.14)
11:27
[e5c30f22] Fix a problem in internal function sqlite3OpenTableAndIndices causing an operand of an unrelated VM instruction to be overwritten. Fix for [ef360601]. (user: drh, tags: branch-3.14)
10:10
[d8451fe8] Fix the ".read" command in the command-line shell so that it understands that the input is not interactive. (user: drh, tags: trunk)
01:51
[820644b8] The ORDER BY LIMIT optimization is not valid unless the inner-most IN operator loop is actually used by the query plan. Fix for ticket [0c4df46116e90f92]. (user: drh, tags: trunk)
2016-09-06
19:08
[ab3f8f19] Remove obsolete vector-IN test cases. Fix a bad testcase() macro. (user: drh, tags: rowvalue)
18:51
[8329ac6f] Fix corer cases of vector IN operators where the RHS is a compound SELECT that includes an ORDER BY clause. (user: drh, tags: rowvalue)
17:21
[7cc9746c] Remove an unnecessary branch from expr.c. (user: dan, tags: rowvalue)
17:13
[70319c3d] Avoid unnecessary memory allocations for aiMap in codeEqualityTerm(). (user: drh, tags: rowvalue)
16:53
[c6e528c1] Avoid a NULL pointer deref in codeAllEqualityConstraints() following an OOM. (user: drh, tags: rowvalue)
16:33
[bd5a3420] Simplify the fix in commit [7d9bd22c]. (user: dan, tags: rowvalue)
15:25
[b7e710e4] Fix the header comment on codeEqualityTerm(). (user: drh, tags: rowvalue)
14:58
[231c72d9] Fix a problem handling (a, b) IN (SELECT ...) expressions when there is an index on just one of "a" or "b". (user: dan, tags: rowvalue)
14:37
[4071da2f] Enhance the sqlite3GetTempRange() and sqlite3ReleaseTempRange() internal routines so that they use sqlite3GetTempReg() and sqlite3ReleaseTempReg() when nReg==1. (user: drh, tags: rowvalue)
12:04
[288e934f] Fix a typo in a comment in expr.c. (user: dan, tags: rowvalue)
2016-09-05
22:50
[e8f105c3] Simplified logic to extract a column from a row value. (user: drh, tags: rowvalue)
20:46
[f66d0d8c] Sync up the MSVC makefiles. (user: mistachkin, tags: callbackConv)
20:40
[ea635bf9] Merge updates from trunk. (user: mistachkin, tags: callbackConv)
19:57
[2fa5288a] Fix an assert() so that it does C-compiler does not combine an assert() conditional with a production code conditional and thereby confuse the mutation testing script. (user: drh, tags: rowvalue)
15:02
[96269f01] Simplifications to the SQLITE_KEEPNULL flag on VDBE comparison operators. (user: drh, tags: rowvalue)
12:12
[ae127bcc] Do vector comparison size checking early - at name resolution time - to forestall future problems. (user: drh, tags: rowvalue)
12:02
[56562a03] Closed-Leaf: Catch vector size mismatch problems during name resolution to avoid later problems. (user: drh, tags: early-vector-size-check)
09:44
[42670935] Fix a crash that could occur under certain circumstances if the vectors on either side of a comparison operator were of a different size. (user: dan, tags: rowvalue)
2016-09-03
19:52
[7d9bd22c] Fix a problem causing the affinity of sub-select row-value elements to be ignored in some contextes. (user: dan, tags: rowvalue)
16:24
[ed206048] Merge the fuzzershell enhancement from trunk. (user: drh, tags: rowvalue)
16:23
[672c21bc] Build the generate_series(START,END,STEP) table-valued function into fuzzershell, to make it easier to construct compact test cases that contain actual data. (user: drh, tags: trunk)
15:31
[f5e49855] Consider the affinity of "b" when using an "a IN (SELECT b ...)" expression with an index on "a". Fix for [199df416]. (user: dan, tags: rowvalue)
01:46
[f1d06c49] Performance optimizations. (user: drh, tags: rowvalue)
2016-09-02
23:56
[c7271fbd] Merge recent changes from trunk. (user: drh, tags: rowvalue)
21:34
[9bdf7ca1] Add a test case for the OOM handled by the previous commit. (user: dan, tags: trunk)
21:17
[d9d8a048] Correctly detect an OOM occurring in the setDestPgsz() subroutine of backup. (user: drh, tags: trunk)
17:27
[3a9f4750] Closed-Leaf: The previous commit could miss an SQLITE_NOMEM error. This commit catches it. (user: dan, tags: mistake)
17:18
[7908fc60] Within a backup operation, ensure that a read-transaction is opened on the source database before its page size is read. This ensures the page-size used to write to the backup database is the same as its actual page-size, which is important for ZipVFS databases. (user: dan, tags: trunk)
2016-09-01
14:03
[f4ba894a] Have "sqldiff --rbu" ignore rows with NULL values in primary key fields. RBU can't handle such rows and the documentation already says sqldiff ignores them. Because the code now uses "=" instead of "IS" to filter on primary key columns, diffs on virtual tables are faster now too. (user: dan, tags: trunk)
09:35
[38d31e18] If SQLITE_ENABLE_ZIPVFS is defined, journal_mode=off is configured and a savepoint or statement rollback is attempted, move the pager into the error state to prevent the transaction from being committed. This makes it safe to use journal_mode=off with zipvfs under some conditions. (user: dan, tags: trunk)
2016-08-29
14:18
[6602974d] Use some of the example code from the sessions documenatation in the sessions test cases. (user: dan, tags: trunk)
2016-08-27
20:21
[a07269f2] Fix typos in comments. No changes to running code. (user: drh, tags: trunk)
18:35
[78cd64e2] Fix some comments in sqlite3session.h. No changes to code. (user: dan, tags: trunk)
18:34
[d464a7b1] Fixes to fts5 snippet() function. (user: dan, tags: trunk)
14:13
[082fd5f8] Merge updates from trunk. (user: drh, tags: rowvalue)
14:05
[4d43c469] Fix the extra comments (added with -DSQLITE_ENABLE_EXPLAIN_COMMENTS) so that the sense of <, <=, >, and >= tests is correct and so that the SQLITE_STOREP2 version is shown correctly. These changes are already in the rowvalue branch but are added here since they are technically unrelated to rowvalue. (user: drh, tags: trunk)
01:41
[f51248dc] Fix the "Synopsis" on the OP_Lt, OP_Le, OP_Gt, and OP_Ge opcodes, which has been backwards for time out of mind. (user: drh, tags: rowvalue)
2016-08-26
22:09
[829f802b] Fix a minor problem in sqlite3FindInIndex() related to rowids being used as part of the index. (user: drh, tags: rowvalue)
21:15
[b9fc89e4] Fix the sqlite3FindInIndex() to ensure that it always uses a prefix of the index and uses no repeated columns. Enhanced comments. (user: drh, tags: rowvalue)
19:54
[171aa833] Add an EXPLAIN QUERY PLAN line for when a index is used to implement an IN operator. (user: drh, tags: rowvalue)
19:47
[078bb69e] Add test cases to rowvalue2.test. (user: dan, tags: rowvalue)
19:31
[4b589fbf] Enhance sqlite3FindInIndex() so that it is able to make use of the primary keys at the end of an index. (user: drh, tags: rowvalue)
18:17
[87d40195] Fix a post-OOM crash in updateRangeAffinityStr(). Add several ALWAYS() macros on unreachable branches. (user: drh, tags: rowvalue)
17:54
[b34413ac] Fix a problem with affinity changes and vector range comparisons. (user: dan, tags: rowvalue)
13:19
[b0cc6be4] Allow ROWID values in indexed vector comparisons. (user: drh, tags: rowvalue)
12:00
[70901479] Fix a problem in internal function sqlite3OpenTableAndIndices causing an operand of an unrelated VM instruction to be overwritten. Fix for [ef360601]. (user: dan, tags: trunk)
04:32
[84de17bc] Rename a test procedure in 'speed3.test' to avoid a name collision. (user: mistachkin, tags: trunk)
03:42
[39761700] Comment improvements. Put ALWAYS and NEVER macros on three unreachable branches. (user: drh, tags: rowvalue)
02:10
[e4aeaa2b] Adapt the special case of '$' in item names for test 'vtabH-3.1' as well. (user: mistachkin, tags: trunk)
01:47
[328f79bb] Make the test 'vtabH-3.1' work when there are less than 5 top-level items. (user: mistachkin, tags: trunk)
01:17
[3680f95f] Support running the fstree tests in 'vtabH.test' on Windows when not using the system drive. (user: mistachkin, tags: trunk)
01:02
[9d96f614] Remove an unreachable branch from sqlite3ExprAffinity() (user: drh, tags: rowvalue)
2016-08-25
23:24
[a8546fee] Fix typos in 'vtabF.test' file. No changes to code. (user: mistachkin, tags: trunk)
22:31
[5789aab8] Merge recent changes from trunk. (user: drh, tags: rowvalue)
22:06
[37e6c54b] Fix the sqlite3_trace_v2() interface so that it goes disabled if either the callback or mask arguments are zero, in accordance with the documentation. (user: drh, tags: trunk)
21:14
[b56705ae] Refactor the sqlite3ExprCodeIN() routine for improved maintainability. (user: drh, tags: rowvalue)
17:47
[f474aeac] Another fix in the IN-operator algorithm description. (user: drh, tags: rowvalue)
17:40
[df064837] Further refinement of the in-operator.md documentation. (user: drh, tags: rowvalue)
15:46
[b6344298] Improvements to IN operator code generator comments. Avoid unnecessary Copy operations on the LHS of the IN operator. (user: drh, tags: rowvalue)
14:23
[25033ee9] Corrections to the IN-operator notes. (user: drh, tags: rowvalue)
14:00
[d256b2ca] Add notes on the implementation of the IN operator. (user: drh, tags: rowvalue)
2016-08-24
21:54
[7ae504e6] Simplified VDBE code for the vector NOT IN null-scanning loop. (user: drh, tags: rowvalue)
21:24
[bbc1b016] Improved extended comments of comparison operators when the SQLITE_STOREP2 flags is set on P5. No changes to non-debug code. (user: drh, tags: rowvalue)
19:58
[e4a56197] Modularize all use of the calling convention macros based on the USE_STDCALL nmake macro. (user: mistachkin, tags: callbackConv)
19:14
[bee44ebc] Add the sqlite3changebatch_db() API. (user: dan, tags: changebatch)
18:51
[55945fc1] In sqlite3FindInIndex(), improve internal comments and avoid an unreachable branch. (user: drh, tags: rowvalue)
18:50
[b174ed2b] Closed-Leaf: Fix a bug in the fts5 snippet function causing it to return text containing zero phrase instances. (user: dan, tags: fts5-snippet-bias)
18:49
[428fc38d] Merge updates from trunk. (user: mistachkin, tags: callbackConv)
18:21
[77f7c31a] Sync up the MSVC autoconf makefile. (user: mistachkin, tags: trunk)
17:49
[6099c180] Fix more unreachable branches. (user: drh, tags: rowvalue)
15:37
[505a2f20] Add a NEVER() on an unreachable branch in comparisonAffinity(). (user: drh, tags: rowvalue)
12:22
[f41a0391] Fix a buffer overrun in the code for handling IN(...) operators when the LHS of the operator contains indexed columns or expressions. (user: dan, tags: rowvalue)
00:51
[1e3bc369] The previous OOM fix was bad. Back it out and replace it with a better one. (user: drh, tags: rowvalue)
00:25
[25f6ed8d] Avoid a potential null-pointer dereference following an OOM. (user: drh, tags: rowvalue)
2016-08-23
19:02
[838c50a5] Simplify the row value misuse error message. (user: drh, tags: rowvalue)
19:02
[506d6ff4] Add further tests for changebatch. And a fix to prevent a changeset from conflicting with itself. (user: dan, tags: changebatch)
18:30
[e149e6b9] Fix a problem with rowvalue UPDATE when the rowvalue is not the left-most and the RHS is a multi-column subquery. (user: drh, tags: rowvalue)
18:09
[a721a738] Fix harmless compiler warnings in changebatch. (user: drh, tags: changebatch)
17:30
[c8ffae05] Fix an uninitialized variable in CASE expression code generation. (user: drh, tags: rowvalue)
17:02
[efa761b2] Add a new method to sessions - sqlite3sessions_fullchangeset() - to return a changeset that always contains values for all old.* fields. Update changebatch to use these values to more reliably detect multi-column UNIQUE constraint violations. (user: dan, tags: changebatch)
14:42
[c640489d] Fix the SQLITE_USER_AUTHENTICATION login check so that the SQLITE_AUTH_USER error code correctly propagates and is not overwritten by SQLITE_ERROR. (user: drh, tags: trunk)
2016-08-22
21:01
[207d970b] Add a couple of extra tests to changebatch1.test. (user: dan, tags: changebatch)
20:49
[0c9fd6b7] Add an experimental module to detect conflicts between sessions changesets. (user: dan, tags: changebatch)
20:10
[78395193] Add support for the SQLITE_DBCONFIG_MAINDBNAME configuration option. (user: drh, tags: trunk)
14:30
[07e69f43] Fix the vector BETWEEN operator so that it only evaluates the left-most vector expression once. Add support for vector comparisons in the CASE operator. (user: drh, tags: rowvalue)
00:48
[2f39987f] Reinstate the mechanism in BETWEEN that avoids evaluating the first expression more than once, but fix the affinity extractor so that it works with this mechanism. The de-duplication of the first expression still does not work for vector expressions, though. (user: drh, tags: rowvalue)
2016-08-20
22:49
[e50d264f] The docs promise the in "x BETWEEN y AND z" the x expression is only evaluated once. That is no longer true, and so some tests are failing. This needs to be fixed before merging to trunk. (user: drh, tags: rowvalue)
21:11
[d4562a9e] Further comment enhancements. No changes to code. (user: drh, tags: rowvalue)
21:02
[4fb66d65] Clarification of code comments in expr.c. Clean up the implementations of sqlite3ExprIsVector() and sqlite3ExprVectorSize() slightly. (user: drh, tags: rowvalue)
18:06
[9041ee4a] Fixes for problems following OOM errors. (user: drh, tags: rowvalue)
17:23
[b56b2a85] Fix other minor problems with the fts5 snippet() function. (user: dan, tags: fts5-snippet-bias)
17:00
[8384c77e] Do not duplicate the Expr.pLeft subtree of a TK_SELECT_COLUMN node. (user: drh, tags: rowvalue)
15:01
[203f07c5] Fix a segfault that could occur if a query that used a vector comparison contained certain types of syntax errors. (user: dan, tags: rowvalue)
12:00
[a3ffd283] Improvements to the vector comparison splitter in exprAnalyze(). (user: drh, tags: rowvalue)
01:06
[4165d20f] Improvements to comments. No code changes. (user: drh, tags: rowvalue)
00:51
[f320d47d] Add support for vector assignments in the SET clause of an UPDATE statement. (user: drh, tags: rowvalue)
00:07
[d8feea7d] Change the way TK_SELECT_COLUMN is handled so that the subquery is only generated once even if part of the vector comparison is used for indexing and the other part is now. This change also is a pathway to vector assignment in UPDATE statements. (user: drh, tags: rowvalue)
2016-08-19
19:58
[d4a5af69] Replace the magic number (-2) with its symbol XN_EXPR in the exprMightBeIndexed() routine. No logic changes. (user: drh, tags: rowvalue)
19:12
[acea4ee1] Improved comments on sqlite3CodeSubquery(). No changes to code. (user: drh, tags: rowvalue)
18:40
[931c9535] Show the WhereTerm.iField value on debugging output, when it is non-zero. (user: drh, tags: rowvalue)
18:37
[b10e31dc] Register any built-in fts5 module before loading automatic extensions. This allows automatic extensions to register fts5 tokenizers and auxiliary functions. (user: dan, tags: fts5-snippet-bias)
18:28
[d07be5af] Fix an obsolete comment on codeEqualityTerm(). No changes to code. (user: drh, tags: rowvalue)
15:41
[b1787236] Merge recent enhancements from trunk. (user: drh, tags: rowvalue)
15:17
[12d5e38d] Closed-Leaf: Merge the VACUUM attached database enhancement from trunk. (user: drh, tags: dbconfig_maindbname)
15:15
[083f9e62] Enhance the VACUUM command so that it can operate on an attached database. (user: drh, tags: trunk)
15:12
[ad35ef11] Closed-Leaf: Disable row counting on queries run while doing a VACUUM. (user: drh, tags: vacuum-attached-db)
14:25
[d8180af2] Have the fts5 snippet() function avoid favouring snippets that begin with sentences that do not contain search terms. Add an extra bias in favour of the first sentence in the document. (user: dan, tags: fts5-snippet-bias)
14:20
[29d63059] Add the capability to VACUUM an attached database by specifying the schema name as an argument to the VACUUM command. Since version 2.0, VACUUM has accepted an argument which was silently ignored. Now it has meaning. (user: drh, tags: vacuum-attached-db)
2016-08-18
22:44
[d6e3d579] Add the SQLITE_DBCONFIG_MAINDBNAME interface. (user: drh, tags: dbconfig_maindbname)
22:19
[cb9865e1] Change the name of Db.zName to Db.zDbSName for improved long-term code maintainability. (user: drh, tags: trunk)
20:56
[d7cf423c] Closed-Leaf: Fix a zName to zDbSName conversion missed in the previous check-in. (user: drh, tags: zDbSName)
19:04
[936146b1] Fix a SQL NULL handling bug in the vector IN operator code generation. (user: drh, tags: rowvalue)
18:09
[3b27a5da] Display SELECT_COLUMN expressions in the .wheretrace debugging output. (user: drh, tags: rowvalue)
17:55
[157347e2] Display VECTOR expressions in .wheretrace and .selecttrace debugging output. (user: drh, tags: rowvalue)
15:36
[b40b202c] Since the TK_VECTOR token is not actually used by the parser, make it an extra token code added by the tool/addopcodes.tcl script during parser build. (user: drh, tags: rowvalue)
15:21
[4768a106] Merge recent enhancements from trunk. (user: drh, tags: rowvalue)
15:15
[e2ad0b5d] Simplify the vector comparison code generator logic, and the resulting VDBE code. (user: drh, tags: rowvalue)
14:47
[184ecbe9] Adjust some tests to account for recent changes to the fts5 snippet function. (user: dan, tags: fts5-snippet-bias)
14:33
[92a22f01] Rename the Db.zName field to Db.zDbSName to make it more descriptive and to distinguish it from all of the other "zName" variables scattered throughout the code. (user: drh, tags: zDbSName)
2016-08-17
19:05
[60de1594] Bias the fts5 snippet() function to return snippets that look like they start at the start of sentences. (user: dan, tags: fts5-snippet-bias)
11:14
[a861713c] Fix a problem in the fts5 snippet() auxiliary function. (user: dan, tags: trunk)
2016-08-16
16:46
[f9035b8e] Fix a bug in destructor processing of Lemon. That has no impact on the SQLite grammar. The bug was introduced by prior work to optimize the Lemon-generated parser used by SQLite. (user: drh, tags: trunk)
2016-08-13
14:30
[c7a9f26d] Leaf: Questionable changes to support interruptible checkpoint in ZipVFS. (user: dan, tags: interruptible-checkpoint)
14:17
[c54bd9c8] Closed-Leaf: Remove an unnecessary stack variable from sqlite3VdbeExec(). (user: drh, tags: vector-compare)
13:03
[18f5a3be] Improvements to commits. No code changes. (user: drh, tags: vector-compare)
12:37
[ec70a67e] Fix to the vector less-than operator. All legacy tests passing now. (user: drh, tags: vector-compare)
10:34
[e22252e1] Fix an fts5 problem with corrupt database handling found by address-sanitizer. (user: dan, tags: trunk)
10:02
[dfc028cf] Attempt to simplify the logic and generated code for vector comparisons. Basic comparison operators are working, but there are many indexing test failures still to be worked through. (user: drh, tags: vector-compare)
06:38
[fcfbee6c] Fix a buffer overread in fts5. (user: dan, tags: trunk)
2016-08-12
16:21
[8a5f41c7] Have wal file checkpoints exit early if the sqlite3_interrupt() API function is called. (user: dan, tags: interruptible-checkpoint)
11:25
[381aa731] Add VdbeCoverage() macros on newly added VDBE branch operations. (user: drh, tags: rowvalue)
11:01
[14009b32] Fix a post-OOM memory leak. (user: drh, tags: rowvalue)
2016-08-11
19:12
[d9f8918c] Merge version 3.14 plus some subsequent patches (including the page-cache performance patch) from trunk. (user: drh, tags: begin-concurrent)
18:53
[a12d8059] Version 3.14.1 (user: drh, tags: release, branch-3.14, version-3.14.1)
18:05
[ed406d31] Add the "modeof=<filename>" URI parameter to os_unix.c - used to specify a file to copy permissions from when a new database is created. Also allow passing NULL as the second parameter to sqlite3rbu_vacuum(). (user: dan, tags: trunk)
13:51
[1adb22f5] Fix a 1 byte buffer overwrite in the "sqldiff --rbu" command. (user: drh, tags: branch-3.14)
13:08
[34aed3a3] Increase the version number to 3.14.1. (user: drh, tags: branch-3.14)
13:03
[03dceaea] Enhance sqlite3PcacheTruncate() to run faster in the common case where the cutoff is just a few pages less than the page number highwater mark. (user: drh, tags: branch-3.14)
12:31
[959677b9] Merge recent changes from trunk. (user: drh, tags: rowvalue)
12:01
[8278be06] Fix some problems with handling "no such collation sequence" errors. (user: dan, tags: rowvalue)
09:55
[ab83d707] Fix a 1 byte buffer overwrite in the "sqldiff --rbu" command. (user: dan, tags: trunk)
01:24
[2ea0c8b4] Fix a harmless compiler warning in FTS5. (user: drh, tags: trunk)
2016-08-10
20:02
[95493058] Optimization to sqlite3WhereExprUsage(). (user: drh, tags: trunk)
19:43
[7319d676] List of MATCH operator names in isMatchOfColumn() should be constant. (user: drh, tags: trunk)
18:56
[ebccbd96] Performance enhancement in the expression walker. (user: drh, tags: trunk)
15:02
[059f4e2e] Tweaks to pcache1TruncateUnsafe() to make it slightly smaller and faster and easier to test. (user: drh, tags: trunk)
14:40
[25d1d02b] Rearrange the code inside sqlite3RunParser() routine so that sqlite3Parser() is only called from a single place. This allows sqlite3Parser() to be in-lined, which results in a 0.25% overall performance gain. (user: drh, tags: trunk)
13:34
[8c2701e7] Increment the version number to 3.15. (user: drh, tags: trunk)
13:30
[83622f3f] Improved comments on the lempar.c parser template. Adjust the YY_SHIFT_USE_DFLT constant in the Lemon-generated parser tables so as to guarantee that it is always out of range of the yy_lookahead[] table. (user: drh, tags: trunk)
11:50
[b07a26df] Fix pcache1TruncateUnsafe() run faster for the case where iLimit is very close to iMaxKey. (user: drh, tags: trunk)
03:35
[9ab53605] Leaf: Try to make pcache1TruncateUnsafe() run faster for the case where iLimit is very close to iMaxKey. (user: drh, tags: debug)
02:54
[5980e625] Remove all timers and other debugging logs except for the one timer on pcache1TruncateUnsafe(). (user: drh, tags: debug)
01:43
[ba6663be] Performance optimization in the yy_find_shift_action() routine of the Lemon-generated parser. (user: drh, tags: trunk)
2016-08-09
21:08
[f0942c36] Closed-Leaf: Prototype for the remember(V,PTR) extension function. (user: drh, tags: rememberFunc)
21:01
[9a5a4f6e] Fix harmless compiler warning. (user: drh, tags: trunk)
19:48
[14864f2b] Minor update to the way fts5 column filters are parsed. (user: dan, tags: trunk)
19:26
[e5175456] Have fts5 interpret column lists that begin with a "-" character as "match any column except" lists. (user: dan, tags: trunk)
11:44
[42ce53f6] Add another timer on pcache1TruncateUnsafe(). (user: drh, tags: debug)
11:23
[7d0af4b5] Add a debug timer to pcache1Truncate(). Change the formatting of some other messages to make them easier to read. (user: dan, tags: debug)
05:48
[ea03e219] Add rowvalue5.test, which should have been part of the previous commit on this branch. (user: dan, tags: rowvalue)
01:21
[9d4eb6e4] Refocus the timer on the pager_end_transaction() routine. (user: drh, tags: debug)
2016-08-08
20:15
[156a41f3] Fix some cases involving row values and virtual tables. (user: dan, tags: rowvalue)
18:42
[bb606511] Fix the EXPLAIN QUERY PLAN output for row value range constaints that use an index. (user: dan, tags: rowvalue)
16:52
[0e927a7e] Merge trunk changes with this branch. (user: dan, tags: rowvalue)
14:21
[c3cd543f] Merge all changes from the 3.14 release. (user: drh, tags: apple-osx)
13:40
[d5e98057] Version 3.14 (user: drh, tags: trunk, release, version-3.14.0)
2016-08-07
18:52
[ebc396a1] Fix documentation typos. No changes to code. (user: drh, tags: trunk)
2016-08-05
20:54
[95578898] Have the TEA package build without SQLITE_OMIT_DEPRECATED. As it uses recently deprecated interfaces sqlite3_profile() and sqlite3_trace(). (user: dan, tags: trunk)
16:16
[ae72513a] Undo commit [f250166bb]. It is required to handle IO and other errors that occur within a VACUUM of a Zipvfs database. (user: dan, tags: trunk)
15:34
[0f57effa] Remove an incorrect ALWAYS() statement and add a test case to show when the condition is sometimes false. (user: drh, tags: trunk)
14:35
[68eac748] Fix a very obscure problem following OOM in sqlite3_declare_vtab(). (user: drh, tags: trunk)
2016-08-04
14:08
[491f1ef3] Add extra logging calls to this branch. (user: dan, tags: debug)
13:39
[dacfff51] Merge all recent enhancements from trunk. (user: drh, tags: apple-osx)
13:23
[9adda385] Revert the SQLITE_APICALL changes for now. That changes needs further research before it is released. Deferred until 3.15. (user: drh, tags: trunk)
12:35
[b7f30a9f] Add the experimental SQLITE_ENABLE_UNKNOWN_SQL_FUNCTION compile-time option. When enabled, the "unknown function" error is suppressed for EXPLAIN and a no-op function named "unknown()" is substituted. This facilitiates using the command-line shell to analyze queries from applications that contain many application-defined functions that are not normally available to the shell. (user: drh, tags: trunk)
12:33
[e22ca3cd] Add the experimental SQLITE_ENABLE_UNKNOWN_SQL_FUNCTION compile-time option. When enabled, the "unknown function" error is suppressed for EXPLAIN and a no-op function named "unknown()" is substituted. This facilitiates using the command-line shell to analyze queries from applications that contain many application-defined functions that are not normally available to the shell. (user: drh, tags: apple-osx)
09:13
[bf5a9542] Merge the ORDER BY LIMIT fix, and other enhancements, from trunk. (user: drh, tags: apple-osx)
09:09
[13e3bd3d] Make sure the ORDER BY LIMIT optimization is not applied if the inner-most loop can only have a single iteration and is hence not really a loop. (user: drh, tags: trunk)
01:47
[4ada023c] Closed-Leaf: Add an experimental SQLITE_ENABLE_UNKNOWN_SQL_FUNCTION compile-time option. This changes has been merged into main branches via cherry-pick. (user: drh, tags: unknown-function)
2016-08-03
18:00
[3c2f908f] Fix a problem with estimating the number of rows visited by a query that uses a multi-column IN(SELECT...) constraint. (user: dan, tags: rowvalue)
16:39
[1559f4c4] Fix another problem involving vector range constraints and mixed ASC/DESC indexes. (user: dan, tags: rowvalue)
16:14
[18af74ab] Fix stat4-based cost estimates for vector range constraints. (user: dan, tags: rowvalue)
14:51
[722c1281] Fix a typo in a comment in btree.c. No changes to code. (user: drh, tags: trunk)
13:40
[b91444b5] Fix the --help output on fuzzcheck so that it fix in an 80-character window. (user: drh, tags: trunk)
2016-08-02
20:45
[e496b2d6] Add new test file rowvaluefault.test. (user: dan, tags: rowvalue)
20:42
[e2f9919e] Fix a unused variable that comes up with -DSQLITE_OMIT_DATETIME_FUNCS. (user: drh, tags: trunk)
19:29
[50de9631] The 'replace.tcl' tool should use Unix line-endings. (user: mistachkin, tags: trunk)
18:50
[092b1c5f] Add tests and fixes for vector operations that use sub-queries with different combinations of LIMIT, OFFSET and ORDER BY clauses. (user: dan, tags: rowvalue)
17:45
[339f85f4] Fix SQLITE_OMIT_SUBQUERY builds. (user: dan, tags: rowvalue)
17:07
[e2ad30c8] Fix a problem with vector range constraints and mixed ASC/DESC indexes. (user: dan, tags: rowvalue)
16:24
[d468101b] Merge latest trunk changes into this branch. (user: dan, tags: rowvalue)
16:18
[6937677c] Add missing comments and make some code on this branch clearer. (user: dan, tags: rowvalue)
13:26
[b23c10ac] Updates to requirements marks. No changes to code. (user: drh, tags: trunk)
11:29
[e64a4173] Fix a problem introduced by [77948b5eceab92a7] causing duplicate calls to be made to the xSavepoint() method of virtual tables under some circumstances. (user: dan, tags: trunk)
08:45
[7c38a79c] Fix harmless compiler warnings in sqlite3_status(). (user: drh, tags: trunk)
2016-08-01
21:17
[d8ef9f58] Update the wordcount.c test program and add a new script "time-wordcount.sh" for additional performance testing. (user: drh, tags: trunk)
20:14
[3ef75d45] Fix a problem with vector range constraints involving the rowid column. And other issues. (user: dan, tags: rowvalue)
17:06
[90d2c490] Fix other harmless compiler warnings. (user: drh, tags: trunk)
16:57
[fd184e5a] Remove a duplicate typedef from loadext.c (remaining copy is in sqlite3ext.h). (user: dan, tags: trunk)
16:50
[e57fa6af] Add an extra compiler switch to loadext.test to ensure that it picks up the correct version of sqlite3.h when building a test extension. (user: dan, tags: trunk)
16:37
[1f4dba87] Fix a problem with IN(...) constraints where the LHS is a sub-select that is an aggregate query. (user: dan, tags: rowvalue)
15:00
[a6a112de] Update releasetest.tcl to automatically do one round of tests with USE_STDCALL=1 when running on Windows with MSVC. (user: drh, tags: trunk)
14:35
[b6ea2f21] Avoid making unnecessary changes to the signatures of the sqlite3_auto_extension() and sqlite3_cancel_auto_extension() interfaces. (user: drh, tags: trunk)
2016-07-30
21:02
[059d0d05] Fix problems with vector == comparisons and NULL values. (user: dan, tags: rowvalue)
18:54
[390a38a1] Fix harmless compiler warning seen with MSVC. (user: mistachkin, tags: trunk)
17:59
[63ae02d0] Merge latest trunk with this branch. (user: dan, tags: rowvalue)
16:39
[e9d9c6d4] Remove the EP_Vector expression flag. (user: dan, tags: rowvalue)
03:33
[92b9fead] A new version of the slow mutex log that uses gettimeofday() instead of trying to access the hardware timer. (user: drh, tags: debug)
2016-07-29
20:58
[42607366] Fix some issues with vector range constraints and the column cache. Also vector range constraints and rowid columns. (user: dan, tags: rowvalue)
18:12
[4dfebff2] Change the way "(a, b) = (SELECT *)" expressions are handled in where.c if there is an index on one of the columns only. (user: dan, tags: rowvalue)
17:36
[9fae75c0] Using the header file 'intrin.h' requires MSVC 2005 or later. (user: mistachkin, tags: trunk)
16:32
[ea3c7162] Turn memory status off by default. (user: drh, tags: debug)
14:31
[e60cb6d8] Enhance a debugging log message to better identify a mutex. (user: dan, tags: debug)
14:23
[7d4562e9] Use __sync_synchronous(), when available, instead of a mutex when a memory barrier is needed. (user: drh, tags: debug)
14:10
[33c7ef7a] Add calls to sqlite3_log() when sqlite3_mutex_enter() takes more than 100,000 CPU cycles. (user: drh, tags: debug)
04:12
[544c990a] For test 'shell1-5.0', disable round-trip testing for characters in the range 0xE0 to 0xEF on Linux, due to intermittent shell portability issues. (user: mistachkin, tags: trunk)
02:04
[4fedd790] Fix typo in a test file interactive output string. (user: mistachkin, tags: trunk)
01:55
[8b0eb22e] Merge additional linkage macro changes from the branch. (user: drh, tags: trunk)
01:49
[45588de3] Further refinement to the calling convention macros. (user: drh, tags: trunk)
01:47
[71ffa195] Merge updates from trunk. (user: mistachkin, tags: callbackConv)
01:46
[2daf2098] Update the autoconf makefile for MSVC. (user: mistachkin, tags: callbackConv)
01:32
[c7d51934] Undo some unhelpful changes to skip-scan scoring that were added by the check-in [9e2b2681] that improved scoring of index scan. (user: drh, tags: trunk)
01:31
[bc8c9b55] Add macro necessary for building several extensions when the __stdcall calling convention is not in use. (user: mistachkin, tags: callbackConv)
2016-07-28
23:58
[fc5c1876] Missed a couple Tcl command deletion callbacks. (user: mistachkin, tags: callbackConv)
23:54
[df254365] Use the SQLITE_TCLAPI macro in several extensions that were missed in the previous check-in. (user: mistachkin, tags: callbackConv)
22:53
[b8218129] More compiler warning fixes for GCC related to the auto-extension mechanism. (user: mistachkin, tags: callbackConv)
22:46
[bf9c86c7] The return type used by the auto-extension entry points is 'int', not 'void'. (user: mistachkin, tags: callbackConv)
22:38
[87ba69b5] Make sure all the auto-extension mechanism function signatures match up precisely. (user: mistachkin, tags: callbackConv)
22:23
[3ea567c4] Make the extension auto-loading mechanism work with the __stdcall calling convention. Also, fix a couple Tcl command calling conventions missed in the previous check-in. (user: mistachkin, tags: callbackConv)
19:47
[cc3f6542] Fix further issues with multi-column IN(...) operators. Also some error handling cases surrounding row values. (user: dan, tags: rowvalue)
19:28
[cbe1de47] The 'sqlite3ext.h' content should be processed before being included in the amalgamation. (user: mistachkin, tags: trunk)
18:55
[fd784887] Decorate all interfaces with calling convention macros. (user: drh, tags: trunk)
18:49
[97fc6e43] Closed-Leaf: All SQLite API functions and callbacks in the 'sqlite3ext.h' header file must be decorated with the calling convention. (user: mistachkin, tags: callbackConv)
18:42
[97657445] Merge recent trunk fixes. (user: drh, tags: apple-osx)
18:38
[805d01cd] Disable the authorizer callback when reparsing the schema. This avoids undesirable authorization failures following an ALTER TABLE. (user: drh, tags: trunk)
18:18
[959cd013] Fixup reserved function pointers in the Tcl stubs table and several macros containing Tcl function pointers. (user: mistachkin, tags: callbackConv)
18:06
[90e89ec9] Adjustments to get 'testfixture.exe' compiling with Tcl 8.6 when __stdcall is enabled. (user: mistachkin, tags: callbackConv)
17:24
[81f9cf86] Improvements to the way the COMPILER compile-time option is set when compiling with Clang. (user: drh, tags: trunk)
17:11
[f2f1323c] Make sure the SQLITE_TCLAPI macro is always defined and use it for all callback functions that must interface with the Tcl C API. (user: mistachkin, tags: callbackConv)
16:09
[36b72fd6] More work on getting the 'testfixture.exe' target to work correctly. (user: mistachkin, tags: callbackConv)
15:38
[478a84ef] Modify the mksqlite3h.tcl tool to handle the syscall typedef specially. (user: mistachkin, tags: callbackConv)
15:09
[11ab9c9a] Change mksqlite3h.tcl to automatically insert the SQLITE_CALLBACK calling convention macros. (user: drh, tags: callbackConv)
14:37
[e8be3dfe] Allow the 'testfixture.exe' target to be compiled with the __stdcall calling convention. (user: mistachkin, tags: callbackConv)
13:59
[9685880f] Merge latest trunk changes into this branch. (user: dan, tags: rowvalue)
12:52
[6feff15c] New test case to insure legacy CREATE TABLE syntax is supported. (user: drh, tags: trunk)
04:14
[02b8040e] Work in progress on setting a calling convention for all callback functions. (user: mistachkin, tags: callbackConv)
2016-07-27
19:33
[719a3b20] Fix some problems with multi-column IN(SELECT...) processing. (user: dan, tags: rowvalue)
19:30
[9e2b2681] Enhance the query planner cost estimation for index scans to take into account WHERE clause terms that can be computed using only the index and that do not require looking up rows in the original table. This fixes an obscure performance regression that arose when the ORDER BY LIMIT optimization was added by check-in [bf46179d44843]. (user: drh, tags: trunk)
19:20
[50f8ea37] Closed-Leaf: Add test cases and fix a comment. (user: drh, tags: improved-index-scan)
18:27
[a59b5622] When estimating the cost of an index scan, factor in the cost savings of being able to use the index to evaluate some WHERE clause terms without having to do a table lookup. (user: drh, tags: improved-index-scan)
16:03
[4d59df02] Initialize a variable in where.c to avoid a valgrind warning. (user: dan, tags: trunk)
2016-07-26
18:15
[d4f3d52c] Merge latest trunk changes into this branch. (user: dan, tags: rowvalue)
18:06
[061b8006] Fix where.c handling of "IN (SELECT ...)" expressions when the SELECT returns more than one result column. Also error handling for other row value constructor cases. (user: dan, tags: rowvalue)
15:17
[91e811f5] Merge fixes to sqlite3_scrub_backup() from trunk. (user: drh, tags: apple-osx)
10:46
[483994a5] Ensure that the sqlite3_scrub_backup() extension creates a backup database at least as large as indicated by the database header, even if the last page of the input database is a free-list leaf. (user: dan, tags: trunk)
04:54
[cc6bfdf8] Merge the cache_spill VACUUM fix from trunk. (user: drh, tags: apple-osx)
04:49
[c0e7d98e] Copy the cache_spill setting from the main database over to the vacuum_db transient database when running a VACUUM. (user: drh, tags: trunk)
04:31
[b819bace] Make sure affinity is applied correctly on lower-bound range constraints in the min() optimization. Fix for ticket [a0bac8b3c3d1bb]. (user: drh, tags: trunk)
04:23
[0e9f534f] Make sure affinity is applied correctly on lower-bound range constraints in the min() optimization. Fix for ticket [a0bac8b3c3d1bb]. (user: drh, tags: apple-osx)
2016-07-25
22:46
[cdb7efd0] Merge the VACCUM cache_size adjustment from trunk. (user: drh, tags: apple-osx)
22:40
[b78d9954] In the VACUUM command, set the cache_size of the transient vacuum_db database to be the same as the database being vacuumed. (user: drh, tags: trunk)
21:11
[a495f8e7] Fix a test case in FTS5 to make it compatible with Tcl 8.5. (user: drh, tags: trunk)
18:50
[68ecd8e0] Add the experimental SQLITE_VACUUM_CACHE_SIZE macro. (user: drh, tags: apple-osx)
17:31
[e98cefb1] Merge 3.14 alpha changes from trunk. (user: drh, tags: apple-osx)
16:10
[8dcb9d50] Minor test infrastructure changes to better support SEE testing. (user: drh, tags: trunk)
14:40
[38a48cfb] Add a new %ifdef to parse.y so that the build works with SQLITE_OMIT_SUBQUERY. (user: drh, tags: trunk)
14:20
[9e7bedee] Changes to test scripts to get them all running on OpenBSD. (user: drh, tags: trunk)
12:10
[d6f6c87c] Disable the DBSTATUS_CACHE_USED_SHARED tests on mac when memsys3/5 is disabled due to differences in the allocation sizes for the Darwin memory allocator. (user: drh, tags: trunk)
12:01
[ea7fb98b] Update the vacuummem.test script so that it works on mac as well as on linux. (user: drh, tags: trunk)
11:57
[ccc22e14] If both MEMSYS3 and MEMSYS5 are enabled, than automatically disable MEMSYS3. (user: drh, tags: trunk)
11:39
[5f40e6ad] Another attempt at getting --enable-memsysN working. (user: drh, tags: trunk)
11:32
[67955255] Fix the --enable-memsysN options in configure so that they actually work. (user: drh, tags: trunk)
11:27
[67e1dc98] Add --enable-memsys3 and --enable-memsys5 options to the configure script. (user: drh, tags: trunk)
02:42
[e1e02238] Evidence marks and code reformatting for SQLITE_TRACE_STMT operation. (user: drh, tags: trunk)
02:31
[163e1522] Change SQLITE_TRACE_STMT to return unexpanded SQL text in the X argument. Add documentation on how and when to use sqlite3_expanded_sql(P) to compute the expanded text for legacy sqlite3_trace() compatibility. (user: drh, tags: trunk)
00:05
[1c5baae3] Fix code so that the deprecated sqlite3_trace() and sqlite3_profile() interfaces are not called when SQLITE_OMIT_DEPRECATED is used. (user: drh, tags: trunk)
2016-07-23
20:27
[c8e0539b] Use sqlite3_trace_v2() instead of sqlite3_trace() in the shell. (user: drh, tags: trunk)
20:24
[e2fd6f49] Allow vector IN(SELECT ...) expressions to use an index if either all the indexed columns are declared NOT NULL or if there is no difference between the expression evaluating to 0 and NULL (as in a WHERE clause). (user: dan, tags: rowvalue)
19:34
[269892ab] Add the json_quote() function to the JSON1 extension. (user: drh, tags: trunk)
19:18
[8817dedb] Small tweak to the btree balancer for improved tree balance. (user: drh, tags: trunk)
14:50
[d0bcaf0c] Fix recently added tests so that they work in all configurations. (user: drh, tags: trunk)
05:22
[99a6c518] Add the sqlite3_expanded_sql() and sqlite3_trace_v2() interfaces. (user: drh, tags: trunk)
04:58
[0400f642] Closed-Leaf: Improvements to sqlite3_trace_v2() documentation. Fix the sqlite3VdbeExpandSql() routine to respond better to OOM conditions. (user: drh, tags: sqlite3_trace_v2)
02:07
[ebd388e9] Add requirements marks to the sqlite3_trace_v2() interface documentation. (user: drh, tags: sqlite3_trace_v2)
00:43
[5a027fe4] Fix sqlite3VdbeExpandSql() so that it handles OOMs by always returning NULL. (user: drh, tags: sqlite3_trace_v2)
2016-07-22
21:35
[f50a3fd6] Revise a warning fix from the previous check-in to improve clarity. Also, fix an incorrect test prefix (typo). (user: mistachkin, tags: trunk)
21:26
[8bb6e6fc] Fix harmless compiler warnings seen with MSVC. (user: mistachkin, tags: trunk)
20:45
[527b5ba6] Be sure to hold the database connection mutex while calling sqlite3VdbeExpand() from within sqlite3_expanded_sql(). (user: drh, tags: sqlite3_trace_v2)
20:20
[409535e6] Add requirements marks to the sqlite3_expanded_sql() documentation. (user: drh, tags: sqlite3_trace_v2)
17:58
[60fed5cd] Merge latest trunk changes with this branch. (user: dan, tags: rowvalue)
10:09
[87e25fc4] Fix a problem with upper case module names in the "sqldiff --vtab" command. (user: dan, tags: trunk)
2016-07-21
18:02
[bf98a2de] Add extra test cases to verify the fix in [64ca1a835]. (user: dan, tags: trunk)
16:43
[1b1ad0b2] Add new test file vacuummem.test. To test that any temporary memory used by VACUUM is freed as soon as the VACUUM has finished (not, for example, when sqlite3_close() is finally called). (user: dan, tags: trunk)
2016-07-16
11:47
[613c1cea] Temporarily add extra sqlite3_log() calls to this version to help with debugging a performance problem. (user: dan, tags: debug)
2016-07-15
19:17
[d0a1cf1c] Add the largely untested SQLITE_FTS5_NO_WITHOUT_ROWID compile time option to fts5. For building a dynamically loadable extension that does not use WITHOUT ROWID. (user: dan, tags: trunk)
10:01
[53c25ebe] The sqlite3_expanded_sql() function compiles, but always returns NULL, when the SQLITE_OMIT_TRACE compile-time option is used. (user: drh, tags: sqlite3_trace_v2)
02:55
[d2b1fa55] Merge fixes from trunk. Fix the tclsqlite.test script. (user: drh, tags: sqlite3_trace_v2)
02:50
[ec718089] Disable the CSV extension when virtual tables are disabled. (user: drh, tags: trunk)
01:49
[e03c8189] Modify the Tcl test command 'sqlite3_bind_blob' to make use of the Tcl_GetByteArrayFromObj() API. (user: mistachkin, tags: sqlite3_trace_v2)
00:39
[97ccf15f] Fix typo in sqlite3_trace_v2(). (user: mistachkin, tags: sqlite3_trace_v2)
00:23
[20e74c63] Corrections and enhancements for the new tests. (user: mistachkin, tags: sqlite3_trace_v2)
00:09
[5ccbeeea] Modify one test result to be case-insensitive. (user: mistachkin, tags: sqlite3_trace_v2)
00:07
[8b8c0b74] Add tests, including some for the sqlite3_expanded_sql() API. (user: mistachkin, tags: sqlite3_trace_v2)
2016-07-14
23:17
[f3c4aa97] More work on the Tcl interface and tests for the sqlite3_trace_v2() API. (user: mistachkin, tags: sqlite3_trace_v2)
21:26
[7b59fa40] Initial work on the Tcl API interface to the new sqlite3_trace_v2() function. (user: mistachkin, tags: sqlite3_trace_v2)
20:19
[46bd9533] Leaf: Experimental patch restore the slight bias in btree-balancing immediately after the change to reduces the amount of memcpy() work done by balancing. (user: drh, tags: btree-balance-bias)
19:48
[d2a0af7a] Closed-Leaf: Minor tweak the the b-tree balancer. (user: drh, tags: btree-tuning)
19:13
[a7db6e45] Fix ALTER TABLE so that it does not promote the schema version past 3, as that will cause DESC indexes to go corrupt. Ticket [f68bf68513a1c]. (user: drh, tags: trunk)
09:22
[e7d18c70] Fix copy/paste typo in the new sqlite3_expanded_sql() function. (user: mistachkin, tags: sqlite3_trace_v2)
01:13
[989de2d5] Fix a parameter misordering on sqlite3_trace_v2() in the loadable extension interface. (user: drh, tags: sqlite3_trace_v2)
01:09
[99ee7ee5] Add the sqlite3_expanded_sql() interface. Refinements to the sqlite3_trace_v2() interface to make it more useful. (user: drh, tags: sqlite3_trace_v2)
2016-07-13
23:18
[f33526a3] Legacy tests now passing. (user: drh, tags: sqlite3_trace_v2)
22:55
[cb0062fe] First cut at implementing the new sqlite3_trace_v2() interface. (user: drh, tags: sqlite3_trace_v2)
21:30
[0c569f75] Interface design for a new sqlite3_trace_v2() method that supersedes sqlite3_trace() and sqlite3_profile(). (user: drh, tags: sqlite3_trace_v2)
19:48
[34e35c71] Modifications towards better vector IN(...) support on this branch. Not activated yet. (user: dan, tags: rowvalue)
13:05
[824b39e5] Fix harmless compiler warnings in shell.c for NetBSD. (user: drh, tags: trunk)
00:55
[021d0fb8] Fix header comments and remove an unnecessary version restriction from the carray() table-valued function implementation. (user: drh, tags: trunk)
2016-07-12
19:54
[3ef93950] Fix the error counter reset in Lemon generated parsers. This has no effect on SQLite. (user: drh, tags: trunk)
2016-07-10
19:35
[728c5aa4] Merge comment typo fixes from trunk. (user: mistachkin, tags: rowvalue)
19:35
[77c692a6] Fix typos in comments. No changes to code. (user: mistachkin, tags: trunk)
2016-07-09
20:23
[b2204215] Add some support for using row value constructors in certain parts of SQL expressions. There are many bugs on this branch. (user: dan, tags: rowvalue)
17:47
[c869bf34] Add the "#/value-list/" style of results for approximate value matching in the do_test command of the test infrastructure. Use this new result style to make the SQLITE_DBSTATUS_CACHE_SIZE_SHARED tests cross-platform. (user: drh, tags: trunk)
17:15
[29fb988f] Fix a compiler warning in test code - in the int64array_addr TCL command. (user: drh, tags: trunk)
16:38
[8b22f777] Fix compiler warnings on windows. (user: drh, tags: trunk)
16:14
[5471aca0] Fix various internal #defines to conform to new C-language naming restrictions, specifically that private-use macros names must not begin with "_". (user: drh, tags: trunk)
00:06
[b5f32a89] Add support for the win32-none VFS. (user: drh, tags: trunk)
2016-07-08
21:14
[549abe3f] Closed-Leaf: Initial work on a Win32 VFS with NOP locking. (user: mistachkin, tags: win32nolock)
19:54
[e1d8ef31] Another attempt to fix error handling in Lemon. This change is a no-op for SQLite's usage. (user: drh, tags: trunk)
02:14
[8bb8d886] In the sqldiff program, make sure the first argument to the db_prepare() utility function is always a valid format string. (user: drh, tags: trunk)
2016-07-06
18:42
[06cf2680] Add the SQLITE_DBSTATUS_CACHE_USED_SHARED sqlite3_db_status() parameter. This option is similar to DBSTATUS_CACHE_USED, except that it divides memory used by shared caches evenly between all connections. (user: dan, tags: trunk)
18:12
[d58401ab] Closed-Leaf: Change the name of the SQLITE_DBSTATUS_PROPORTIONAL_CACHE_USED to SQLITE_DBSTATUS_CACHE_USED_SHARED. (user: dan, tags: dbstatus-prop-cache-used)
10:17
[0c228f5d] Fix a test script problem causing a test to fail if the ICU extension is enabled. (user: dan, tags: trunk)
10:12
[118321c8] Add the SQLITE_DBSTATUS_PROPORTIONAL_CACHE_USED sqlite3_db_status() parameter. (user: dan, tags: dbstatus-prop-cache-used)
09:19
[724e4cdc] Fix a memory leak in recently added test code. (user: dan, tags: trunk)
08:32
[2c61b7ab] Fix a typo in test program bc_test1.c. (user: dan, tags: begin-concurrent)
2016-07-05
16:11
[2683b375] More fixes to Lemon so that it automatically resets its error counter at the end of a parse. (user: drh, tags: trunk)
12:47
[91889fa3] Attempt to reset the error count in the Lemon-generated parser after a parse failure. (user: drh, tags: trunk)
2016-07-04
11:47
[0357875f] Add the sqlite3rbu_state() API. Used to determine the current state (creating OAL, ready to move OAL, incremental-checkpoint, finished or error) of an RBU operation. (user: dan, tags: trunk)
11:34
[d8bc6feb] Add the carray() virtual table as a loadable extension. (user: drh, tags: trunk)
2016-07-03
02:35
[a204ba99] Closed-Leaf: Change the name of the intarray() extension to carray() and give it an optional third parameter that specifies the datatype as one of 'int32', 'int64', 'double', or 'char*'. 'int32' is the default. (user: drh, tags: prototype-int-array)
2016-07-02
20:57
[7c3d441f] Fix an off-by-one comparison in the intarray() virtual table. Get the intarray() virtual table tests working using the legacy makefile. (user: drh, tags: prototype-int-array)
20:51
[507fdbfb] Merge the alternative table-valued function RHS of IN operator implementation from trunk. (user: drh, tags: prototype-int-array)
12:33
[bead151e] Fix a problem in table-valued functions on the RHS of an IN operator that occurs following an OOM error. (user: drh, tags: trunk)
12:08
[ac6000f0] Add support for table-valued functions on the RHS of an IN operator. (user: drh, tags: trunk)
2016-07-01
20:12
[228a7879] Fix the transitive constraint logic error that can result in a null pointer dereference. Fix for ticket [e8d439c77685eca6]. (user: drh, tags: trunk)
19:48
[c952af89] Closed-Leaf: Add test cases to the transitive constraint fix. (user: drh, tags: planner-fix)
12:39
[92e7df0f] Closed-Leaf: Add the sqlite3rbu_state() API. Used to determine the current state (creating OAL, ready to move OAL, incremental-checkpoint, finished or error) of an RBU operation. (user: dan, tags: rbu-state-api)
2016-06-29
06:19
[ba1b441b] Add the ability to have a table-valued function on the RHS of an IN operator. (user: drh, tags: prototype-int-array)
05:08
[06e1fab7] Another test case for the intarray($PTR,$N) virtual table. (user: drh, tags: prototype-int-array)
05:00
[233b3338] Add a prototype intarray($PTR,$N) table valued function. (user: drh, tags: prototype-int-array)
2016-06-28
22:27
[a33d2356] Proposed fix for a problem in the query planner. (user: drh, tags: planner-fix)
2016-06-26
04:06
[f8105085] Prevent the WhereLoop.rSetup cost estimate from going negative on complex queries. (user: drh, tags: trunk)
2016-06-25
11:43
[507014e4] Fix the handling of OP_Eq opcodes that compare a register against itself and that require an affinity change. (user: drh, tags: trunk)
2016-06-24
06:23
[77e4f7a3] Fix the ctime.test script so that it works with clang. (user: drh, tags: trunk)
02:50
[67c39e16] Fix the Makefile.in to avoid unnecessary recompiles of sqlite3.c. (user: drh, tags: trunk)
02:21
[a2778ae4] Leaf: Provide for a separate default page size for TEMP and transient database files and initialize that separate default page size to 1024 instead of 4096. (user: drh, tags: temp-page-size)
2016-06-23
16:48
[b8671e94] Update the sqldiff utility so that if the --vtab switch is specified "rtree", "fts3", "fts4" and "fts5" tables are diff'd directly and the underlying real database tables ignored. Without this switch, all virtual tables are ignored and the diff is performed on the underlying real tables. (user: dan, tags: trunk)
12:35
[91113142] Fix the build for -DSQLITE_OMIT_VIRTUALTABLE (user: drh, tags: trunk)
2016-06-21
10:34
[5d0a9d4c] Closed-Leaf: Update the sqldiff utility so that if the --vtab switch is specified "rtree", "fts3", "fts4" and "fts5" tables are diff'd directly and the underlying real database tables ignored. Without this switch, all virtual tables are ignored and the diff is performed on the underlying real tables. (user: dan, tags: sqldiff-vtab-support)
2016-06-20
17:25
[913e5956] For a table on the rhs of a LEFT JOIN operator, do not include terms like "IS NULL" from the WHERE clause in the cursor-hint. These may be false for rows that the cursor would otherwise visit, but true for a row of all NULL values generated by the LEFT JOIN. (user: dan, tags: trunk)
17:22
[7455d932] Closed-Leaf: Allow LIKE operators that appear in a WHERE clause to be included in the cursor-hint for a cursor on the rhs of a LEFT JOIN. (user: dan, tags: cursor-hints)
2016-06-17
19:27
[998095ab] Include WHERE terms in the cursor-hint passed to a cursor opened for the rhs of a LEFT JOIN iff we can be sure that those terms will not evaluate to true if the LEFT JOIN generates a row of NULLs. (user: dan, tags: cursor-hints)
14:59
[fcd12b69] Fix a duplicate test name in cursorhint2.test. (user: dan, tags: cursor-hints)
14:47
[c1a5a57c] Fix a typo in the cursorhint2.test script. (user: dan, tags: cursor-hints)
14:33
[2a2346b0] If a table is on the rhs of a LEFT JOIN, include only terms from the joins ON(...) clause in the cursor-hint passed via OP_CursorHint. (user: dan, tags: cursor-hints)
13:01
[2c3714ae] Closed-Leaf: Add the json_quote() function to the JSON1 extension. (user: drh, tags: json_quote)
2016-06-16
17:14
[0b1579ca] Add a missing OP_ColumnsUsed opcode to code for expressions like "? IN (SELECT ...)" in cases where expression can use an index that may contain NULL values. (user: dan, tags: trunk)
11:16
[48b555c4] Fix a typo in a comment on the SrcList object. (user: drh, tags: trunk)
2016-06-15
10:21
[0f707d15] Merge changes from trunk. (user: drh, tags: apple-osx)
2016-06-13
19:58
[0230ca17] Fix RBU so that it builds with -DSQLITE_ENABLE_8_3_NAMES. Fix "PRAGMA compile_options" for SQLITE_ENABLE_8_3_NAMES such that it reports the numeric setting: "1" or "2". (user: drh, tags: trunk)
15:59
[a1e1cdc5] Fix the declaration of the table implemented by DBSTAT so that it uses correct datatypes. (user: drh, tags: trunk)
12:51
[fcf6114b] Fix an incorrect assert() in the btree logic. (user: drh, tags: trunk)
12:34
[d362ba15] Fix the "onecolumn" and "exists" methods of the TCL interface so that they work in combination with the "profile" callback. (user: drh, tags: trunk)
2016-06-10
22:49
[53a1e5d5] Enhance "PRAGMA table_info" to that it provides information about eponymous virtual tables. (user: drh, tags: trunk)
2016-06-08
18:07
[fe187432] Prefer to use partial indexes for full table scans when that is possible. (user: drh, tags: trunk)
14:04
[f48a4ad3] Add the "dbhash.exe" utility program that computes a SHA1 hash over the invariant content of an SQLite database file. Free space in the file, the page size, auto_vacuum status, text encoding, and so forth do not change the hash. Only the content matters. (user: drh, tags: trunk)
13:59
[fb276815] Closed-Leaf: Fix an undersized buffer in the SHA1 implementation. (user: drh, tags: dbhash)
13:49
[44f157e0] Fix the dbhash utility so that it ignores the root page number when hashing the sqlite_master table. Add new command-line options. Add the ability to hash multiple databases with a single command. (user: drh, tags: dbhash)
01:03
[2247649c] An initial attempt at a "dbhash" command-line utility. (user: drh, tags: dbhash)
2016-06-07
20:25
[2091a4c9] Fix the walcrash4.test test module so that it works on windows. (user: drh, tags: trunk)
2016-06-06
20:36
[e404ad70] In winFullPathname, translate '/X:' to 'X:' before doing anything else. (user: mistachkin, tags: trunk)
20:27
[f8470ffc] Translate filenames of the form "/c:/*" into just "c:/*" on WinRT and Cygwin. (SQLite has long done this for Win32/WinNT.) (user: drh, tags: trunk)
18:17
[3665a2f5] Fix lempar.c so that the shift-reduce optimization works for error processing. This is a Lemon issue only and has no impact on SQLite. (user: drh, tags: trunk)
13:24
[45531654] Initialize the yyerrcnt variable in the lemon parser template. This has no effect on SQLite itself. (user: drh, tags: trunk)
01:54
[e106a77d] Small performance boost and size decrease in sqlite3BtreeMovetoUnpacked(). (user: drh, tags: trunk)
01:48
[5fb0c354] Small performance improvement in the LIKE function. (user: drh, tags: trunk)
01:14
[2d831074] Btree interface refactoring: (1) The sqlite3BtreeKeySize() interface is renamed to sqlite3BtreeIntegerKey() and modified to work only for table btrees with a rowid. (2) The sqlite3BtreeDataSize() interface is renamed to sqlite3BtreePayloadSize() and modified to work with any btree. (3) The sqlite3BtreeDataFetch() and sqlite3BtreeKeyFetch() routines are combined into a single sqlite3BtreePayloadFetch() routine. The result of these changes is a smaller binary and fewer CPU cycles needed to run queries. (user: drh, tags: trunk)
2016-06-04
21:05
[5e269c2d] Closed-Leaf: Improved comment on cursorOwnsBtShared(). No changes to code. (user: drh, tags: btree-refactor)
20:58
[aa53a36e] Fix a C99-ism and a compiler warning for MSVC. (user: drh, tags: btree-refactor)
20:37
[bef35e18] Change the sqlite3BtreeKeySize() interface into sqlite3BtreeIntegerKey() and make it only work for table btrees. Change sqlite3BtreeDataSize() into sqlite3BtreePayloadSize() and make it work for all btrees. Combine sqlite3BtreeDataFetch() and sqlite3BtreeKeyFetch() into a single sqlite3BtreePayloadFetch() routine. These changes seem to make the b-tree interface more rational and they reduce both binary size and CPU usage. (user: drh, tags: btree-refactor)
17:12
[b411107a] Allocate KeyInfo objects from lookaside if possible. (user: drh, tags: trunk)
16:33
[9583c0fb] Fix up speedtest1.c so that it will compile and run on SQLite versions prior to 3.6.18 (circa 2009-09-11). (user: drh, tags: trunk)
13:57
[313e990c] Remove an unreachable branch in the UNIQUE constraint parsing. (user: drh, tags: trunk)
2016-06-03
18:59
[fa3a89fc] The OR optimization is usable on virtual tables with LIKE, REGEXP and/or GLOB terms in the WHERE clause. (user: drh, tags: trunk)
18:44
[aa7e9d0c] Add support for virtual tables using a WITHOUT ROWID schema. This merge also includes enhancements to the CSV extension, which is used for testing of the new WITHOUT ROWID virtual table mechanism. (user: drh, tags: trunk)
18:21
[31b83a7d] Closed-Leaf: Fix a memory leak when a WITHOUT ROWID eponymous virtual table is used. (user: drh, tags: without-rowid-vtab)
17:27
[d31c2597] Disallow access to the rowid column on WITHOUT ROWID virtual tables. (user: drh, tags: without-rowid-vtab)
13:35
[5908aa4d] Enhance the sqlite3_load_extension() interface to permit extensions to return SQLITE_OK_LOAD_PERMANENTLY which will prevents unloading when the database connection closes. (user: drh, tags: trunk)
01:01
[3134b326] Performance optimizations on the CSV virtual table. Disallow WITHOUT ROWID virtual tables that have an xUpdate method, for now. (user: drh, tags: without-rowid-vtab)
2016-06-02
23:13
[95f483e8] Add the CSV extension to the test fixture. Fix a memory leak in the CSV extension. Add test cases for the CSV extension, including one that uses a WITHOUT ROWID virtual table participating in the OR optimization. (user: drh, tags: without-rowid-vtab)
17:44
[76919104] Add the data= parameter to the CSV virtual table extension. (user: drh, tags: without-rowid-vtab)
16:22
[a393bbb9] Fix corner cases in the WITHOUT ROWID virtual table logic. (user: drh, tags: without-rowid-vtab)
2016-06-01
10:37
[3bd85fa5] Fix an issue preventing RBU vacuum from working with virtual tables. (user: dan, tags: trunk)
05:02
[f6e95652] Fix compilation issues with the VFS stat extension. (user: mistachkin, tags: trunk)
2016-05-31
21:18
[49638f18] An experimental branch with code that allows virtual tables to be declared as WITHOUT ROWID tables. This might be useful for virtual tables that model external data sources that do not have a convenient way of computing a unique rowid. The current check-in almost works, but there are still serious issues. (user: drh, tags: without-rowid-vtab)
18:44
[28ebeadd] Add the columns=N parameter to the CSV extension. (user: drh, tags: trunk)
18:08
[b93fb2fe] Add the testflags parameter to the csv extension. (user: drh, tags: trunk)
16:22
[00d3570c] Add the "csv" virtual table for reading CSV files, as an extension in the ext/misc/ subfolder. (user: drh, tags: trunk)
2016-05-30
08:28
[64ca1a83] Fix an FTS5 problem (segfault or incorrect query results) with "... MATCH 'x OR y' ORDER BY rank" queries when either token 'x' or 'y' is completely absent from the dataset. (user: dan, tags: trunk)
05:45
[d0d0bab4] Minor tweaks to the bc_test1 test program. (user: dan, tags: begin-concurrent)
2016-05-28
18:53
[242507b4] Closed-Leaf: Experimental change to allow virtual tables to take advantage of LIKE, REGEXP and GLOB terms that are part of OR expressions within WHERE clauses. (user: dan, tags: vtab-experimental)
17:45
[24f258c2] Remove an unnecessary malloc from the vfsstat extension. (user: drh, tags: trunk)
17:23
[d3f99a5e] Closed-Leaf: Enhance the sqlite3_load_extension() interface to permit extensions to return SQLITE_OK_LOAD_PERMANENTLY which will prevent the extensions from unloading when the database connection closes. (user: drh, tags: load-permanently)
15:22
[6a0f2009] Enhance "PRAGMA compile_options" so that it shows the version of the compiler used to generate the executable, for common compilers. (user: drh, tags: trunk)
15:09
[cbf72b04] Update the amalgamation-tarball configure script so that it can use header file "readline/readline.h" with library file "libedit". (user: dan, tags: trunk)
15:03
[3a461043] Closed-Leaf: Enhance the sqlite3_load_extension() API so that the first parameter (the "db" parameter) can be NULL. An extension that is not associated with any database connection remains loaded for the life of the process. (user: drh, tags: persistent-extensions)
14:53
[0987487d] Add the vfsstat.c loadable extension - a VFS shim that measures the amount of I/O, and an eponymous virtual table that is used to extract and view the measurements. (user: drh, tags: trunk)
00:13
[3f710bc3] Closed-Leaf: Clang can define _MSC_VER in some circumstances; therefore, check for Clang first. (user: mistachkin, tags: ctimeCompiler)
2016-05-27
21:13
[7c2cd4b0] Check for Clang before GCC. (user: mistachkin, tags: ctimeCompiler)
20:30
[5c966f20] Remove surplus quotation marks from the COMPILER= compile_options setting for Clang. (user: mistachkin, tags: ctimeCompiler)
19:34
[664c132d] Remove surplus quotation marks from the COMPILER= compile_options setting for GCC. (user: drh, tags: ctimeCompiler)
18:09
[d734e2df] Add basic compiler information to the results of 'PRAGMA compile_options'. (user: mistachkin, tags: ctimeCompiler)
12:30
[71087c12] Improvements to WHERE-clause debug tracing. Show TK_MATCH expressions and show more details on WhereTerm traces. (user: drh, tags: trunk)
04:10
[a9be4c2d] Fix Lemon so that it actually works with -DYYSTACKDEPTH=0. (user: drh, tags: trunk)
01:07
[28d439f8] Fix the Lemon-generated parser so that it compiles with -DYYSTACKDEPTH=0. It does compile now, but there are subtle issues still. (user: drh, tags: trunk)
2016-05-26
20:56
[ffe80a1b] Add a new OP_SeekRowid opcode, that combines the functions of OP_MustBeInt and OP_NotExists. This makes the code slightly smaller and faster. (user: drh, tags: trunk)
20:52
[5528de4a] Add further instrumentation to the bc_test1.c test app. (user: dan, tags: begin-concurrent)
2016-05-25
18:53
[2a41f098] Add the libvers.c tool in the tool/ subdirectory. (user: drh, tags: trunk)
2016-05-24
18:55
[41fd46e2] Enhance Lemon and the parser template so that it can once again build parsers that have no unreachable branches. (user: drh, tags: trunk)
18:50
[61e239bc] Minor change to the walcrash4.test module so that it works when SQLITE_DEFAULT_WAL_SYNCHRONOUS is set to something other than 2. (user: drh, tags: trunk)
16:20
[37de3eab] Fix an obscure problem with transactions written in "PRAGMA synchronous=full" mode on systems that do not support POWERSAFE_OVERWRITE causing an xSync() call to be omitted if the last frame written by a transaction is aligned to a sector boundary. This means that if a power failure or OS crash occurs very soon after such a transaction is committed, it may be lost following system recovery. (user: dan, tags: trunk)
00:40
[3b28b68e] Improvements to the initialization of the push-down automoton for the Lemon-generated parser. Smaller and faster. (user: drh, tags: trunk)
2016-05-23
21:56
[3c2a7705] Use a pointer to the top of the stack rather than an index into the stack in the Lemon-generated parser template, for about 6.6% parser performance gain. (user: drh, tags: trunk)
19:02
[276e92f5] Avoid a minor error message when running RTREE without an sqlite_stat1 table. (user: drh, tags: trunk)
18:27
[9589e937] Closed-Leaf: Fix the rtreeG.test test case. (user: drh, tags: tree-stat1-fix)
18:12
[48526a2f] Fix RTREE so that it does not run queries against the sqlite_stat1 if that table does not exist. (user: drh, tags: tree-stat1-fix)
18:06
[bfbb6dd8] Remove an extra "finish_test" from the end of rtreeC.test. (user: drh, tags: tree-stat1-fix)
16:16
[3ad2531e] Improve the error messages generated by the rtree module when a constraint fails. (user: dan, tags: trunk)
16:15
[a86e782a] Lemon enhancement: avoid unnecessary reduce actions that convert one non-terminal into another but have no side effects. (user: drh, tags: trunk)
14:24
[b91a5b82] Fix comment typos and improve clarity of presention in Lemon. The output should be identical. (user: drh, tags: trunk)
02:57
[815cc2bb] Merge changes from trunk. (user: drh, tags: apple-osx)
00:10
[90411a28] Update the configure script with additional hints on the location of tclConfig.sh, hints needed by the latest versions of Xcode. (user: drh, tags: trunk)
2016-05-21
23:25
[dec13075] More tweaks to improve the performance of the insert logic, slightly. (user: drh, tags: trunk)
20:03
[55f348cd] Simplify the sqlite3BtreeInsert() interface by gathering the five arguments describing the content to be inserted into the new BtreePayload structure, and thus reducing the number of parameters from eight to four. (user: drh, tags: trunk)
19:10
[2ce11667] Remove some unused legacy code from the btree insert logic. (user: drh, tags: trunk)
18:50
[f33aa76f] Use pthreads mutexes and conditions to synchronize threads in bc_test1. (user: dan, tags: begin-concurrent)
12:29
[1dbaf7a1] Yet another minor size reduction and performance increase in the b-tree insert logic. (user: drh, tags: trunk)
11:23
[656aa1ec] Small size reduction and performance increase in the sqlite3BtreeInsert() logic. (user: drh, tags: trunk)
00:45
[8e366f18] Add the shell-script used for routine performance testing. (user: drh, tags: trunk)
2016-05-20
23:51
[96cf821b] Add a simple TCL script for summing cachegrind information for each VDBE opcode. (user: drh, tags: trunk)
21:40
[1765672c] Another optimization on the OP_Column opcode. (user: drh, tags: trunk)
20:58
[9db8f214] Fix typo in comment. (user: mistachkin, tags: trunk)
19:51
[5c157474] Slight performance improvement in the OP_Column opcode. (user: drh, tags: trunk)
18:09
[f250166b] Remove the sqlite3PagerClearCache() routine, which does not accomplish anything useful. (user: drh, tags: trunk)
15:53
[4dc56e86] Performance optimization and size reduction on the freeP4() routine. (user: drh, tags: trunk)
15:24
[1a0d0576] Increase the version number to 3.14.0 since we are already making significant code changes. (user: drh, tags: trunk)
15:15
[3d55d24d] Use sqlite3VdbeAddOp0() to code OP_Expire, to save a few bytes. (user: drh, tags: trunk)
14:54
[9033afbb] Optimizations to link list merge sort code in vdbesort.c, pcache.c, and rowset.c. Resulting binaries are 10 bytes smaller and use 0.03% fewer CPU cycles. (user: drh, tags: trunk)
14:11
[559733b0] For queries with both ORDER BY and LIMIT, if the rows of the inner loop are emitted in ORDER BY order and the LIMIT has been reached, then optimize by exiting the inner loop and continuing with the next cycle of the first outer loop. (user: drh, tags: trunk)
13:44
[ed1b30dc] Closed-Leaf: Set the NULLEQ flag on the sequence counter comparison in the ORDER BY LIMIT optimization, to avoid coverage complaints about not testing the NULL case. (user: drh, tags: orderby-limit)
12:22
[645bd696] Autoconf configure.ac adjustment to try to get it to look for both editline and readline automatically. (user: drh, tags: trunk)
00:21
[08849eab] A few simple test cases for the ORDER BY LIMIT optimization. (user: drh, tags: orderby-limit)
2016-05-19
22:40
[990fe50c] Appears to work now. Needs test cases, more comments, and code optimization. (user: drh, tags: orderby-limit)
22:13
[852d1eda] In a query with both ORDER BY and LIMIT, if the inner loop satisfies the ORDER BY then try to cut short each invocation of the inner loop once the LIMIT has been satisfied. This check-in is a partial implementation only. (user: drh, tags: orderby-limit)
19:31
[58b516e8] Fixup comments on wctrlFlags value definitions. (user: drh, tags: trunk)
18:56
[d0130584] Clean up the WHERE_* macros used for the wctrlFlags parameter on the sqlite3WhereBegin() interface, freeing up some bits to be used for other things. (user: drh, tags: trunk)
17:51
[cf273741] Optimization marks in vdbe.c. No logic changes. (user: drh, tags: trunk)
16:58
[4737cadc] Performance improvement in the OP_Column opcode. (user: drh, tags: trunk)
16:21
[1f577e1f] Add test cases to test some fts3/4 edge case behaviour surrounding the '*' character. (user: dan, tags: trunk)
11:12
[0d773061] Small size reduction and performance improvement in the OP_Column opcode. (user: drh, tags: trunk)
2016-05-18
21:03
[c981ab2a] Add the "scrub" utility program that simultaneously backs-up a live database and erases all deleted content. (user: drh, tags: trunk)
21:01
[915416d1] Omit the unnecessary WHERE_REOPEN_IDX flag in the WHERE interface. (user: drh, tags: trunk)
20:53
[e2e9b985] Merge the 3.13.0 release changes. (user: drh, tags: apple-osx)
10:57
[fc49f556] Version 3.13.0 (user: drh, tags: trunk, release, version-3.13.0)
2016-05-17
21:17
[ab1c5ce5] Closed-Leaf: Enhance the scrub utility program so that it does a FULL checkpoint prior to starting the backup, to ensure that the database file content matches what needs to be backed up without having to look at the WAL file. (user: drh, tags: scrub-backup)
17:11
[5021dfe1] Merge the latest changes from trunk. (user: drh, tags: scrub-backup)
2016-05-16
14:35
[995c084b] Do not run snapshot_fault.test as part of the inmemory_journal permutation. (user: dan, tags: trunk)
13:37
[0d9b82af] Merge recent fixes from trunk. (user: drh, tags: apple-osx)
11:55
[386bcbba] Disable shell.exe test cases for UTF8 filenames as they do not work on MinGW. (user: drh, tags: trunk)
2016-05-13
17:22
[b369980f] Improvements to a comment in the pcache.c file. No changes to code. (user: drh, tags: trunk)
15:22
[771c5411] Remove the unused PGHDR_NEED_READ flag. Add invariant checking (during SQLITE_DEBUG builds only) for the PgHdr object. (user: drh, tags: trunk)
12:12
[3401d9dc] Clarification of the pagerFlushOnCommit() logic. (user: drh, tags: trunk)
11:50
[9495d338] Fix pager_end_transaction() to ensure that a ROLLBACK does not clobber unwritten pages in a TEMP file pcache. (user: drh, tags: trunk)
04:24
[32a62e3b] Additional debugging and tracing logic for pcache.c, turned off by default using an "#if 0". (user: drh, tags: trunk)
2016-05-12
19:17
[24d9fbc1] Disable ALWAYS and NEVER when compiled with SQLITE_MUTATION_TEST. (user: drh, tags: trunk)
19:05
[1b0f4cc3] Simplification of the sqlite3FaultSim() call inside of sqlite3PagerCommitPhaseOne(). (user: drh, tags: trunk)
18:38
[3fd71092] Add an assert in pager.c to confirm that pPager->tempFile is always true for in-memory databases. (user: drh, tags: trunk)
17:06
[9d55b8f5] Add extra OPTIMIZATION-IF-FALSE comments where required to pcache.c. (user: dan, tags: trunk)
12:08
[06c1e27c] For in-memory databases, it does not matter if pcache entries are marked "clean" or "writable". (user: drh, tags: trunk)
12:01
[0dc50d99] Remove an unnecessary call to sqlite3PcacheMakeClean() inside of the ROLLBACK logic. (user: drh, tags: trunk)
09:48
[bc202e5b] Add a missing OPTIMIZATION-IF-FALSE comment to pcache.c. (user: dan, tags: trunk)
2016-05-11
23:54
[ad601c79] Closed-Leaf: For in-memory databases, it does not matter if pcache entries are marked "clean" or "writable". (user: drh, tags: pager-dev)
20:03
[3bfd2621] Remove a redundant condition from pcache.c. Add an OPTIMIZATION-IF-TRUE comment to another condition that requires it. (user: dan, tags: trunk)
18:20
[4533ed35] Closed-Leaf: Remove a redundant condition from pcache.c. Add an OPTIMIZATION-IF-TRUE comment to another condition that requires it. (user: dan, tags: mistake)
15:41
[9cc8cad7] Remove some a small amount of redundant code related to PCache.pSynced from pcache.c. (user: dan, tags: trunk)
12:47
[345ce1c9] Do not reset the page cache when a rollback journal truncate fails, as doing so can cause loss of information for an in-memory TEMP file. (user: drh, tags: trunk)
11:04
[42fb6f1e] Always truncate, rather than persist, the rollback journal of a TEMP database. (user: drh, tags: trunk)
10:57
[d9313d19] Add pcache tracing macros. Off by default. Requires changing an "#if 0" and recompiling to enable. (user: drh, tags: trunk)
2016-05-10
20:16
[22364024] Add another test case to temptable3.test. (user: dan, tags: trunk)
20:03
[20cf8811] Fix a problem in sqlite3PagerMovepage() when working on a temp table for which pages have been spilled. (user: drh, tags: trunk)
2016-05-09
23:11
[79ecd0ef] Fixes to requirements marks. No changes to code. (user: drh, tags: trunk)
22:35
[8a39c8ee] Enhancements to test/sort5.test so that it works with SEE. (user: drh, tags: trunk)
22:32
[f5875489] Remove some forgotten debugging lines from test/sort5.test. (user: drh, tags: trunk)
19:58
[da94a6e0] Closed-Leaf: Omit the unnecessary WHERE_REOPEN_IDX flag in the WHERE interface. (user: drh, tags: dev)
19:03
[14e53d0e] Update a comment in fts5.h. No changes to code. (user: dan, tags: trunk)
18:05
[48505cde] Fix the FTS5 xQueryPhrase() API function so that it recognizes column filters. (user: dan, tags: trunk)
2016-05-07
18:02
[ec6ef5f2] Add options to bc_test1.c to make it more flexible. (user: dan, tags: begin-concurrent)
12:15
[d75140b8] Make the sqlite3DeleteTable() routine smaller and faster. (user: drh, tags: trunk)
12:15
[a45fda65] Fix typo in the intpkey-17.2 test. (user: drh, tags: trunk)
2016-05-06
21:04
[128c7eae] Add test/bc_test1.c, for testing the degree of concurrency provided by this branch under various conditions. (user: dan, tags: begin-concurrent)
20:23
[3a695263] Simplification to the logic used to decide between OP_Seek and OP_NotExists. Use OP_NotExists for both DELETE and UPDATE. (user: drh, tags: trunk)
18:47
[ab7ab415] Corrections to comments on the whereScanInit() interface. (user: drh, tags: trunk)
16:49
[93a2bace] For DELETE operations, make sure that seeks on the main table are not deferred, since if they are and none of the indexes reference columns of the table, the seek might never occur until the OP_Delete opcode, which is too late. Fix for ticket [16c9801ceba49]. (user: drh, tags: trunk)
16:30
[933a1c81] Fix an error in main.mk causing testfixture to use individual fts5 source code files instead of fts5.c. (user: dan, tags: trunk)
16:06
[150dd09e] Closed-Leaf: In the WHERE generator, when building code for a DELETE operation, make sure that seeks to the main table are not deferred. This is a better fix for the [16c9801ceba49] bug than the previous. (user: drh, tags: ticket-16c9801ce)
15:16
[dc37750d] Fix a bug in sqlite_analyzer causing it report (slightly) incorrect values for the number of entries in indexes or WITHOUT ROWID tables. (user: dan, tags: trunk)
11:31
[50312273] Do not scan indexes that have the integer primary key as their left-most column. This fixes the crash of ticket [16c9801ceba] but it seems like the wrong fix. More investigation needed. (user: drh, tags: ticket-16c9801ce)
2016-05-05
23:59
[d2efd3c1] Additional error reporting. Open the source database read/write so that it can delete the WAL file when done. (user: drh, tags: scrub-backup)
23:39
[b0bd9dd6] Working when run against sqlite.fossil. (user: drh, tags: scrub-backup)
23:09
[aeb88bdf] Finished implementation compiles, but untested. (user: drh, tags: scrub-backup)
17:15
[bdf2ec77] Initial check-in of the "scrub.exe" utility program prototype. Not yet fully functional. In particular, no scrubbing is done. (user: drh, tags: scrub-backup)
11:53
[69d11447] Renumber internal constants in the printf() implemention for a small performance improvement. (user: drh, tags: trunk)
2016-05-04
21:06
[71af9ac1] Disable the session extension API if SQLITE_ENABLE_SESSION is not defined. (user: drh, tags: trunk)
19:04
[6c43ba1c] Fix typo in comment. No changes to code. (user: mistachkin, tags: trunk)
14:45
[aae38969] Only disable the one-pass DELETE optimization if the WHERE clause contains a correlated subquery. Uncorrelated subqueries are allowed. This is a refinement of check-in [3f221f592a9a1] that is the fix for ticket [dc6ebeda9396087]. (user: drh, tags: trunk)
14:20
[7184c4b8] Portability enhancements to the configure script on the amalgamation tarball. (user: drh, tags: trunk)
11:28
[6341ab2f] Disable the PagerDontWrite() optimization for temp tables. It can cause database corruption if a page passed to PagerDontWrite() is dirty at the start of a transaction that is subsequently rolled back. (user: dan, tags: trunk)
2016-05-03
19:40
[1b43358f] Minor style tweaks in the MSVC makefile. (user: mistachkin, tags: trunk)
19:36
[b6ddabe1] Leaf: Add the experimental SQLITE_FCNTL_WIN32_GET_HANDLE file control. (user: mistachkin, tags: win32GetHandle)
14:57
[bcaa650e] The session extension is disabled by default. To enable it using --enable-session on ./configure on unix and add SESSION=1 to the nmake on Windows. Or add -DSQLITE_ENABLE_SESSION and -DSQLITE_ENABLE_PREUPDATE_HOOK to build manually. (user: drh, tags: trunk)
13:14
[e462cde2] Closed-Leaf: Turn the session extension off by default. Enable using --enable-session on configure scripts, or using the SESSION=1 argument to nmake on Windows. (user: drh, tags: session-make)
02:43
[8f05e140] Fix the build when SQLITE_ENABLE_DATA_PROTECTION is defined. (user: drh, tags: apple-osx)
00:04
[0715ce16] Avoid left-shifts of signed integers. (user: drh, tags: trunk)
2016-05-02
19:05
[5830cf72] Remove some randomness from test script temptable2.test. (user: dan, tags: trunk)
16:59
[088cf838] Fix a test case in temptable2.test so that it works on systems that lack a coherient cache (ex: OpenBSD) and thus do not support the "PRAGMA mmap_size" command. (user: drh, tags: trunk)
15:00
[f52765ee] Merge enhancements and bug fixes from trunk. (user: drh, tags: apple-osx)
13:57
[e4af9675] Fix harmless LLVM compiler warnings in the srcck1.c utility program used during the build process. (user: drh, tags: trunk)
12:18
[3f221f59] Disable the multi-row one-pass DELETE optimization when the WHERE clause contains a subquery. Fix for ticket [dc6ebeda9396087]. (user: drh, tags: trunk)
10:25
[54c63b32] Improvements to the way the LIKE optimization is implemented, resulting in slightly smaller and faster code that is easier to test. (user: drh, tags: trunk)
2016-04-30
19:23
[820c57bb] Change the way tester.tcl handes $argv so that in "permutations.test <permutation> <filename>" <filename> may be the name of any file in the test/ directory. (user: dan, tags: trunk)
18:10
[459a0b45] Remove an unnecessary branch from the OP_String8 opcode. (user: drh, tags: trunk)
17:19
[762bdc55] More bug fixes to Lemon identified by Kelvin Sherlock. None of these have any impact on SQLite. (user: drh, tags: trunk)
02:59
[daf4630f] Simplifications to the OP_Halt opcode implementation. (user: drh, tags: trunk)
2016-04-29
20:30
[614bb709] Fix the temporary directory search algorithm for unix so that it fails gracefully even if all candidate directories are inaccessible. This fixes a bug that was introduced by check-in [9b8fec60d8e]. (user: drh, tags: trunk)
17:07
[ce11f8e8] Fix the nolock VFS so that it supports shared memory. (user: drh, tags: apple-osx)
16:01
[91e5c07e] Merge the latest enhancements from trunk. (user: drh, tags: begin-concurrent)
15:52
[81b76901] Merge enhancements from trunk, and in particular the TEMP file deferred I/O enhancements. (user: drh, tags: apple-osx)
15:39
[9d0a5ae0] Postpone I/O associated with TEMP files for as long as possible, with the hope that the I/O can ultimately be avoided completely. (user: drh, tags: trunk)
14:12
[b7bec7f2] Closed-Leaf: Fix test script temptable2.test so that it works with the "inmemory_journal" and "journaltest" permutations. (user: dan, tags: tempfiles-25)
11:35
[99794aca] Merge latest trunk changes, including test case fixes, with this branch. (user: dan, tags: tempfiles-25)
11:33
[4cbd5024] Modify the permutations.test script so as to set any permutation specific configuration values before running each individual test script. Fix a mostly harmless buffer overread in the sessions module. (user: dan, tags: trunk)
11:28
[4792d6db] Lemon bug fix: Do not merge action routines unless their destructors are also identical. Problem and suggested fix reported on the mailing list by Kelvin Sherlock. (user: drh, tags: trunk)
10:13
[89b0ee33] Closed-Leaf: Fix an almost entirely harmless buffer overread in the sessions module. (user: dan, tags: permutations-fix)
02:55
[e7c22e3b] Some optimization comments added to vdbe.c. No functional changes to code. (user: drh, tags: trunk)
2016-04-28
22:29
[9f15a520] Further simplifications and improved commentting on the rowset.c module, including several optimization comments. (user: drh, tags: trunk)
20:11
[8cdbe89a] Comment changes only: Add several optimization marks in rowset.c. Add a header comment that explains what the various special comments mean. (user: drh, tags: trunk)
19:23
[9f6f17b5] Fix typo in comment. No changes to code. (user: mistachkin, tags: trunk)
18:53
[5748e643] Rearrange some code in the RowSet logic for clarity of presentation, while adding an /*OPTIMIZATION-IF-TRUE*/ comment. It should operate identically. (user: drh, tags: trunk)
14:59
[45467ee4] Merge latest changes from trunk with this branch. (user: dan, tags: permutations-fix)
14:54
[5973d3bf] Avoid running sessionfault.test and sessionfault2.test as part of the "inmemory_journal" permutation. (user: dan, tags: permutations-fix)
14:15
[33e62747] Use comments to mark several branches as optimizations. No changes to code. (user: drh, tags: trunk)
09:53
[045edd4b] Ensure that quota.test deletes the directory named "test.db" that it creates. (user: dan, tags: permutations-fix)
03:52
[fcf85bfe] Remove an unnecessary conditional from the sqlite3DecOrHexToI64() routine. (user: drh, tags: trunk)
00:32
[46d4ffff] Change the sqlite3Atoi64() routine so that it returns failure if not all of the input characters are consumed, even if it consumed all characters up to the first 0x00. This has no impact on external APIs as far as I can tell. (user: drh, tags: trunk)
2016-04-27
18:54
[2662d8fe] Modify the permutations.test script so as to set any permutation specific configuration values before running each individual test script. (user: dan, tags: permutations-fix)
15:24
[0065fe97] More simplification of the sqlite3AtoF() routine. Add special comments to indicate branches that are for optimization purposes only and that give the correct answer even if always or never taken. (user: drh, tags: trunk)
11:24
[6bb5aa2b] Fix a couple of test script problems on this branch. Both related to the fact that temp database page sizes can no longer be changed by VACUUM or the backup API after the temp db is populated. (user: dan, tags: tempfiles-25)
02:35
[3adfe9f3] Remove still more unnecessary branches from sqlite3AtoF(). (user: drh, tags: trunk)
2016-04-26
23:14
[dd69e53c] Further simplifications to sqlite3AtoF() to remove unneeded branches. (user: drh, tags: trunk)
21:02
[a9d00749] Remove an unnecessary line from the sqlite3AtoF() routine. (user: drh, tags: trunk)
18:58
[12418b10] The pcache and the built-in VFSes should not use mutexes when SQLITE_CONFIG_SINGLETHREAD is set. (user: drh, tags: trunk)
17:10
[e790aac0] Fix an issue in temptable2.test preventing it from working with SQLITE_DEFAULT_AUTOVACUUM=1 builds. (user: dan, tags: tempfiles-25)
16:03
[04911cee] Merge the checksymbols fix from trunk into this branch. (user: dan, tags: tempfiles-25)
13:13
[d819bfbd] Fix the "checksymbols" target in Makefile.in to be able to deal with the sqlite3changegroup family of interfaces. (user: drh, tags: trunk)
2016-04-25
22:39
[8bfde416] Add an sqlite3FaultSim() all to make it easier to simulate IO errors in a VACUUM commit. (user: drh, tags: tempfiles-25)
19:28
[36f97ca8] Remove an obsolete comment from the pager. No code changes. (user: drh, tags: tempfiles-25)
19:25
[7dd48c10] Update the RBU vacuum code so that databases that use custom collation sequences can be vacuumed. (user: dan, tags: trunk)
19:20
[3ae44770] Fix some unreachable branches in the pager. (user: drh, tags: tempfiles-25)
15:03
[a905d5e0] Merge bug fix from trunk. (user: drh, tags: tempfiles-25)
02:20
[ec215f94] When checking for the WHERE-clause push-down optimization, verify that all terms of the compound inner SELECT are non-aggregate, not just the last term. Fix for ticket [f7f8c97e97597]. (user: drh, tags: trunk)
01:43
[d0a579b3] Fix a typo in the Makefile. (user: mistachkin, tags: trunk)
2016-04-23
21:16
[9b8fec60] Merge the temporary directory search algorithm fix from trunk. (user: drh, tags: tempfiles-25)
20:59
[b38fe522] Fix the fix to the temporary directory search algorithm so that it continues to return "." as a fallback if that directory has the correct permissions. (user: drh, tags: trunk)
19:55
[84da122d] Merge the latest trunk changes. (user: drh, tags: tempfiles-25)
17:24
[c80c5c62] Fix a problem with mixing temp-files and mmap-mode. (user: dan, tags: tempfiles-25)
14:55
[3d61da4a] Fix some problems to do with temp-file databases and recovering from IO and SQLITE_FULL errors. (user: dan, tags: tempfiles-25)
2016-04-21
23:37
[67985761] Change the temporary directory search algorithm on unix so that directories with only -wx permission are allowed. And do not allow "." to be returned if it lacks -wx permission. (user: drh, tags: trunk)
18:13
[bd4a6f83] Add the sqlite3rbu_vacuum() API, to create an RBU handle that can be used to rebuild a database in the same way as the VACUUM command. (user: dan, tags: trunk)
16:44
[6e4ac704] Closed-Leaf: If a call to sqlite3rbu_close() on an rbu handle opened by sqlite3rbu_vacuum() returns other than SQLITE_OK, delete the contents of the rbu_state table. This ensures that if an RBU vacuum operation either completes successfully or encounters an error, the next call to sqlite3rbu_vacuum() with the same parameters starts a new RBU vacuum operation. (user: dan, tags: rbu-vacuum)
15:44
[8183fa68] Closed-Leaf: Merge the latest changes from trunk. (user: drh, tags: skip-ahead-distinct)
15:35
[a15c49ae] Merge all recent enhancements from trunk. (user: drh, tags: apple-osx)
15:26
[23eac52e] Fix a problem in rbu vacuum on tables with a large sqlite_master table. (user: dan, tags: rbu-vacuum)
15:24
[49aec971] Add a function prototype in order to fix a compiler warning. (user: drh, tags: tempfiles-25)
15:03
[cc28106e] Merge updates from trunk. (user: drh, tags: tempfiles-25)
02:27
[c4f165c4] Add the SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION method for enabling sqlite3_load_extension() while leaving the load_extension() SQL function disabled. (user: drh, tags: trunk)
01:58
[debafa5e] Closed-Leaf: Test cases for SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION. (user: drh, tags: load-ext-security)
01:30
[b2ae5bfa] Revert sqlite3_enable_load_extension() to its original long-standing behavior. Add SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION which will enable only the C-API and leave the SQL function disabled. (user: drh, tags: load-ext-security)
2016-04-20
20:08
[da5c753d] Add a documentation comment for sqlite3rbu_vacuum() to sqlite3rbu.h. (user: dan, tags: rbu-vacuum)
19:30
[3340f086] When an error occurs while transitioning out of WAL mode, make sure the locking state is not left at EXCLUSIVE. (user: drh, tags: trunk)
18:31
[38a4e9d9] Fix a locking race condition in Windows 10 that can occur when two or more processes attempt to recover the same hot journal at the same time. (user: drh, tags: trunk)
17:47
[f042fdd1] Add fault injection tests for rbu vacuum. Fix some problems revealed by the same. (user: dan, tags: rbu-vacuum)
12:16
[1f709fbf] Merge all recent enhancements from trunk. (user: drh, tags: begin-concurrent)
00:30
[edb454e4] API Change: Modify sqlite3_enable_load_extension() so that it only enables/disables the load_extension() SQL function, and leaves the C-APIs enabled at all times. In this way, applications can enable extension loading for the C interface without having to expose that capability to the SQL. (user: drh, tags: load-ext-security)
2016-04-19
19:27
[74ffea76] Updates to ensure the values of PRAGMA settings like "page_size", "auto_vacuum", "user_version" and "application_id" are not lost when a database is RBU vacuumed. (user: dan, tags: rbu-vacuum)
17:11
[ca021ba8] When an RBU vacuum is started on a db identified using a URI filename, pass the same URI parameters when creating the new version of the db. This ensures that RBU vacuum works with password protected databases. (user: dan, tags: rbu-vacuum)
16:20
[00b2f4b0] Detect attempts to use rbu vacuum on a wal mode database (not allowed). And attempts to write to a database in the middle of an rbu vacuum (which prevents the vacuum from resuming). (user: dan, tags: rbu-vacuum)
2016-04-18
21:00
[29407d70] Another fix to rbu vacuum for a zipvfs case. (user: dan, tags: rbu-vacuum)
18:18
[d76f4aaa] Fix some zipvfs related problems in RBU vacuum. (user: dan, tags: rbu-vacuum)
17:30
[92dc59fd] Leaf: Version 3.12.2 (user: drh, tags: release, branch-3.12.0, version-3.12.2)
16:18
[39dd67af] Correctly interpret negative "PRAGMA cache_size" values when determining the cache-size used for sorting large amounts of data (i.e. the functionality in vdbesort.c). (user: drh, tags: branch-3.12.0)
16:12
[a2cf4968] Fix a problem in the code generator for joins on virtual tables where the outer loop of the join uses the IN operator. (user: drh, tags: branch-3.12.0)
16:06
[368e86c7] Fix the sqlite3BtreeDelete() routine so that it preserves the correct key even when the row being deleted is not on a leaf page. Fix for ticket [a306e56ff68b8fa56] (user: drh, tags: branch-3.12.0)
15:59
[9c37e9ce] Increase the version number to 3.12.2. (user: drh, tags: branch-3.12.0)
15:54
[ab9d279f] Remove quotes from identifiers used as datatype names in a CREATE TABLE statement. Fix for ticket [7d7525cb01b68] (user: drh, tags: branch-3.12.0)
15:46
[eba27d4d] Remove quotes from identifiers used as datatype names in a CREATE TABLE statement. Fix for ticket [7d7525cb01b68] (user: drh, tags: trunk)
13:36
[d9768de5] Merge recent trunk changes. (user: drh, tags: tempfiles-25)
13:30
[85f3d80e] sqlite3PCachePerecentDirty() should return 0 if the pcache is empty. (user: drh, tags: tempfiles-25)
13:09
[3a7d7298] The last parameter to pread64() and pwrite64() should be off64_t, not off_t. (user: drh, tags: trunk)
09:17
[9a0078a5] Add the -vacuum switch to the "rbu" demonstration program. (user: dan, tags: rbu-vacuum)
2016-04-16
19:02
[bae7f875] Changes so that rbu vacuum works with zipvfs databases. (user: dan, tags: rbu-vacuum)
17:53
[dc19aacc] Avoid creating any extra files ("<target>-vacuum") when running an RBU vacuum. Ensure that the OAL file created is "<target>-oal", not "<target>-vacuum-oal". (user: dan, tags: rbu-vacuum)
15:03
[8eb3d7d8] Fix a couple of assert() statements that were failing with OOM error tests. (user: dan, tags: rbu-vacuum)
2016-04-15
22:03
[87703b76] Add the SQLITE_SkipAhead optimization setting (user: drh, tags: skip-ahead-distinct)
20:46
[0216b48f] Add the experimental sqlite3rbu_vacuum() API function. For opening an RBU handle that rebuilds a database from scratch. (user: dan, tags: rbu-vacuum)
16:27
[6fac0b92] Skip-ahead is now just an optimization. If it gets confused, it falls back to an incremental scan with redundancy elimination. (user: drh, tags: skip-ahead-distinct)
16:17
[db5a2364] Skip-ahead does not always work. So we still have to check for redundancy. (user: drh, tags: skip-ahead-distinct)
15:54
[45a70b2b] Fixes to the skip-ahead distinct logic. More issues remain. (user: drh, tags: skip-ahead-distinct)
15:06
[491f0dbd] Merge enhancements from trunk, especially the ".eqp full" enhancement to the command-line shell. (user: drh, tags: skip-ahead-distinct)
15:03
[3e217d62] CLI enhancement: Add the ".eqp full" option, that shows both the EXPLAIN QUERY PLAN and the EXPLAIN output for each command run. Also disable any ".wheretrace" and ".selecttrace" when showing EQP output. (user: drh, tags: trunk)
14:13
[0379f2cf] Several new test cases that cause failures. (user: drh, tags: skip-ahead-distinct)
13:24
[2afcb2c7] Fixed crash bugs. Still sometimes gets the wrong answers. (user: drh, tags: skip-ahead-distinct)
01:55
[9e14aa14] Progress toward getting DISTINCT to use a seek to advance to the next distinct row, when driven by an appropriate index. (user: drh, tags: skip-ahead-distinct)
2016-04-14
19:29
[129083bd] Leaf: Work toward improving analysis and code generation for DISTINCT and aggregate queries. (user: drh, tags: better-distinct-agg)
17:29
[d23e5813] In the ICU extension toupper() and tolower() SQL functions, avoid calling u_strToUpper() or u_strToLower() a second time if the buffer passed to the first invocation turns out to be large enough. (user: dan, tags: trunk)
16:40
[7b7a69d0] Add the SF_HasAgg constant (currently unused). Also enhance the comments on many other constant definitions to detail constraints on their values. (user: drh, tags: trunk)
15:44
[79147dca] Correctly interpret negative "PRAGMA cache_size" values when determining the cache-size used for sorting large amounts of data (i.e. the functionality in vdbesort.c). (user: dan, tags: trunk)
15:38
[67d7f79c] Add some missing testcase() macros to the pushDownWhereTerms() routine. (user: drh, tags: trunk)
13:35
[53179614] Rename WhereInfo.pResultSet to pDistinctSet to more accurately reflect what it represents. (user: drh, tags: trunk)
13:16
[7ee570e7] Since the return value of sqlite3OsClose() is always ignored, we might as well make it "void" instead of "int", and thereby save 50 bytes in the compiled binary. (user: drh, tags: trunk)
13:06
[5a469145] Additional ".selecttrace" debugging output when the query is transformed from a DISTINCT into a GROUP BY. (user: drh, tags: trunk)
2016-04-13
21:00
[55a62483] Fix compiler warnings by removing surplus local variables in the schema pretty-printer logic of the command-line shell. (user: drh, tags: trunk)
19:20
[ae16310c] Merge enhancements from trunk via tempfiles-lazy-open. (user: drh, tags: tempfiles-25)
16:52
[f6babf29] On commit, flush dirty temp-file pages only if the file is already open and 25% or more of the cache is dirty. (user: dan, tags: tempfiles-25)
16:02
[e2edd34e] Closed-Leaf: Merge enhancements from trunk. (user: drh, tags: tempfiles-lazy-open)
15:52
[68142dc5] Fixes for harmless compiler warnings. (user: drh, tags: trunk)
15:33
[83cfe82c] Add the --indent option to the .schema and .fullschema commands in the shell, to enable simple but effective pretty-printing. (user: drh, tags: trunk)
2016-04-12
20:26
[929fa4c3] Closed-Leaf: A couple more compiler warning fixes. (user: mistachkin, tags: warnings)
20:15
[7faec9ea] Even more compiler warning fixes. (user: mistachkin, tags: warnings)
20:05
[ab69527c] More harmless compiler warning fixes. (user: mistachkin, tags: warnings)
19:30
[bedb88a4] Compilation fix for a C99-ism in the 'fts3view' tool. (user: mistachkin, tags: trunk)
19:20
[a18a6ce2] Fix harmless compiler warnings in the 'session' module. (user: mistachkin, tags: trunk)
19:09
[bbac71aa] Once a temporary database file has been opened, flush all dirty pages to disk when comitting a transaction. (user: dan, tags: tempfiles-lazy-open)
17:13
[b65b69f6] Fix speedtest1 so that it automatically unlinks its test database prior to startup. (user: drh, tags: trunk)
16:59
[8053a6e2] Add the --temp option to the speedtest1.c performance test program. (user: drh, tags: trunk)
16:23
[662c32af] Improved localtime() support for WindowsCE (user: drh, tags: trunk)
16:11
[541c6da2] Closed-Leaf: Add and adjust comments. (user: mistachkin, tags: winCeLocalTime)
16:10
[9682c043] Merge enhancements from trunk. (user: drh, tags: tempfiles-lazy-open)
16:04
[7e728965] Add the sqlite3_snapshot_cmp() interface (available only with SQLITE_ENABLE_SNAPSHOT). (user: drh, tags: trunk)
15:14
[8fc83474] Closed-Leaf: Update the documentation for sqlite3_snapshot_cmp() to make the circumstances under which the comparison is valid clearer. Add tests for the same. (user: dan, tags: snapshot-cmp)
11:58
[07f10dea] Update the header comment on the memjournal.c file. No code changes. (user: drh, tags: trunk)
00:26
[e2c4995b] Performance optimization the Vdbe allocator. (user: drh, tags: trunk)
00:16
[aec94b6e] Avoid unnecessary calls to object destructors for a small performance gain. (user: drh, tags: trunk)
00:00
[fdf75239] Performance improvements in sqlite3WhereExprUsage(). (user: drh, tags: trunk)
2016-04-11
22:45
[b35bb928] Further refinements. (user: mistachkin, tags: winCeLocalTime)
22:24
[b8094166] Merge updates from trunk. (user: mistachkin, tags: winCeLocalTime)
22:23
[3189a7f1] Fix typo in the MSVC makefile. (user: mistachkin, tags: trunk)
22:10
[016481b3] Fix some compilation issues. (user: mistachkin, tags: winCeLocalTime)
19:59
[c698a21a] Add the sqlite3_snapshot_cmp() API. (user: dan, tags: snapshot-cmp)
19:24
[04b1890f] Fix a typo in temptable2.test. (user: dan, tags: tempfiles-lazy-open)
19:23
[c6d0d441] Add tests for wal mode to temptable2.test. (user: dan, tags: tempfiles-lazy-open)
19:01
[9efe2265] Performance optimization to sqlite3Dequote() and its callers. (user: drh, tags: trunk)
18:50
[ffc62af1] Merge latest trunk changes with this branch. (user: dan, tags: tempfiles-lazy-open)
18:49
[7dd9d4c1] Add extra tests to temptable2.test. (user: dan, tags: tempfiles-lazy-open)
18:25
[2764aeaa] Performance optimization for the sqlite3ExprListDelete() routine. (user: drh, tags: trunk)
18:15
[e35b345c] Performance optimizations in the column cache of the code generator, and especially the sqlite3ExprCacheRemove() routine. (user: drh, tags: trunk)
18:07
[4eb06e84] Fixes for OOM and IO error handling with temp file databases. (user: dan, tags: tempfiles-lazy-open)
16:43
[476cc283] Simplification and performance improvements in sqlite3ExprDup() and its subroutines. More work is possible in this area. (user: drh, tags: trunk)
16:35
[e554a4c3] Rename the OP_MX_JUMP macro to SQLITE_MX_JUMP_OPCODE to avoid confusing the opcode name generator. (user: drh, tags: trunk)
14:49
[60ad80e3] Performance improvement in sqlite3ExprDelete(). (user: drh, tags: trunk)
13:36
[099478fa] Remove the VdbeOp.opflags field and its associated initialization overhead. Update mkopcodeh.tcl to reorder opcode numbers to help the resolveP2Values() routine run faster. (user: drh, tags: trunk)
09:39
[982b753d] Update this branch with the latest changes from the trunk. (user: dan, tags: tempfiles-lazy-open)
01:43
[ef1966c2] Back off of the parser optimization in the previous check-in, slightly, to preserve some backwards compatibility regarding some undocumented behavior in the '#AAA' style query parameter. (user: drh, tags: trunk)
01:26
[16df7128] Small size reduction and performance improvement in the parser. (user: drh, tags: trunk)
01:06
[6a5cceee] Factor out the common operation of setting the Expr.x.pSelect field of an Expr object into a subroutine. (user: drh, tags: trunk)
2016-04-09
18:04
[6c56b3a0] Fix a problem in the code generator for joins on virtual tables where the outer loop of the join uses the IN operator. (user: drh, tags: trunk)
17:04
[ca2ef8a8] Fix the sqlite3BtreeDelete() routine so that it preserves the correct key even when the row being deleted is not on a leaf page. Fix for ticket [a306e56ff68b8fa56] (user: drh, tags: trunk)
14:36
[3686ed74] Limit the number of digits shown in the "prereq" mask for ".wheretrace" debugging output. (user: drh, tags: trunk)
2016-04-08
21:35
[00ac73a0] Leaf: Attempt to treat the arguments to a table-valued function as if they occur in the ON clause of a LEFT JOIN rather than in the WHERE clause. But this causes undesirable behavior with generate_series, as demonstrated by test cases. This is an incremental check-in pending further work. (user: drh, tags: tabfunc-in-left-join)
19:44
[1dfa5234] Update documentation for sqlite3_snapshot_open(). No code changes. (user: drh, tags: trunk)
15:09
[fe7d3b75] Version 3.12.1 (user: drh, tags: release, branch-3.12.0, version-3.12.1)
2016-04-07
23:18
[84d2a09e] Enhance the query planner so that IS and IS NULL operators are able to drive an index on a LEFT OUTER JOIN. (user: drh, tags: branch-3.12.0)
21:29
[300f1b61] Update the version number to 3.12.1. This is the first release candidate. (user: drh, tags: branch-3.12.0)
21:29
[3360ab09] Carry table column types through into VIEW definitions, where possible. (user: drh, tags: branch-3.12.0)
21:22
[c232b99e] Prevent the in-memory journal read cursor from entering an inconsistent state when it reads the last few bytes out of the journal file. Fix for ticket [7f7f8026eda38]. (user: drh, tags: branch-3.12.0)
21:14
[87aa9357] Add test cases for ticket [7f7f8026eda387d544]. (user: drh, tags: trunk)
18:42
[c4b9c611] Prevent the in-memory journal read cursor from entering an inconsistent state when it reads the last few bytes out of the journal file. Fix for ticket [7f7f8026eda38]. (user: drh, tags: trunk)
14:16
[153135bf] Avoid decrementing a pointer off the front end of the buffer in OP_MakeRecord. (user: drh, tags: trunk)
14:05
[8415d484] Instead of just commenting out the unneeded code in the previous check-in, remove it completely. (user: drh, tags: trunk)
14:01
[e84e88e3] Remove an unnecessary test for a NULL pointer in freeP4(). (user: drh, tags: trunk)
13:45
[716b20de] Update comments on the unix file locking protocol. No changes to code. (user: drh, tags: trunk)
2016-04-06
18:20
[84c55701] For a pager backed by a temp file, store the main journal in memory until it is at least sqlite3_config.nStmtSpill bytes in size. Prevent the backup API from being used to change the page-size of a temp file. (user: dan, tags: tempfiles-lazy-open)
17:32
[ea4de04d] Add a couple options to the MSVC makefile. (user: mistachkin, tags: branch-3.12.0)
16:27
[84de8813] Fix a problem in test script lock.test. Fix minor issues in pager.c. (user: dan, tags: tempfiles-lazy-open)
15:39
[afe9bd9b] Add tests to this branch. Fix a problem with temporary databases in auto-vacuum mode. (user: dan, tags: tempfiles-lazy-open)
2016-04-05
23:39
[da81d7af] Remove an unnecessary branch in the sqlite3LogEstToInt() routine. (user: drh, tags: trunk)
21:07
[be5a549e] Defer opening the file used for the temp database (where CREATE TEMP TABLE tables are stored) until the database is too large to reside entirely within the cache. There are likely still problems on this branch. (user: dan, tags: tempfiles-lazy-open)
20:59
[fb555c3c] Carry table column types through into VIEW definitions, where possible. (user: drh, tags: trunk)
19:46
[0bf9926c] Remove superfluous directories from the Makefile clean targets. (user: mistachkin, tags: trunk)
18:24
[8f1f300c] Closed-Leaf: Oops. Branched from the wrong baseline. Ignore this one. (user: drh, tags: mistake)
17:59
[00990020] Merge updates from trunk. (user: mistachkin, tags: winCeLocalTime)
17:50
[b7570ac1] Add the SQLITE_DBCONFIG_REQUIRE_TXN argument for sqlite3_dbconfig() which when set requires an explicit transaction before updating the database. (user: drh, tags: require-write-txn)
15:59
[cf569f9f] Incorrect version of build.c checked in at [87e5f5a6c60e3] (because I neglected to press the "Save" button on the text editor). There is no change to the logic, just improved presentation. (user: drh, tags: trunk)
14:02
[ed128e8b] Make sure "0" intended as a NULL pointer is cast to a pointer when used in a varargs functions parameter. (user: drh, tags: trunk)
14:01
[87e5f5a6] Remove an unnecessary conditional from the index builder. (user: drh, tags: trunk)
13:35
[7cacf4e9] Use SQLITE_WITHIN() for pointer range comparisons in some testing code. (user: drh, tags: trunk)
13:19
[85b97931] Do not allow pointer arithmetic to move a pointer across a memory allocation boundary. (user: drh, tags: trunk)
00:44
[0c97b802] Leaf: Avoid unnecessary memset() operations in sqlite3PagerGet(). (user: drh, tags: pager-get-noinit)
2016-04-04
18:04
[d5fc2f7f] Fix documentation typos. Comment changes only. No changes to code. (user: drh, tags: trunk)
17:59
[cefd36ff] Improve error messages from the 'shell1-5.0' test. (user: mistachkin, tags: trunk)
17:34
[4534ebf1] Improved handling of UTF8 by the command-line shell. (user: drh, tags: trunk)
17:23
[65c7bcc4] Add the ".auth ON|OFF" command to the command-line shell. (user: drh, tags: trunk)
16:40
[8627a4cd] Test that the view name is passed to the authorization callback when a SELECT statement is run on a view. (user: dan, tags: trunk)
15:47
[f4cbd18d] Closed-Leaf: Add and enhance the new tests. (user: mistachkin, tags: altShellFix)
14:57
[42a21966] Enhance sqlite3session_apply() and sqlite3session_apply_strm() so that conflicts are retried before the xConflict() callback is invoked, as long as the "apply" operation is making forward progress. (user: drh, tags: trunk)
13:46
[e375fe52] Minor performance optimization in the comparison opcodes of the VDBE. (user: drh, tags: trunk)
12:38
[0213d6af] Fix harmless compiler warnings. (user: drh, tags: trunk)
02:33
[b36dfdff] Refinements to the previous check-in. (user: mistachkin, tags: altShellFix)
02:16
[74183a5f] Experimental changes to the command line shell to make it work better with Unicode on Windows. (user: mistachkin, tags: altShellFix)
02:05
[02ccb444] More refactoring and cleanup work on the Win32 string conversion and utility routines. (user: mistachkin, tags: altShellFix)
2016-04-03
22:44
[345860c9] Revise and enhance the Win32 string conversion routines. (user: mistachkin, tags: altShellFix)
20:50
[f76c3a0c] Replace the new fprintf() calls. (user: mistachkin, tags: altShellFix)
20:45
[566b551e] Merge updates from trunk. (user: mistachkin, tags: altShellFix)
2016-04-01
17:54
[59814f35] Preupdate hook documentation fixes. No changes to code. (user: drh, tags: trunk)
12:35
[a62340dc] When reading an sqlite_stat1 table with missing entries for some indexes, set the default for the missing indexes after all other indexes are set so that the default values are more in line with indexes that are actually in the stat1 table. (user: drh, tags: trunk)
2016-03-31
22:53
[69f4d832] Update the clean target in the MSVC makefile. (user: mistachkin, tags: trunk)
21:36
[dfbfd34b] Leaf: Version 3.9.3 (user: drh, tags: release, branch-3.9, version-3.9.3)
21:16
[f1e6bb95] Enhance the query planner so that IS and IS NULL operators are able to drive an index on a LEFT OUTER JOIN. (user: drh, tags: branch-3.9)
20:40
[c648539b] Enhance the query planner so that IS and IS NULL operators are able to drive an index on a LEFT OUTER JOIN. (user: drh, tags: trunk)
15:08
[49763fc3] Closed-Leaf: Add another OOM test to this branch. (user: dan, tags: session-retry)
10:50
[195f3340] Add further tests for the code on this branch. Fix a problem in OOM handling. (user: dan, tags: session-retry)
02:44
[84dc41e2] Enhanced comments describing the sessions file format. No changes to code. (user: drh, tags: session-retry)
00:45
[ea917c14] Fix the return code in sessionRetryConstraints(). (user: drh, tags: session-retry)
2016-03-30
21:19
[1085911a] Have the sqlite3session_apply() function and its streaming equivalent retry any operations that failed with SQLITE_CONSTRAINT after all other operations on the same table have been attempted. New code is largely untested. (user: dan, tags: session-retry)
16:23
[7cf0cab7] Updates for the MSVC makefiles. (user: mistachkin, tags: trunk)
16:22
[64d75cbe] Fix typo in comment. No changes to code. (user: mistachkin, tags: trunk)
15:30
[47887ef8] Simplifications and clarification to update callback handling in the OP_Delete and OP_Insert opcodes. (user: drh, tags: trunk)
14:26
[e9bcd5ac] Increase the version number to 3.13.0 on account of the new session extension. (user: drh, tags: trunk)
14:17
[9cdf813c] Remove a redundant test for disabling RESTRICT with defer_foreign_keys=ON. (user: drh, tags: trunk)
13:43
[4af7a90f] Incorporate the sessions extension and the SQLITE_ENABLE_PREUPDATE_HOOK compile-time option. (user: drh, tags: trunk)
12:56
[5ab46d76] Closed-Leaf: Avoid compiler warnings and excess opcodes when SQLITE_ENABLE_PREUPDATE_HOOK is not used. Fix the EXPLAIN output for P4_TABLE opcodes. (user: drh, tags: sessions)
12:20
[e4bee561] Improvements to the performance testing program "speedtest1.c" and the shell script that invokes it. (user: drh, tags: trunk)
2016-03-29
21:19
[7635c680] Leaf: Fix some code and test coverage issues in fts5_index.c. (user: dan, tags: fts5)
10:36
[d7381eff] Merge 3.12.0 changes. (user: drh, tags: begin-concurrent)
10:30
[eef55744] Merge 3.12.0 changes. (user: drh, tags: apple-osx)
10:19
[ed22eb65] Merge changes for 3.12.0. (user: drh, tags: sessions)
10:14
[e9bb4cf4] Version 3.12.0 (user: drh, tags: trunk, release, version-3.12.0)
2016-03-28
20:13
[a805c6f7] Add further tests for savepoint rollback. Fix various code issues and add missing comments in fts5_index.c. (user: dan, tags: fts5)
15:06
[06039d90] Integrate the vcreate-stmt branch into this one. (user: dan, tags: fts5)
14:57
[d0a3853b] Closed-Leaf: Open a statement transaction for "CREATE VIRTUAL TABLE" statements in order to ensure that if the xCreate() call fails, changes made to the sqlite_master and possibly other tables are rolled back. (user: dan, tags: vcreate-stmt)
11:01
[f6a88ccc] Fix the multiplexor so that it does not assume that the xGetLastError method is non-NULL in the child VFS. (user: drh, tags: trunk)
2016-03-26
20:11
[53b80a6d] Fix a problem with OOM handling when setting an fts5 configuration option. (user: dan, tags: fts5)
15:36
[8213c2f5] More changes to the shellN.test scripts to get them working on all variations of Windows. (user: drh, tags: trunk)
14:41
[3bd499d3] Remove the catchcmd_collapse_space procedure in tester.tcl - no longer needed. (user: drh, tags: trunk)
13:26
[219a251e] Update shell1.test tests to deal with backslash escaping in TCL on Windows-style pathnames. (user: drh, tags: trunk)
2016-03-25
20:10
[a7c080a9] Do not run the shell3.test module under mingw because of mingw's dodgy command-line parsing. (user: drh, tags: trunk)
17:19
[183350fa] In the Win32 VFS, avoid trying to use rand_s() on Windows CE. (user: mistachkin, tags: trunk)
17:09
[93caabb6] Add the catchcmd_collapse_space command and use it to help make shell testing more robust against TCL space escapes. (user: drh, tags: trunk)
12:10
[99fd194c] Fix two instances of undefined behavior in the C code - both harmless for all current compilers. (user: drh, tags: trunk)
2016-03-24
20:55
[817e93f4] Make test cases in shell1.test robust against TCL deciding to quote strings using lots of backslashes. (user: drh, tags: trunk)
20:36
[e0737f52] Prevent negative values of SQLITE_DEFAULT_CACHE_SIZE from making SQLITE_WIN32_HEAP_INIT_SIZE negative. (user: mistachkin, tags: trunk)
15:32
[6db1d1fb] Larger margins for one memsubsys1 range check when running with a non-zero reserved-bytes value. (user: drh, tags: trunk)
15:09
[f4d234b5] Fix some test scripts so that they work with various permutations. (user: dan, tags: trunk)
14:34
[beb5ea14] Merge the beta changes into sessions. (user: drh, tags: sessions)
2016-03-23
17:54
[a1fd1469] Avoid calling realloc() with a zero size in fuzzcheck.c. (user: drh, tags: trunk)
16:32
[3fa88f68] Fix "ifcapable" tests in capi3.test and capi3c.test so that the tests work with more build configurations. (user: dan, tags: trunk)
15:53
[0ed693c2] Remove an unused local variable from FTS5. (user: drh, tags: trunk)
15:04
[70fc69ee] Explicitly limit the size of fts5 tokens to 32768 bytes. (user: dan, tags: trunk)
13:46
[41298464] Update a requirement mark. No changes to code. (user: drh, tags: trunk)
2016-03-22
20:05
[605eba4a] The sqlite3_column_decltype() routine should return NULL, not an empty string, if the column has no declared type. (user: drh, tags: trunk)
15:26
[142cd359] Fix harmless compiler warning for MSVC. (user: mistachkin, tags: trunk)
15:25
[5ace870d] Fix a harmless compiler warning. (user: drh, tags: trunk)
15:01
[e1ab2d37] Fix some errors in fts5 test scripts. (user: dan, tags: trunk)
14:37
[2484cc0c] Create the "uptr" typedef (the same as uintptr_t when available) and use it to cast pointers before comparison. (user: drh, tags: trunk)
14:10
[ff1b1ac3] Avoid the possibility of integer overflow on a pointer comparison test for corruption in the database file. (user: drh, tags: trunk)
2016-03-21
22:28
[25d776e4] Fix harmless compiler warnings. (user: drh, tags: trunk)
16:25
[3d076094] Add tests to ensure that fts5 is now deterministic. (user: dan, tags: trunk)
16:19
[a1dcf7af] Skip recently added test cases in nolock.test when running in the inmemory_journal permutation. (user: drh, tags: trunk)
16:06
[4dc30cce] Remove an unreachable branch from the unlink verification logic in the UNIX VFS. (user: drh, tags: trunk)
15:54
[8ee7d346] Merge all recent changes from trunk. (user: drh, tags: begin-concurrent)
15:32
[3296a0ce] Merge 3.12.0 beta changes from trunk. (user: drh, tags: sessions)
15:30
[902f2217] Have fts5 cache the structure of its index in main memory. Use "PRAGMA data_version" to figure out when this cache should be invalidated. (user: dan, tags: trunk)
15:18
[89296a46] Closed-Leaf: Rearrange code so that tests pass whether SQLITE_DEBUG is defined or not. (user: dan, tags: fts5-data-version)
14:52
[063f1b37] Merge the sqlite3_system_errno() change from trunk. (user: drh, tags: apple-osx)
14:46
[4bd12b57] Add the sqlite3_system_errno() interface. (user: drh, tags: trunk)
12:28
[b4a1114f] Closed-Leaf: Make sure system errors that occur durign sqlite3_step() are captured for use by sqlite3_system_errno(). (user: drh, tags: sqlite_system_errno)
11:57
[a6b6c6c4] Improved comments. No logical changes to code. (user: drh, tags: sqlite_system_errno)
11:38
[7d49998d] Do a better job of capturing all system errno values regardless of when they occur. (user: drh, tags: sqlite_system_errno)
10:49
[86ab8643] Merge updates from trunk. (user: drh, tags: sqlite_system_errno)
09:56
[d6e2637d] Change the way fts5 internally allocates segment ids in order to eliminated non-determinism from the module. (user: dan, tags: trunk)
00:38
[c39081e8] Change the Vdbe.aMem array so that it is zero-based instead of one-based. (user: drh, tags: trunk)
00:30
[c5677ecd] Closed-Leaf: Remove an unreachable branch. Improvements to comments. (user: drh, tags: zero-base-aMem)
2016-03-19
23:32
[e07b0c47] Change the Vdbe.aMem array so that it is zero-based instead of one-based. (user: drh, tags: zero-base-aMem)
18:11
[d7852c63] Fix exclusive.test so that it works with -DSQLITE_TEMP_STORE=3. (user: dan, tags: trunk)
18:00
[f0953414] Updates to the Lemon documentation. (user: drh, tags: trunk)
17:48
[209e31c7] Add the sqlite3rbu_bp_progress() API to the RBU extension. Used to obtain the percentage progress of an RBU update. (user: dan, tags: trunk)
17:09
[a1132dd9] Closed-Leaf: Fix a problem detecting invalid values in the rbu_control column of an rbu database table. (user: dan, tags: rbu-percent-progress)
16:21
[1f7afb6e] Update the sqldiff tool so that it generates an rbu_count table. (user: dan, tags: rbu-percent-progress)
15:34
[734fc68f] Merge latest trunk changes, including fixes to test script rbudiff.test, into this branch. (user: dan, tags: rbu-percent-progress)
15:13
[41c29c12] Fix another problem in test script rbudiff.test. (user: dan, tags: trunk)
14:53
[1ffe3cde] Fix test scripts sqldiff.test and rbudiff.test so that they work with the --testdir option. (user: dan, tags: trunk)
14:47
[7832466f] Add test file fts5multiclient.test. (user: dan, tags: fts5-data-version)
00:40
[c73b5b9c] Fix a VDBE register allocation bug exposed by recent enhancements to PRAGMA integrity_check. (user: drh, tags: apple-osx)
00:35
[88439a86] Fix a register allocation bug in the VDBE code generator for PRAGMA integrity_check; (user: drh, tags: trunk)
2016-03-18
20:12
[65e02368] Add further tests for sqlite3rbu_bp_progress(). Fix a problem in handling WITHOUT ROWID tables in the same. (user: dan, tags: rbu-percent-progress)
18:56
[1a1b69e8] Change the name of the new API on this branch to "sqlite3_bp_progress". Add tests and documentation for the same. (user: dan, tags: rbu-percent-progress)
11:03
[cb0ffe84] Test case tweaks to better support the Apple configuration options. (user: drh, tags: apple-osx)
10:29
[bf823217] Add tests for the changes on this branch. Fix a problem with calls to the new progress indicator API made after an rbu update has been resumed. (user: dan, tags: rbu-percent-progress)
00:58
[ec052b4f] Merge recent enhancements from trunk. (user: drh, tags: apple-osx)
00:39
[b199637d] Fix FTS5 so that it works with SQLITE_OMIT_AUTORESET. (user: drh, tags: trunk)
00:19
[6631e1e6] Fix more test-case errors in the Apple configuration. (user: drh, tags: trunk)
2016-03-17
23:56
[399c6076] Fix some test cases so that they work under the Apple configuration. (user: drh, tags: trunk)
23:16
[65ba2f0b] Fix harmless compiler warnings that arise with -DSQLITE_OMIT_LOAD_EXTENSION (user: drh, tags: trunk)
23:00
[beb2a80b] Changes to releasetest.tcl: Rename the "OS-X" configuration to "Apple". Bring the "Apple" configuration up to date. Allow the use of "if:os=..." arguments in a configuration. Run the Apple configuration on Linux in addition to on Macs, but without -DSQLITE_ENABLE_LOCKING_STYLE. (user: drh, tags: trunk)
21:06
[ffc58d2c] Add an API to indicate the percentage progress of an rbu update. (user: dan, tags: rbu-percent-progress)
19:28
[1602f6b5] Change the xGetLastError() method on the windows VFS so that it continues to format an error message (if requested) but returns the system error code, rather than an SQLite status code. (user: drh, tags: sqlite_system_errno)
19:07
[8607e3ac] A more compact implementation of the code generator for the IS and IS NOT operators. (user: drh, tags: trunk)
18:41
[41335d88] Closed-Leaf: An alternative method of encoding the wildcard in "SELECT *". This is an experiment. (user: drh, tags: select-wildcard)
17:23
[185bc864] Simple test cases for sqlite3_system_errno() (user: drh, tags: sqlite_system_errno)
16:01
[6782c87b] Experimental implementation of the sqlite3_system_errno() interface. (user: drh, tags: sqlite_system_errno)
12:39
[020a0bda] Fix some OOM-handling issues in the fts5 changes on this branch. (user: dan, tags: fts5-data-version)
2016-03-16
21:29
[97b0e88c] The prepared statements for some pragmas can now be reused without invoking an automatic reprepare. (user: drh, tags: trunk)
20:53
[6c4a17b9] Merge the changes on the reusable-pragma branch into this one. (user: dan, tags: fts5-data-version)
20:44
[db1ce7e1] Closed-Leaf: Some pragmas can be reused without an automatic reprepare. (user: drh, tags: reusable-pragma)
20:05
[10a3e2a0] Fix a comment on the freelist_count and data_version pragmas. (user: drh, tags: trunk)
19:53
[d9b5ff7a] Add a cast to an implict (size_t -> int) conversion in fts5_expr.c. (user: dan, tags: trunk)
19:48
[33ef2210] Have fts5 cache the decoded structure of fts5 indexes in memory. Use "PRAGMA data_version" to detect stale caches. (user: dan, tags: fts5-data-version)
19:45
[d5712f21] Enhance Lemon so that it reorders the reduce rules such that rules without actions occur at the end and so that the first rule is number 0. This reduces the size of the jump table on the reduce switch, and helps the parser to run faster. (user: drh, tags: trunk)
19:34
[a7978ab6] Merge the latest enhancements from trunk. (user: drh, tags: begin-concurrent)
19:10
[dbf84705] Avoid a few unnecessary fstat()s on journal files. (user: drh, tags: trunk)
18:26
[96ea9909] Fix the query planner so that it is able to use the integer primary key from an index as part of a multi-column constraint. (user: drh, tags: trunk)
01:16
[6a7ee04b] Merge all recent enhancements from trunk. (user: drh, tags: sessions)
01:09
[161d91e4] Merge the SQLITE_OMIT_CODEC_FROM_TCL compile-time option from trunk. (user: drh, tags: apple-osx)
01:03
[45f7f0c8] Add the SQLITE_OMIT_CODEC_FROM_TCL compile-time option. (user: drh, tags: trunk)
00:36
[e0b116ed] Rearrange some internal fields in the sqlite3_stmt object to avoid a harmless TSAN warning. (user: drh, tags: trunk)
2016-03-15
22:00
[15e4a272] Change the OP_IntegrityCk opcode to accept the list of root pages as an intarray argument in P4. Slightly smaller and faster. (user: drh, tags: trunk)
19:10
[9463762c] In the Win32 VFS, use SQLITE_FCNTL_LAST_ERRNO instead of (the older) SQLITE_LAST_ERRNO. (user: mistachkin, tags: trunk)
17:52
[c7bae50b] Implement FROM-clause subqueries as co-routines whenever they are guaranteed to be the outer-most loop of the join. (user: drh, tags: trunk)
12:45
[f41a7361] Merge updates from trunk - FTS5 fixes and enhancemenets to the tests scripts so that they work with SEE. (user: drh, tags: apple-osx)
12:37
[2fd095b1] More test-case changes so that everything works when the reserved_bytes value in the header is non-zero. (user: drh, tags: trunk)
09:55
[051c61eb] Fix the shellN.test test scripts so that they work with the --testdir option. (user: dan, tags: trunk)
09:42
[249cd361] Update this branch with latest trunk changes. (user: dan, tags: schemalint)
2016-03-14
21:26
[9f194f90] Fix the permutations.test script so that it works again. (user: drh, tags: trunk)
21:12
[f4693ba4] Update test scripts so that they work with SEE. (user: drh, tags: trunk)
20:49
[92be06c1] Closed-Leaf: Changing page size using VACUUM or backup is not allowed with a codec attached. (user: drh, tags: see-testing)
18:42
[ea1d2cdd] Merge test script fixes from trunk. (user: drh, tags: see-testing)
18:34
[99b9d7ee] Many more test cases fixed. Only a few remain. (user: drh, tags: see-testing)
17:05
[d866fffb] Many test cases fixed to work with encryption. (user: drh, tags: see-testing)
16:16
[1c70aa5c] Test script changes to support testing the SQLite Encryption Extension. (user: drh, tags: see-testing)
15:43
[f7480e33] Fix the backcompat.test script so that it works with the --testdir test option. (user: dan, tags: trunk)
15:03
[90e0cc7b] Run TCL tests in the "testdir" subdirectory. (user: drh, tags: trunk)
14:59
[fa8c1292] Closed-Leaf: More file pathname normalization. (user: drh, tags: test-in-subdir)
14:28
[19225b81] Normalize the $testdir and $argv0 paths so that they continue to work in the testing subdirectory. (user: drh, tags: test-in-subdir)
13:42
[f632bba0] Run TCL tests in a subdirectory "testdir". (user: drh, tags: test-in-subdir)
12:16
[54b8968e] Fix a memory leak in fts5 that could occur following a syntax error in a query expression. (user: dan, tags: trunk)
2016-03-12
19:33
[10a827ae] Fix a problem handling 'NEAR("" token)' in fts5 found by fuzzing. (user: dan, tags: trunk)
16:32
[72b3ff0f] Fix handling of strings that contain zero tokens in fts5. And other problems found by fuzzing. (user: dan, tags: trunk)
2016-03-11
23:07
[74f5d3b0] Do not allow the use of WAL mode with nolock=1 because it does not work. (user: drh, tags: trunk)
15:25
[83efcdeb] Tweak the amalgamation autoconf files so that the --disable-static-shell option works again. (user: dan, tags: trunk)
14:30
[df44308b] Update spellfix1_scriptcode() to output 215 (latin) for pure numeric text. (user: drh, tags: trunk)
2016-03-10
19:08
[d7c20f04] Check for PDB files prior to attempting to copy them in the MSVC batch build tool. (user: mistachkin, tags: trunk)
15:12
[fa0033ed] Add tests to cover untested branches in recent fts5 changes. (user: dan, tags: trunk)
14:28
[f96ec84d] Use #ifdefs to remove code that is unreachable in some configurations, replacing it with an assert(). (user: drh, tags: trunk)
14:22
[3c343c3d] Remove an unused local variable. (user: drh, tags: trunk)
2016-03-09
20:54
[55667144] Add an incremental optimize capability to fts5. Make the 'merge' command independent of the 'automerge' settings. (user: dan, tags: trunk)
18:17
[79338b99] Fix a problem in fts3/4 that was causing it to discard data cached in-memory if an 'optimize' command is run when there is no data on disk. The usual way this would happen is if the very first transaction that writes to the fts3/4 table also includes an 'optimize' command. (user: dan, tags: trunk)
15:34
[2c55c3c2] Slight simplification to the query optimizer logic associated with IN (SELECT). (user: drh, tags: trunk)
15:14
[d91e57e4] Add another test case for bug [5e3c8867]. (user: dan, tags: trunk)
15:09
[1ed6b06e] When optimizing expressions of the form "x IN (SELECT ...)" make sure that the subquery is not correlated. Fix for ticket [5e3c886796e5512]. (user: drh, tags: trunk)
13:39
[8d4b6b2b] Automatically disable SQLITE_ENABLE_EXPLAIN_COMMENTS if SQLITE_OMIT_EXPLAIN is defined. (user: drh, tags: trunk)
12:35
[a13c59d0] In the query planner, make sure OOM errors are reported up into whereLoopAddVirtual() so that it shuts down appropriately. (user: drh, tags: trunk)
11:59
[e0bac2f3] Disable the bestindex*.test modules when building without virtual table support. (user: drh, tags: trunk)
08:08
[59caca43] Merge latest trunk changes with this branch. (user: dan, tags: schemalint)
08:07
[fc18cc92] Fix a problem in the schemalint code that comes up when a sub-query uses one or more of the same tables as its parent. (user: dan, tags: schemalint)
04:17
[8baa2c2c] Simplifications to the memjournal.c logic to facilitate testing. (user: drh, tags: trunk)
03:44
[7f00d80c] Move the write failure test in memjrnlCreateFile() to just after the actual write, thus reducing the number of instances of the test by one. (user: drh, tags: trunk)
03:29
[fa20dcb0] Update a comment in btree.c to account for WITHOUT ROWID tables. No code changes. (user: drh, tags: trunk)
02:12
[ee486ef7] Change a branch made obsolete by recent parser enhancements into an assert(). (user: drh, tags: trunk)
02:03
[069337a9] Add an #ifdef and an ALWAYS() for coverage. (user: drh, tags: trunk)
2016-03-08
23:44
[73b97b9e] Change an unreachable branch in the virtual table query planner into an assert(). (user: drh, tags: trunk)
23:18
[4c89c253] Improved comments on virtual table query planning. Added many new WHERETRACE() macros. (user: drh, tags: trunk)
17:59
[e7fbbdc2] In memjournal.c, reuse the same sqlite3_file object for both the in-memory phase and the on-disk phase. (user: drh, tags: trunk)
17:44
[d99ac415] Closed-Leaf: Modify the memjournal.c code to make it a bit smaller. (user: dan, tags: memjournal-exp)
16:35
[29741941] Merge changes from trunk, especially the SQLITE_DEFAULT_SYNCHRONOUS enhancements. (user: drh, tags: apple-osx)
16:07
[f6d3156b] Drop support for SQLITE_EXTRA_DURABLE. The new SQLITE_DEFAULT_SYNCHRONOUS compile-time option is a more general replacement. (user: drh, tags: trunk)
16:02
[2179a106] Remove an unused goto label in the RBU extension. (user: drh, tags: trunk)
15:52
[1d9468d2] Add a new row type to RBU (a peer of insert, update and delete) - "delete then insert". (user: dan, tags: trunk)
15:47
[5a847a67] Add the SQLITE_DEFAULT_SYNCHRONOUS and SQLITE_DEFAULT_WAL_SYNCHRONOUS compile-time options. Automatically switch to the WAL_SYNCHRONOUS setting when first opening a WAL-mode database if the synchronous setting has not been previously set by the application. (user: drh, tags: trunk)
15:37
[64b3cb29] Update fts3/4 so that the 'merge=X,Y' command merges at least, instead of exactly, Y segments from a single level. This matches the documentation. 'merge=X,0' is, as it was in 3.11, an error. (user: dan, tags: trunk)
15:30
[592d2104] Closed-Leaf: Make the SQLITE_DEFAULT_SYNCHRONOUS and SQLITE_DEFAULT_WAL_SYNCHRONOUS values zero-based to agree with PRAGMA synchronous. (user: drh, tags: default-synchronous)
15:14
[5791407b] If SQLITE_DEFAULT_WAL_SYNCHRONOUS is not the same value as SQLITE_DEFAULT_SYNCHRONOUS and the application has not run "PRAGMA synchronous", then set synchronous to the SQLITE_DEFAULT_WAL_SYNCHRONOUS setting when entering WAL mode for the first time. (user: drh, tags: default-synchronous)
14:40
[1fefa967] Add compile-time options SQLITE_DEFAULT_SYNCHRONOUS and SQLITE_DEFAULT_WAL_SYNCHRONOUS used to specify the default synchronous settings for all database connections. (user: drh, tags: default-synchronous)
14:16
[c4e192a0] Fix ATTACH to use the symbolic name PAGER_SYNCHRONOUS_FULL rather than an integer literal. (user: drh, tags: trunk)
14:01
[58023bfc] Merge coverage improvements and comment fixes from trunk. (user: drh, tags: apple-osx)
13:56
[3a65a1fc] Fix comments on pager flag settings to include synchronous=EXTRA. (user: drh, tags: trunk)
02:59
[82ca2131] Simplified error detection in the xBestIndex processing. (user: drh, tags: trunk)
01:32
[91bd619d] Add the ALLBITS macro as a shorthand for "(Bitmask)(-1)". (user: drh, tags: trunk)
01:11
[721ae51e] Add a NEVER() to the code generator. Change the parameter name "mExtra" to "mPrereq" in the query planner, to more closely reflect its meaning. (user: drh, tags: trunk)
00:39
[9805f6f8] Changes so that some assert()s in the virtual table query planner are correct even following an OOM error. (user: drh, tags: trunk)
2016-03-07
21:28
[9f31516c] Fix a typo and remove an unused variable from test logic. (user: drh, tags: apple-osx)
20:48
[84f09f00] Merge recent enhancements from trunk. (user: drh, tags: apple-osx)
20:14
[cddf69db] Update fts3/4 so that the 'merge=X,0' command merges X pages from all segments of the first level in the fts index that contains 2 or more segments. (user: dan, tags: trunk)
19:08
[c9240086] Avoid a NULL pointer dereference following an OOM while generating code for IN operators on virtual tables. (user: drh, tags: trunk)
17:49
[17fd8f3c] Merge the virtual table query planner enhancement, the RTREE cost estimate fix, and the statement journal spill delay enhancement from trunk. (user: drh, tags: sessions)
17:39
[169311c8] Closed-Leaf: Add a new row type to RBU (a peer of insert, update and delete) - "delete then insert". (user: dan, tags: rbu-delete-then-insert)
17:37
[b6c42024] Add the SQLITE_CONFIG_STMTJRNL_SPILL option for sqlite3_config(). (user: drh, tags: trunk)
2016-03-05
21:32
[d8d89d69] Fix a problem in the previous commit affecting queries with three or more tables joined together to the right of a LEFT or CROSS JOIN operator. (user: dan, tags: trunk)
21:07
[19544438] Change the way SQLite invokes the xBestIndex method of virtual tables so that N-way joins involving virtual tables work as expected. (user: dan, tags: trunk)
20:28
[fd7cd060] Closed-Leaf: Adjust the cost estimates for RTREE such that the expected number of rows and expected cost is halved for each additional constraint. (user: drh, tags: xbestindex-fix)
17:29
[ffc65968] Change the way SQLite invokes the xBestIndex method of virtual tables so that N-way joins involving virtual tables work as expected. (user: dan, tags: xbestindex-fix)
15:35
[5f2a262d] Remove the unused journal.c source file (its function have been subsumed into memjournal.c). Refactor some of the names in memjournal.c. No functional changes. (user: drh, tags: trunk)
15:03
[4de09777] Work around (incorrect) ASAN warnings in memjournal.c. (user: drh, tags: trunk)
14:19
[2e35eb6b] Fix an integer size mismatch problem in test_bestindex.c (user: drh, tags: trunk)
14:00
[dca7b233] Fix an incorrect #ifdef on sqlite3LogEstToInt(). (user: drh, tags: trunk)
2016-03-04
21:18
[251424c5] Fix an assert() in sqlite3VarintLen(), even though it is impossible to hit in SQLite due to the way sqlite3VarintLen() is used. (user: drh, tags: trunk)
19:55
[c4488730] Leaf: Simplify the computation of Index.aAvgEq. (user: drh, tags: analyze-worst-case)
18:45
[5294c977] Merge changes from trunk. (user: drh, tags: analyze-worst-case)
16:42
[456df336] Merge recent enhancements from trunk. Default page size is 4096. Writes to statement journals are avoided. (user: drh, tags: sessions)
14:57
[2f0c195c] Merge recent enhancements from trunk, and especially the changes that reduce the heap-memory footprint of schemas, and defer opening and writing to statement journals. (user: drh, tags: apple-osx)
14:43
[cb9302cc] Defer opening and writing statement journals until the size reaches a threshold (currently 64KiB). (user: drh, tags: trunk)
14:23
[5b2fe521] Closed-Leaf: Update test cases to taken deferred statement-journal opening into account. (user: drh, tags: memjournal-exp)
13:08
[a87305df] Merge changes from trunk. (user: drh, tags: memjournal-exp)
04:01
[2682e8e4] Change the default cache_size to -2000 (which means 2000*1024 bytes independent of page_size). (user: drh, tags: trunk)
03:43
[2e8a9ca9] Change the default page size for new database files to 4096 (from 1024). Except, when building the testfixture, preserve the legacy page size. Also fix a comment on SQLITE_MAX_ATTACHED. (user: drh, tags: trunk)
03:20
[82cbf5ad] Detect the presence of pread()/pwrite() system calls on unix systems and use them if available. (user: drh, tags: trunk)
03:14
[38fb54e7] Closed-Leaf: Further fixes to the pread()/pwrite() enabling logic. (user: drh, tags: pread)
03:02
[7d67d876] Fix the build for cases when pread()/pwrite() are not available. (user: drh, tags: pread)
02:59
[6ec6b6a9] Add the test_bestindex.c file to Makefile.in and Makefile.msc so that "make test" will work again. (user: drh, tags: trunk)
02:38
[2cffb9e5] Update the configure script to detect pread/pwrite and update os_unix.c to use those routines if they are available. (user: drh, tags: pread)
00:13
[b5378dce] Get in-memory subjournals working for builds without SQLITE_ENABLE_ATOMIC_WRITE. (user: drh, tags: memjournal-exp)
2016-03-03
21:29
[55c00f71] Merge the latest updates from trunk. (user: drh, tags: memjournal-exp)
21:22
[16fbf2e1] Reduce the amount of heap memory required to store many schemas by storing the column datatype appended to the column name (with a \000 separator), rather than in separate memory allocation. (user: drh, tags: trunk)
20:42
[3eb74342] Allow the left-hand side of IN operators on virtual tables to have the aConstraintUsage[].omit flag clear. (user: drh, tags: trunk)
17:54
[7abc2dd9] Merge 3.11.1 changes into trunk. (user: drh, tags: trunk)
16:17
[f047920c] Leaf: Version 3.11.1 (user: drh, tags: release, branch-3.11, version-3.11.1)
15:16
[b1258814] Increase the default upper bound on scope to 30. (user: drh, tags: branch-3.11)
2016-03-02
17:57
[5893e972] Closed-Leaf: Add new test script bestindex1.test to the utf16 permutation. (user: dan, tags: vtab-IN-opt)
16:13
[d2d28251] Add an extra test for the change on this branch. (user: dan, tags: vtab-IN-opt)
16:01
[3c15a9bf] Enhance test_bestindex.c so that it can be used to test plans generated by xBestIndex. (user: dan, tags: trunk)
15:37
[45bc9557] Fix a recently introduced problem in permutations.test causing an error when the QUICKTEST_OMIT environment variable is defined. (user: dan, tags: branch-3.11)
13:26
[b2a03e2d] Fix an error in an fts5 test script. (user: dan, tags: branch-3.11)
03:28
[1622623c] Allow the left-hand side of IN operators on virtual tables to have the aConstraintUsage[].omit flag clear. (user: drh, tags: vtab-IN-opt)
00:58
[3d9daa92] Add the optional -DSERIES_OMIT_CONSTRAINT_VERIFY=0 option to the series.c extension that implements the generate_series() virtual table. (user: drh, tags: trunk)
2016-03-01
22:48
[1d41c161] New test cases and infrastructure for testing the xBestIndex method of virtual tables. (user: drh, tags: trunk)
22:41
[13a37fd4] Improved debugging output with wheretrace. Fix some typos in test script comments. (user: drh, tags: trunk)
18:35
[7a1add56] Closed-Leaf: Fix a memory leak in the test code on this branch. (user: dan, tags: test-bestindex)
18:24
[759b9d5b] Allow test_bestindex.c to set the omit flag for a constraint. (user: dan, tags: test-bestindex)
18:07
[de034c0d] Add test code useful for testing the planners use of teh virtual table xBestIndex() method. (user: dan, tags: test-bestindex)
16:56
[f7ed3739] Do not attempt to run fts5bigtok.test or fts5merge2.test if FTS5 is not compiled in. (user: dan, tags: branch-3.11)
16:02
[3cee9371] Add -DSQLITE_ENABLE_FTS5 to one of the release-test configurations in releasetest.tcl. Run fts5 tests as part of "make test" if SQLITE_ENABLE_FTS5 is defined. (user: dan, tags: branch-3.11)
15:52
[61927c8f] Remove a forgotten "breakpoint" command from an FTS5 test script. (user: drh, tags: branch-3.11)
15:41
[2dcd2fda] Increase the version number to 3.11.1 (user: drh, tags: branch-3.11)
15:09
[42358170] Merge branch-3.11-matchinfo into this branch. (user: dan, tags: branch-3.11)
14:51
[daef5869] Closed-Leaf: Fix a problem in fts5 where a corrupt db could lead to a (huge) buffer overread. Cherrypick of [c9a30e117f]. (user: dan, tags: branch-3.11-matchinfo)
14:50
[5b1b7ab5] Fix an fts5 problem causing 'optimize' to corrupt the fts index under some circumstances. Cherrypick of [251d6473f7]. (user: dan, tags: branch-3.11-matchinfo)
14:31
[21bfd47c] Change the estimated row counts in stat1 to be one-third worst-case and two-threads average case. (user: drh, tags: analyze-worst-case)
12:45
[810967bf] Fix test cases to align with the improved stats computation. (user: drh, tags: analyze-worst-case)
02:11
[f2c16094] Better estimatedCost in the xBestIndex method of the generate_series vtab. (user: drh, tags: trunk)
2016-02-29
23:02
[421b5b54] Improvements to the logic for adding the "noskipscan" flag to stat1 entries. (user: drh, tags: analyze-worst-case)
21:27
[6326ba58] The ANALYZE command automatically appends "noskipscan" to sqlite_stat1 entries that have large worst-case repeat estimates but small average repeat estimates. (user: drh, tags: analyze-worst-case)
20:18
[44b2dc18] When using a temporary file for a statement journal, store the first 64KiB in memory. If the file grows larger than that, flush it to disk and free the memory. Hardcoding to 64KiB is just an experiment to check that the memjournal.c code works. (user: dan, tags: memjournal-exp)
20:00
[9fd3f7b9] Fix minor problems with new code in memjournal.c. (user: dan, tags: memjournal-exp)
18:30
[5a0143c9] Modify the ANALYZE command to store worst-case statistics in sqlite_stat1, rather thn average case. (user: drh, tags: analyze-worst-case)
17:34
[c9a30e11] Fix a problem in fts5 where a corrupt db could lead to a (huge) buffer overread. (user: dan, tags: trunk)
17:16
[251d6473] Fix an fts5 problem causing 'optimize' to corrupt the fts index under some circumstances. (user: dan, tags: trunk)
15:53
[842b2116] Closed-Leaf: Reduce the amount of heap required to store many schemas by storing each column datatype appended to the column name, rather than as a separate allocation. (user: drh, tags: schema-storage)
13:44
[4b55c520] Very minor improvement to the performance and reduction in size to the parser by capturing the name and datatype of table columns in a single grammar rule reduction. (user: drh, tags: trunk)
13:37
[519fd03b] Closed-Leaf: Further simplifications to the grammar. (user: drh, tags: schema-storage)
2016-02-27
23:25
[ad3ffe2e] Update the parser so that it pulls out the column name and type all in one go, rather than using separate reductions. (user: drh, tags: schema-storage)
21:16
[d8c94a46] Eliminate the need for the Column.zDflt (using Column.pDflt instead) to reduce the amount of memory needed to hold the schema. (user: drh, tags: trunk)
20:14
[e0b0b431] Extend the code in memjournal.c so that it subsumes the role of journal.c. And (untested) can flush journal or statement journal files to disk after they grow to a specified size. (user: dan, tags: memjournal-exp)
19:19
[f681d800] Tighter description of I/O stats in the shell. Show I/O stats on speedtest1.c. (user: drh, tags: trunk)
19:03
[3e5d38f5] Leaf: More compact implementation of PRAGMA onconflict, and some test cases. (user: drh, tags: pragma-onconflict)
17:16
[3a0c347c] Experimental "PRAGMA onconflict=FAIL" statement to change the default ON CONFLICT algorithm to something other than ABORT. (user: drh, tags: pragma-onconflict)
17:12
[3c36948f] Enhance the ".stats" command in sqlite3.exe to show one-time stats information if invoked with one argument. Also show /proc/PID/io information if run on Linux. (user: drh, tags: trunk)
14:04
[d1392c62] Fix a requirement mark to conform to a typo fix in the documentation. (user: drh, tags: trunk)
14:00
[33dd671c] Enhance documentation of sqlite3_snapshot_open() to explain that the database connection must have participated in at least one read operation prior to the beginning of the transaction for which the snapshot is to be opened. Add test cases for this fact. (user: drh, tags: trunk)
00:21
[c2277fab] Add 'Replace.exe' to the MSVC clean target. (user: mistachkin, tags: trunk)
00:21
[00c8fffd] Fix typo in ICU error message. (user: mistachkin, tags: trunk)
00:07
[b850df48] Make sure the Replace.cs file is included in the autoconf tarball. (user: drh, tags: trunk)
2016-02-26
23:13
[3617564c] Support generating the '.def' file using the autoconf Makefile for MSVC. (user: mistachkin, tags: trunk)
21:20
[b8dc1b9f] Fix a potential buffer overflow in the ICU upper() function. (user: drh, tags: trunk)
21:03
[cf4e4fbd] Further refinements to the MSVC batch build process. (user: mistachkin, tags: trunk)
21:01
[4e54e9c0] Further refinements to the MSVC batch build process. (user: mistachkin, tags: branch-3.11)
16:14
[4fb4aee8] Merge all recent enhancements from trunk, and in particular the SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER change. (user: drh, tags: apple-osx)
16:03
[424b7aee] Fix the ICU extension LIKE function so that it does not read past the end of a buffer if it it passed malformed utf-8. (user: dan, tags: trunk)
15:38
[374b5108] Provide the new SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER option to sqlite3_db_config() that can be used to activate the two-argument version of fts3_tokenizer() for a specific database connection at run-time. (user: drh, tags: trunk)
13:22
[ff3d7f84] Fix a typo in a comment (though an important comment in that it is used to generate documentation). (user: drh, tags: trunk)
04:13
[3ef6a315] Ephemeral tables used to hold manifested views may not be unordered since they might be subject to an ordered comparison if they are part of a join. (user: drh, tags: trunk)
04:04
[beda0b8c] Remove a debugging "exit" command mistakenly left in the "where.test" module. (user: drh, tags: trunk)
2016-02-25
23:27
[c871473f] Add some comments in the VSIX test tool. (user: mistachkin, tags: trunk)
23:25
[d27f32c6] Add tool for smoke-testing the UWP VSIX package. (user: mistachkin, tags: trunk)
23:22
[799d5f09] Closed-Leaf: Enhance checking of prerequisites in the vsixtest tool. (user: mistachkin, tags: vsixTest)
23:21
[2459d323] Fix an incorrect cost computation for sorting (introduced just a few check-ins ago). Should be NlogN, not NloglogN. (user: drh, tags: trunk)
21:38
[e0d25913] Small optimization in FK handling. (user: mistachkin, tags: trunk)
21:27
[d64d005e] Change the srcck1.c utility program to use only unsigned characters. (user: drh, tags: trunk)
21:19
[832c237f] Change the "PRAGMA stats" command to report size values in LogEst units. The eliminates the need for sqlite3LogEstToInt() unless non-standard compile-time options are used, so leave it out except in those cases. (user: drh, tags: trunk)
20:17
[9ffff484] Disable the RESTRICT foreign key action if "PRAGMA defer_foreign_keys" is set. (user: dan, tags: trunk)
19:52
[8fea1166] Disable the RESTRICT foreign key action if "PRAGMA defer_foreign_keys" is set. (user: dan, tags: sessions)
18:54
[b8659004] Merge all the latest changes from trunk. (user: drh, tags: sessions)
18:40
[bf46179d] Query planner improvements: Take the LIMIT into account when estimated the cost of an ORDER BY. Avoid automatic indexes on query loops that are expected to run less than twice. See [9e2b2681] for a later enhancement. (user: drh, tags: trunk)
18:22
[aab53a21] Closed-Leaf: Improvement on the previous check-in: disallow automatic indexes for any loop that is expected to run less than twice. (user: drh, tags: planner-improvements)
18:03
[5957e793] Do not use an automatic index on an outer loop that only runs once. (user: drh, tags: planner-improvements)
16:04
[d491745c] Take the LIMIT clause into account when estimating the cost of sorting. (user: drh, tags: planner-improvements)
13:33
[2e67a1c8] In the command-line shell: When the ".import" command is creating a new table using column names from the first row of CSV input, make sure double-quotes in the name are properly escaped. (user: drh, tags: trunk)
08:02
[4fe7c4e9] Improve readability and logging of the vsixtest script. (user: mistachkin, tags: vsixTest)
02:56
[788f99f4] Enable all steps and add/update comments. (user: mistachkin, tags: vsixTest)
02:49
[0ab74373] More work. Install and build steps are now tested. (user: mistachkin, tags: vsixTest)
2016-02-24
23:31
[e0029bdf] Fix typo. Improve interim debugging. (user: mistachkin, tags: vsixTest)
23:25
[cce40a0b] Test build all supported configurations and platforms during VSIX testing. (user: mistachkin, tags: vsixTest)
21:42
[496e4ac9] Initial work on an automated VSIX testing tool. Not working or tested yet. (user: mistachkin, tags: vsixTest)
20:16
[e721975f] Extend [3e9ed1ae] so that covering indexes on WITHOUT ROWID tables are also identified. (user: dan, tags: trunk)
19:57
[56f62e34] Change a char* to const char* in order to suppress some harmless compiler warnings. (user: drh, tags: trunk)
17:18
[3e9ed1ae] When an index completely covers a table, it can be used as a covering index even if columns past the 63rd column are indexed and accessed. (user: drh, tags: trunk)
16:14
[b65217c6] Fix a problem with handling identifiers that start with "x" if SQLITE_OMIT_BLOB_LITERAL is defined. (user: dan, tags: trunk)
15:43
[71d488b5] Closed-Leaf: Identify indexes that completely cover their table. (user: drh, tags: covering-index)
13:35
[f92dc418] LSM1: Fix the integer key encoding so that negative keys are in numeric order. (user: drh, tags: lsm-vtab)
2016-02-23
16:28
[0064a8c7] Add the SQLITE_BITMASK_TYPE compile-time option. (user: drh, tags: trunk)
01:41
[fac4f4ec] Merge trunk enhancements. (user: drh, tags: lsm-vtab)
01:37
[32f3daec] Add support for (variable length) integer keys in LSM1. (user: drh, tags: lsm-vtab)
2016-02-22
23:44
[aa9f4c62] Remove code not needed now that synchronous=OFF database files no longer trigger the use of a master journal. (user: drh, tags: trunk)
23:14
[2a6003a9] Avoid an unnecessary seek operation some corner-case skip-scan operations. (user: drh, tags: trunk)
21:19
[a3dcf6db] Closed-Leaf: Clearer presentation of the logic. No functional changes. (user: drh, tags: skip-scan-improvement)
20:52
[38e837e6] Avoid an unnecessary seek operation on some corner-case skip-scans. (user: drh, tags: skip-scan-improvement)
19:51
[0b734065] Add test script shell6.test, containing tests for schemalint. (user: dan, tags: schemalint)
16:32
[18c3ab47] Merge the master-journal optimization and other recent changes from trunk. (user: drh, tags: apple-osx)
16:04
[64386fa3] Always use the sqlite3VdbeDeleteAuxdata() routine for clearing auxdata on function parameter, rather than having a separate deleteAuxdataFromFrame() for doing the job for trigger frames. (user: drh, tags: trunk)
14:57
[3ed18906] Avoid creating a master journal unless two or more databases in the transaction can actually benefit from that master journal. (user: drh, tags: trunk)
13:23
[9230ba6c] Change magic numbers associated with synchronous settings to named constants. (user: drh, tags: trunk)
13:01
[f9e5fb88] Merge up to trunk. (user: drh, tags: lsm-vtab)
09:45
[a48ac4c3] Add an extra test case for the change in commit [c4295725]. (user: dan, tags: trunk)
2016-02-19
19:46
[06f1495f] Further enhancements to the MSVC batch build tool. (user: mistachkin, tags: trunk)
19:29
[480e5049] Use the arguments to NMAKE consistently in the MSVC batch build tool. (user: mistachkin, tags: branch-3.11)
19:03
[66a9ad4a] Enhance clean target in the MSVC makefiles. (user: mistachkin, tags: branch-3.11)
18:54
[c4295725] Use a separate list of aux-data structures for each trigger program at the VDBE level. Fix for [dc9b1c91]. (user: dan, tags: trunk)
16:19
[0cb728c1] Enhance speedtest1 to display the particular version of SQLite under test. (user: drh, tags: trunk)
15:17
[a1a3ff1f] Fix a couple of harmless warnings generated by clang. (user: drh, tags: trunk)
14:20
[398522e6] Fix a harmless uninitialized variable access. (user: drh, tags: trunk)
14:10
[16205302] Make sure WhereClause objects are fully initialized before use when planning OR queries. (user: drh, tags: trunk)
13:29
[7c26d2b4] Fix (harmless) compiler warnings in some of the TCL-based test code. (user: drh, tags: trunk)
13:20
[ba9c6827] Add an SQLITE_DISABLE_INTRINSIC #ifdef to the sqlite3Put4Byte() function. (user: drh, tags: trunk)
13:19
[60ad68a9] Omit the unused yyzerominor constant. (user: drh, tags: trunk)
10:19
[ce0f1ed5] Add an "#ifndef SQLITE_AMALGAMATION" guard around a typedef in fts5_test_mi.c to avoid redefining "u32" if it is compiled as part of the amalgamation. Cherrypick of [f9c49ba1]. (user: dan, tags: branch-3.11-matchinfo)
10:18
[f9c49ba1] Add an "#ifndef SQLITE_AMALGAMATION" guard around a typedef in fts5_test_mi.c to avoid redefining "u32" if it is compiled as part of the amalgamation. (user: dan, tags: trunk)
07:53
[02fbf699] Fix a couple of bugs in the schemalint code. (user: dan, tags: schemalint)
05:07
[72b10e5e] Modify the MSVC batch build tool to support the MSVC autoconf Makefile. (user: mistachkin, tags: branch-3.11)
00:48
[b9626b59] Further improvements to the MSVC batch build tool. (user: mistachkin, tags: trunk)
00:47
[90dd6eb1] Further improvements to the MSVC batch build tool. (user: mistachkin, tags: branch-3.11)
2016-02-18
21:15
[f74de325] Correct the install location for the UWP VSIX package. (user: mistachkin, tags: trunk)
21:00
[b47d0302] Correct the install location for the UWP VSIX package. (user: mistachkin, tags: branch-3.11)
19:10
[4ab3df25] Have the schemalint output distinguish between existing and recommended indexes. (user: dan, tags: schemalint)
16:16
[e2ef6667] Remove SQLITE_TEST macros from fts5_test_mi.c. Add the SQLITE_FTS5_ENABLE_TEST_MI compile time symbol - to make it easier to create builds that include the fts5 matchinfo demo by default. (user: dan, tags: branch-3.11-matchinfo)
14:53
[82e7e31b] Merge the tokenizer buffer overrun bug-fix from trunk. (user: drh, tags: apple-osx)
14:49
[2a8d97e7] Avoid a potential buffer overrun if an SQL statement being parsed ends with an illegal "!" token. (This problem was detected by fuzzcheck running under valgrind. The problem was introduced by check-in [9570b6b43df3], two days ago and has not appeared in a release.) (user: drh, tags: trunk)
14:03
[c8cd7804] Improved handling of the -v option on the fuzzcheck test program. (user: drh, tags: trunk)
13:32
[31d8b69e] Remove an unnecessary "include <tcl.h>" line from fts5_test_mi.c. (user: dan, tags: trunk)
01:36
[b7fa0fb3] Merge recent performance enhancements and the enhanced API_ARMOR from trunk. (user: drh, tags: apple-osx)
01:29
[80de1ad5] Add extra API armor on the sqlite3_bind_blob() interface. (user: drh, tags: trunk)
01:22
[7bcd3ab5] Memory leak associated with SQLITE_WRITE_WALFRAME_PREBUFFERED (user: drh, tags: apple-osx)
2016-02-17
20:47
[24c7151c] When VDBE opcodes fail, they cause an immediate exit from the loop, rather than depending on the rc==SQLITE_OK test at the top of the loop. This is faster and smaller. (user: drh, tags: trunk)
20:06
[cf0f7eeb]