SQLite
Timeline
Not logged in

290 descendants and 17948 ancestors of [d8637bad]

2017-10-19
15:17
[04925dee] Leaf: Take extra care to avoid an OOB read caused by a corrupt b-tree page. (user: dan, tags: trunk)
2017-10-18
15:02
[cd0471ca] Avoid using snprintf as a member variable of a struct in sqlite3ext.h. This causes problems on OSX. Similar to fix [a1fd3aa8]. (user: dan, tags: trunk)
14:29
[b066d5a6] Closed-Leaf: Avoid using snprintf as a member variable of a struct in sqlite3ext.h. This causes problems on OSX. (user: dan, tags: sqlite3ext-fix)
2017-10-17
18:33
[6a08c434] The source code files generated for the 'sqlite3-all.c' target should not have Windows line-endings. (user: mistachkin, tags: trunk)
13:44
[e2af0cc6] Fix the ".check" command of the command-line shell to return 1 (error) rather than 2 (exit) on a test failure. (user: drh, tags: trunk)
2017-10-16
11:50
[700a3c69] Improved comments, including a typo fix, on the whereLoopCheaperProperSubset() function. (user: drh, tags: trunk)
2017-10-15
22:16
[ee31c043] In the query planner, do not consider index X to be a proper subset of index Y if X is a covering index but Y is not. (user: drh, tags: trunk)
2017-10-14
19:58
[92eb721f] Leaf: Updates to the Makefiles for MSVC. Cherrypick of [ac8786f3f9f35cb6]. (user: mistachkin, tags: branch-3.21)
19:54
[ac8786f3] Updates to the Makefiles for MSVC. (user: mistachkin, tags: trunk)
2017-10-13
20:14
[d65d1f29] Improved ability to generate stand-alone program using TCL and SQLite by compiling with -DTCLSH_INIT_PROC=name to cause the TCL interpreter to be initialized using procedure name(). Both sqlite3_analyzer and testfixture are now built this way. (user: drh, tags: trunk)
18:58
[298a3fdd] Add the tcl/mkccode.tcl script used to construct a single C-language source fiel for programs that combine C-code, SQLite, and TCL. Use this script to construct the sqlite3_analyzer program. (user: drh, tags: trunk)
16:24
[e38571d5] Leaf: Fix main.mk to name the win32 executable "sqlite3_expert.exe", not "sqlite3_expert". (user: dan, tags: schemalint)
16:19
[a9c4bc88] Move a bunch of unrelated test code out of tclsqlite.c and into test_*.c files. There is still some test code in tclsqlite.c, but the amount is greatly reduced. (user: drh, tags: trunk)
16:01
[ea2fa9ab] Closed-Leaf: The db_use_legacy_prepare command no longer exists. Use the undocumented -use-legacy-prepare option to DB version instead. (user: drh, tags: tclsqlite-cleanup)
15:56
[bf86478d] When compiling with SQLITE_TEST, extra options are available on the "DB version" command for controlling the internal state of the SqliteDb object, for testing purposes. (user: drh, tags: tclsqlite-cleanup)
15:06
[95b7687f] Move some test logic out of tclsqlite.c and into auxiliary test_*.c files. This is a work in progress. (user: drh, tags: tclsqlite-cleanup)
14:20
[4c68ad7d] Update main.mk to build the sqlite3_expert program with -DSQLITE_THREADSAFE=0 and -DSQLITE_OMIT_LOAD_EXTENSION. To minimize dependencies. (user: dan, tags: schemalint)
2017-10-12
20:37
[eaeeb09d] Add the sqlite_dbpage virtual table (enabled using SQLITE_ENABLE_DBPAGE_VTAB). Make that virtual table and dbstat available to the command-line shell. (user: drh, tags: trunk)
20:24
[4ec63ef2] Fix the EXPLAIN processing so that it returns SQLITE_ERROR on an OOM, as it should. (user: drh, tags: schemalint)
19:50
[dfdebd12] Closed-Leaf: Create the new ext/repair folder and move checkfreelist.c there. Remove checkfreelist.c from the command-line shell (undoing check-in [48418f2e]). (user: drh, tags: dbpage)
15:28
[d1ef9eab] Closed-Leaf: Add the experimental "sqlite_expert" extension. Used to find index definitions that might help with specified SQL queries. (Later:) Parked on a dead-end branch due to an assertion fault in TH3. We will merge again after the bug is fixed. (user: dan, tags: withdrawn)
14:18
[de20133d] Fix a harmless compiler warning about an unused parameter. (user: drh, tags: branch-3.21)
14:13
[d325da6c] Update this branch to match latest trunk. (user: dan, tags: schemalint)
14:13
[c643ace2] Fix the "snapshot-tarball" makefile target, which was broken by the shell.c change of check-in [36acc0a9]. (user: drh, tags: branch-3.21)
14:03
[1fb87a0c] Merge fixes from trunk. All changes are on makefiles and test scripts. There are no core code changes. (user: drh, tags: branch-3.21)
13:47
[36acc0a9] The src/shell.c file is now generated from src/shell.c.in, so remove shell.c from version control and update the makefiles to build it automatically. (user: drh, tags: trunk)
13:21
[29292169] Merge fixes from the 3.21 branch. (user: drh, tags: trunk)
11:33
[c36761e1] Fix a potential crash that may follow an OOM or other system error in the shell tool. (user: dan, tags: trunk)
11:13
[4b68f424] Update some test cases to work with SQLITE_OMIT_VIRTUALTABLE and DEFAULT_AUTOVACUUM builds. (user: dan, tags: trunk)
10:28
[5d0ceb8d] Make sure the tableColumnList() routine of the command-line shell does not cause a null-pointer dereference in an error condition. (user: drh, tags: branch-3.21)
01:24
[18d4654f] Merge fixes from the 3.21 branch. (user: drh, tags: dbpage)
01:19
[f0a2724f] Fix a typo in a numeric constant in an assert() - a bug that has been present in the code since check-in [79e22b95038] on 2010-03-30. (user: drh, tags: branch-3.21)
2017-10-11
20:27
[5c4980ef] Add test file mmapwarm.test. With tests for the sqlite3_mmap_warm() extension. (user: dan, tags: trunk)
20:26
[2719cf5c] Merge latest trunk changes with this branch. (user: dan, tags: schemalint)
18:26
[48418f2e] Add the checkfreelist extension to the command-line shell. (user: drh, tags: dbpage)
18:21
[4e894062] Check that the leaf count on each freelist trunk page is in range as part of checkfreelist processing. (user: dan, tags: dbpage)
18:00
[21930ef5] Add new extension "checkfreelist", which uses sqlite_dbpage to check that there are no invalid entries on the database free-list. (user: dan, tags: dbpage)
17:51
[497409e1] Convert the implementation of the ".dbstat" dot-command of the command-line shell to use the sqlite_dbpage table. (user: drh, tags: dbpage)
17:50
[31eee0e4] Make JSON1 defines consistent in the makefiles for MSVC. (user: mistachkin, tags: branch-3.21)
17:25
[79c96121] Enable JSON by default in the Windows command-line shell sqlite3.exe. (user: drh, tags: branch-3.21)
17:13
[01bf856c] Enable sqlite_dbpage and dbstat virtual tables in the shell, by default. (user: drh, tags: dbpage)
15:02
[a8b264d8] Get writes working on the sqlite_dbpage virtual table. Add a few test cases. (user: drh, tags: dbpage)
13:48
[c2c1d656] Initial implementation of the "sqlite_dbpage" virtual table. Currently it is read-only and has a place-holder xBestIndex. (user: drh, tags: dbpage)
12:20
[0245adff] In the speed-check.sh test script, allow an additional test-name argument which becomes the comparison baseline, in place of "trunk". (user: drh, tags: trunk)
11:12
[0f160a8a] Create a branch for the 3.21.0 release. Development continues on trunk. (user: drh, tags: branch-3.21)
2017-10-10
20:11
[63955442] Leaf: Add new extension "bgckpt" in ext/misc/bgckpt.c. For experimenting with running wal2 mode checkpoints in a background thread. (user: dan, tags: wal2)
13:37
[b8c1b5a5] DROP TABLE now works for WITHOUT ROWID tables and the SQLITE_OMIT_AUTOVACUUM compile-time option. Fix for ticket [e651b1341861d6] (user: drh, tags: trunk)
2017-10-09
19:50
[d218d815] Merge latest trunk changes with this branch. (user: dan, tags: wal2)
19:49
[9c80cd20] Add a header comment to wal.c describing the differences between wal and wal2 mode. (user: dan, tags: wal2)
2017-10-08
02:22
[5594a121] Fix harmless compiler warnings in FTS5 seen with MSVC. (user: mistachkin, tags: trunk)
2017-10-07
23:58
[39d920d1] Fix harmless compiler warning seen with MSVC. (user: mistachkin, tags: trunk)
23:35
[63d1b425] Revise variable declaration moved in the previous check-in so sqlite3VdbeReset() is consistent with sqlite3VdbeRewind(). (user: mistachkin, tags: trunk)
23:31
[14b181e8] Fix C99-style variable declaration issue seen with older versions of MSVC. (user: mistachkin, tags: trunk)
19:55
[f7360fad] Ignore the *-wal2 file if the *-wal file is zero bytes in size. (user: dan, tags: wal2)
13:37
[8932b2f1] Check in test file wal2simple.test. (user: dan, tags: wal2)
2017-10-06
18:00
[702b137a] Add tests for the example fts3 "rank" function that appears in the documentation. (user: dan, tags: trunk)
14:25
[7e435178] Merge latest trunk changes into this branch. (user: dan, tags: wal2)
14:08
[9e1502e1] Fix a bug in recovering wal2 mode databases introduced by the previous commit. (user: dan, tags: wal2)
13:43
[a4b02bc9] Fix frame overwriting in wal2 mode. (user: dan, tags: wal2)
2017-10-05
20:57
[8ca0fa8d] Fix compiler warnings that come up with SQLITE_OMIT_WAL. (user: drh, tags: trunk)
20:02
[373b0ace] Fix a problem building with SQLITE_OMIT_WAL defined. (user: dan, tags: trunk)
19:12
[4258fb57] Fix the command-line shell so that the ".schema --indent" command does a better job of dealing with \r\n in the middle of a CREATE statement in the schema. (user: drh, tags: trunk)
18:14
[16decc13] Fix test case failures on this branch. (user: dan, tags: wal2)
11:29
[d22c99b6] Disable the delta checksum verification in RBU by default. Reenable it using -DRBU_ENABLE_DELTA_CKSUM, if desired. (user: drh, tags: trunk)
2017-10-04
20:57
[e2fc5c81] Add experimental mode that uses two wal files. Activated using "PRAGMA journal_mode = wal2". (user: dan, tags: wal2)
18:26
[40964a4e] Updates to requirements marks. (user: drh, tags: trunk)
17:05
[7c69f8f1] Update the speedtest1 program so that it prints the output of "PRAGMA compile_options" if the -stats option is specified. (user: dan, tags: trunk)
16:35
[182ec9d6] Fix typos in session extension header comments. No changes to code. (user: mistachkin, tags: trunk)
14:13
[ef94ea06] New test cases for ticket [b899b6042f97f5] derived from a bug report on the mailing list from Wout Mertens. (user: drh, tags: trunk)
12:08
[9ff49441] Amend recent changes to busy.test to avoid failing with SQLITE_ENABLE_STAT4 builds. (user: dan, tags: trunk)
12:06
[4464f40c] Turn restriction 20 on the query flattener into an assert since the situation restricted can no longer occur because of the more aggressive use of co-routines. (user: drh, tags: trunk)
10:39
[fb83c3d8] Add tests to verify that the busy-handler is invoked correctly when processing "PRAGMA optimize" and ANALYZE commands. (user: dan, tags: trunk)
05:59
[66629b2a] Remove a redundant restriction from the query flattener. (user: drh, tags: trunk)
02:30
[d050dc60] Fix a minor typo in the query flattener header comment. No code changes. (user: drh, tags: trunk)
2017-10-03
19:53
[772b0db1] Simplify the computation of types on columns of a view. (user: drh, tags: trunk)
18:35
[f5c39583] Do not enable SELECT tracing with -DSQLITE_DEBUG. Require the -DSQLITE_ENABLE_SELECTTRACE compile-time option to enable SELECT tracing. (user: drh, tags: trunk)
17:29
[1dd82808] Add some OK_IF_ALWAYS_TRUE() marks on optimization branches in select.c. (user: drh, tags: trunk)
17:17
[7be760e9] Remove an unused variable from sqlite3Insert() and fix harmless compiler warnings associated with -DSQLITE_MUTATION_TEST. (user: drh, tags: trunk)
16:57
[966438bd] Fix the sqlite3_column_decltype() interface to return the correct datatype when the value comes through a CTE. (user: drh, tags: trunk)
14:24
[c5ad5e16] The simplification to sqlite3SelectExpand() in last night's [3a4ffb21] check-in was not completely correct. This adjustment is needed for correct OOM handling in some configurations. (user: drh, tags: trunk)
03:24
[f10ece96] Closed-Leaf: Simplification to the logic that computes column type names. Update: Does not work in all configurations. (user: drh, tags: does-not-work)
03:01
[e4342fd4] Do not compute column and row size estimates for the transient Table objects associated with the result set of a SELECT statement, since those estimates are never used for anything constructive. (user: drh, tags: trunk)
2017-10-02
23:50
[3a4ffb21] Mark a single branch within sqlite3SelectExpand() as an optimization. (user: drh, tags: trunk)
23:30
[5bf2ccb9] Simplification to sqlite3SelectPrep() for improved testability. (user: drh, tags: trunk)
21:29
[6035c9b2] Add the OK_IF_ALWAYS_TRUE() and OK_IF_ALWAYS_FALSE() macros for marking conditionals that improve performance but do not change the outcome. (user: drh, tags: trunk)
13:20
[d815f255] Avoid using lookaside memory for persistent virtual table structures. (user: drh, tags: trunk)
02:52
[c9104b59] The query planner now always prefers to implement a FROM-clause subquery using a co-routine rather than flattening the subquery into the outer query. (user: drh, tags: trunk)
02:32
[8000d230] Improvements to a comment in lempar.c. No code changes. (user: drh, tags: trunk)
2017-09-30
11:47
[92848623] Closed-Leaf: More details in the header comment of pushDownWhereTerms(). No changes to code. (user: drh, tags: prefer-coroutine-sort-subquery)
10:50
[6aed4ea3] Make sure the SQLITE_Stat34 optimization switch is always 0x800, a value which is hard-coded in the TH3 test suite. (user: drh, tags: prefer-coroutine-sort-subquery)
01:25
[71f0adf7] Fix unreachable conditionals and revise a testcase that was made obsolete by the changes on this branch. (user: drh, tags: prefer-coroutine-sort-subquery)
2017-09-29
22:13
[6b1651d7] Always render a subquery that is not part of a join as a co-routine. (user: drh, tags: prefer-coroutine-sort-subquery)
16:08
[f62cd4d9] Merge the query flattener comment improvements from trunk. (user: drh, tags: prefer-coroutine-sort-subquery)
16:07
[0840f9f8] Clean up the comments on the query flattener to more clearly and accurately express the conditions under which the flattener is able to run. (user: drh, tags: trunk)
14:31
[06f432fb] Merge changes from trunk. (user: drh, tags: prefer-coroutine-sort-subquery)
12:44
[2a45bbc9] Make sure the 6th parameter to the authorizer callback for view subqueries has the correct view name. (user: drh, tags: trunk)
12:12
[04ef40a8] Better names for subqueries in EXPLAIN comments. (user: drh, tags: trunk)
2017-09-28
20:06
[042d655d] Do not flatten subqueries that contain an ORDER BY or GROUP BY clause and can be implemented using a co-routine. (user: drh, tags: prefer-coroutine-sort-subquery)
17:29
[ff2f5a31] Remove the (undocumented) query-planner control that prevents a "SELECT ALL" subquery in FROM clause from being implemented as a co-routine. This control was added by [a29e117d7ec], where it was called a "stop-gap". (user: drh, tags: trunk)
16:56
[fd3267ef] Fix over-length source code lines in select.c. No logic changes. (user: drh, tags: trunk)
13:47
[5b9ae693] Fix an issue introduced by check-in [4cd2a9672c59] (2017-03-03) that could allow a negative value in the 3rd parameter to memmove() when defragmentPage() is called on a btree page with a corrupted freeblock list. The corruption is now detected early and results in an SQLITE_CORRUPT return before the memmove() is reached. (user: drh, tags: trunk)
01:58
[490e488e] Add new routines to simplify dealing with collating sequences in expressions: sqlite3ExprNNCollSeq() and sqlite3ExprCollSeqMatch(). (user: drh, tags: trunk)
01:09
[04130018] Indexes on expressions with a COLLATE clause are able to satisfy an ORDER BY with the same COLLATE clause. (user: drh, tags: trunk)
00:01
[80277d2f] In two places, change the magic number -1 to its proper symbol XN_ROWID. (user: drh, tags: trunk)
2017-09-27
16:51
[f5ef2e1b] Disable tests for the LIKE optimization when ICU is enabled, since the LIKE optimization only works for the built-in LIKE operator and ICU overrides the built-in. (user: drh, tags: trunk)
2017-09-25
09:37
[24a95e14] Add an extra snapshot related test case. (user: dan, tags: trunk)
2017-09-23
07:46
[d71eeaab] Leaf: Experimental change so that snapshot transactions always lock the wal file - preventing writers or truncate-checkpointers from wrapping it. (user: dan, tags: snapshots-lock-wal)
2017-09-22
20:18
[8d2a1cca] Leaf: Merge in all the trunk enhancements of the previous 7 months. The LIKE optimization has stopped working when there is an ESCAPE - that problem will be addressed in a subsequent check-in. (user: drh, tags: est_count_pragma)
16:23
[2c03d8b8] Use the updated Win32 VFS semantics for winOpen from check-in [5d03c738e9] for WinRT, et al, as well. (user: mistachkin, tags: trunk)
12:52
[403b88a8] Partial backout of check-in [e0af9a904076]. It turns out we do need some extra space at the end of the record blob as an overrun area to use when decoding a maliciously malformed record. (user: drh, tags: trunk)
11:09
[c7a5880d] Leaf: Cherrypick [ec37ad6d08] into this branch. With this patch, if SQLITE_SHARED_MAPPING is defined at build-time SQLite will use a single memory mapping for multiple connections to the same database file within a single process. (user: dan, tags: begin-concurrent)
10:49
[307b802e] Merge latest trunk changes into this branch. (user: dan, tags: begin-concurrent)
00:24
[0a12915b] Update the configure script so that it looks for tclsh8.7 ahead of tclsh8.6. (user: drh, tags: trunk)
2017-09-21
20:43
[5d03c738] In the Windows VFS, when trying to open a database file read/write, if it fails check to see if the file exists and is read-only and immediately fall back to a read-only open attempt, rather than running the AV retry loop. (user: drh, tags: trunk)
20:03
[fa3f5bcc] In the Windows VFS, do not emit an SQLITE_CANTOPEN error log message when falling back from SQLITE_OPEN_READWRITE to SQLITE_OPEN_READONLY. Wait until the open fails completely. (user: drh, tags: trunk)
19:08
[68e9a840] Fix harmless UB in the ICU extension. (user: drh, tags: trunk)
14:03
[3fbfa9a8] Leaf: The sqlite3_snapshot_describe() interface useful for debugging snapshot logic. (user: drh, tags: sqlite3_snapshot_describe)
13:11
[fd4ec0cd] Fix a potential use of an uninitialized pointer in RTree following an OOM error. (user: drh, tags: trunk)
10:24
[65765222] Fix a bug in tool/mksourceid.c: The mksourceid.c program was incorrectly including the "# Remove this line" line of the Fossil-generated "manifest" file in the SHA3 hash. That means that all SQLITE_SOURCE_IDs for trunk versions going back to check-in [30966d56] (2017-08-22) are incorrect. (user: drh, tags: trunk)
01:04
[f8b1c64d] Revert one performance improvement changes from check-in [3b3e32d4cd07] as it was causing a reference to an uninitialized value. (user: drh, tags: trunk)
00:49
[adc12c83] Fix the rendering of the P4_INTARRAY argument to the OP_IntegrityCk opcode in the output of EXPLAIN. (user: drh, tags: trunk)
2017-09-20
18:47
[4b3f7eac] Size and performance optimization on sqlite3VdbeMemGrow(). (user: drh, tags: trunk)
18:07
[e0af9a90] The BLOB returned by sqlite3VdbeMemFromBtree() does not need to be zero-terminated. (user: drh, tags: trunk)
17:49
[3b3e32d4] Small size and performance optimization in the bytecode engine. (user: drh, tags: trunk)
10:47
[7f2bd4ff] Improved resolution of large integer values in "CAST(x AS NUMERIC)". (user: drh, tags: trunk)
09:09
[5b2002f3] Updates to the "lemon.html" document received from Andy Goth. (user: drh, tags: trunk)
2017-09-18
18:17
[1b2de414] Add the sqlite3_mmap_warm() function as an extension in the ext/misc/mmapwarm.c source file. (user: drh, tags: trunk)
18:08
[3235835b] Closed-Leaf: Fix a typo in the MSVC makefile. (user: drh, tags: mmap-warm)
16:28
[d4a30b91] Add extension "mmapwarm.c". Provides function sqlite3_mmap_warm(), used to "warm up" the memory mapping used by SQLite in mmap mode to access db file content. (user: dan, tags: mmap-warm)
13:16
[a9447193] Minor simplification of error message generation during compound query code generation. (user: drh, tags: trunk)
09:40
[74f399d8] The out-of-bounds read on recovery fix of check-in [378afa16381a222a] caused problems for some corner-case error conditions. This alternative fix appears to work better. (user: drh, tags: trunk)
08:51
[2e573350] Leaf: Merge latest trunk changes with this branch. (user: dan, tags: shared-mapping-hack)
00:18
[42f07775] Fix the CSV virtual table extension so that it works when the default character is unsigned. (user: drh, tags: trunk)
2017-09-17
19:45
[29227d00] Do not make the assumption (as check-in [4da49a95c0f07] incorrectly did) that the ExprList returned by sqlite3ExprListDup() would never be passed into sqlite3ExprListAppend(). Include a new test case that shows this sometimes does happen. (user: drh, tags: trunk)
2017-09-16
20:58
[5dbb255a] Simplify the sqlite3VdbeGet() routine. Smaller, faster, and easier to maintain. (user: drh, tags: trunk)
2017-09-15
17:40
[dd95887f] Remove an unnecessary parameter from selectInnerLoop(). (user: drh, tags: trunk)
15:38
[5dc3ecb5] Improved the header-comment documentation on sqlite3ExprCodeExprList(). No changes to code. (user: drh, tags: trunk)
15:17
[4da49a95] Optimization to the ExprList object to make it slightly smaller and faster. (user: drh, tags: trunk)
14:36
[f7f0bf1d] Fix a harmless comment typo. No changes to code. (user: drh, tags: trunk)
2017-09-14
21:12
[1a7e0b61] Add another test case for the problem fixed by the previous commit. (user: dan, tags: trunk)
20:41
[cf5bf42c] Avoid an out-of-bounds read that can be caused by a specially constructed journal file. (user: dan, tags: trunk)
02:36
[378afa16] Avoid an out-of-bounds read on a recovery attempt using a carefully crafted database and rollback journal with mismatched page sizes. The test case for this is in TH3. (user: drh, tags: trunk)
2017-09-13
20:20
[43c6023b] Test case update due to PRAGMA integrity_check enhancements in [8525c30c]. No changes to code. (user: drh, tags: trunk)
18:38
[ebada072] Leaf: Experimental sqlite3_stmt_retryable() interface. (user: drh, tags: sqlite3_stmt_retryable)
12:55
[87ccdf9c] Disable FTS3 matchinfo() tests that assume a littleEndian platform when running on bigEndian. (user: drh, tags: trunk)
00:33
[8525c30c] Improvements to PRAGMA integrity_check for better detection of malformed records. Integrity_check now avoids returning SQLITE_CORRUPT on a corrupt record. Also includes microoptimizations that I stumbled over while working on integrity_check. (user: drh, tags: trunk)
00:13
[81f62e99] Closed-Leaf: PRAGMA integrity_check returns SQLITE_OK even if it encounters corruption while scanning indexes. (user: drh, tags: improved-integrity-check)
00:01
[a5a19492] Fix test script comment. No changes to code. (user: mistachkin, tags: trunk)
2017-09-12
23:58
[3a2793aa] Remove use of the rand_s() function (added by [139081bef9f63c3e]) as it appears to cause issues with some third-party DLLs. (user: mistachkin, tags: trunk)
20:09
[afe45271] Leaf: Add the highly-experimental "PRAGMA noop_update=TRUE" command. (user: drh, tags: begin-concurrent-pnu)
18:49
[de2e3717] Leaf: Add the highly-experimental "PRAGMA noop_update=TRUE" command. (user: drh, tags: pragma-noop-update)
18:11
[8b1fc4b9] Merge the mutex-free PRNG change into this branch. (user: dan, tags: shared-mapping-hack)
18:03
[ec37ad6d] Hack to have multiple connections to a single file share a single memory mapping of the databse file. (user: dan, tags: shared-mapping-hack)
15:05
[9780b23c] Fix an error in [b22cdd67] that can cause a negative infinity to be (rarely) reported as a positive infinity. (user: drh, tags: trunk)
13:27
[b22cdd67] Changes to (hopefully) get the build working with recent Intel compilers. (user: drh, tags: trunk)
00:24
[d7b7f038] Make sure all connections are closed in the pragma.test script. Test change only - no changes to code. (user: drh, tags: trunk)
2017-09-11
23:46
[9d91ee5e] New test case for ticket [b899b6042f97f52d]. (user: drh, tags: trunk)
20:54
[3b7dbe9d] Add support for new operators in virtual tables: !=, IS, IS NOT, IS NULL, and NOTNULL. (user: drh, tags: trunk)
19:47
[0fb992af] Closed-Leaf: Refactor names of constants and functions associated with the auxiliary operators for xBestIndex. (user: drh, tags: vtab-extra-ops)
18:37
[d3153abd] Minor adjustments to indentation and spacing for clarity. No changes to code. (user: drh, tags: vtab-extra-ops)
08:53
[8d24e080] Add tests to check that affinities work with != operators on virtual table column values. No changes to code. (user: dan, tags: vtab-extra-ops)
2017-09-10
01:06
[99b9140c] Simplifications to the PRAGMA integrity_check code generator. (user: drh, tags: improved-integrity-check)
2017-09-09
22:46
[b6425d01] Simplification and performance improvement to sqlite3_reset(). (user: drh, tags: improved-integrity-check)
20:38
[8fa923ca] Improved detection of malformed records by PRAGMA integrity_check. (user: drh, tags: improved-integrity-check)
19:41
[34c8e952] Enhance the vtab interface to handle IS, !=, IS NOT, IS NULL and IS NOT NULL constraints. (user: dan, tags: vtab-extra-ops)
08:03
[e63d1a7c] Leaf: Use a mutex-free PRNG for the random() and randomblob() SQL functions and for the randomness used during checkpoint operations. (user: drh, tags: mutex-free-randomness)
06:10
[6a0b9d9d] Leaf: Merge trunk enhancements (user: drh, tags: apple-osx)
00:51
[faa22e29] Fix harmless compiler warnings seen with MSVC. (user: mistachkin, tags: trunk)
2017-09-08
17:48
[e1e3ca7e] Have the header comment for sqlite3Checkpoint() mention TRUNCATE along with the other three checkpoint types. No changes to code. (user: dan, tags: trunk)
2017-09-07
09:56
[02828d71] Prevent a possible crash when trying to recover using a carefully corrupted \ and truncated rollback journal. (Test case in TH3) (user: drh, tags: trunk)
2017-09-05
20:16
[9e393a0e] Update "PRAGMA integrity_check" to detect inconsistencies between a single record's header and body. (user: dan, tags: trunk)
17:23
[868cd196] Fix a comment describing the xRowid method of the "series" virtual table. No code changes. (user: dan, tags: trunk)
16:24
[7fdd6298] Add experimental API sqlite3rbu_temp_size_limit(). For limiting the amount of temporary disk space RBU uses. (user: dan, tags: trunk)
2017-09-04
19:31
[72d22c22] Use the SQLITE_CORRUPT_BKPT return code in a couple more places. (user: mistachkin, tags: trunk)
18:44
[77854694] Add the 'mksourceid' executable to the clean target for MSVC. (user: mistachkin, tags: trunk)
00:33
[c7f9f47b] Proposed fix for ticket [b899b6042f97f5] (user: drh, tags: trunk)
00:19
[03f3cc03] Fix recent test cases in test/indexepxr2.test so that they work even without SQLITE_ENABLE_STAT4 and SQLITE_ENABLE_JSON1. (user: drh, tags: trunk)
2017-09-01
14:50
[b2e2100c] Add the new sqlite3PagerUnrefPageOne() pager method to deal with the special case of unreferencing page1. (user: drh, tags: trunk)
12:57
[c4e7e175] Remove an obsolete optimization in pcache that due to more recent changes was recently making the code a little slower. (user: drh, tags: trunk)
12:18
[919863b1] Small size and performance improvement in pcacheManageDirtyList() by not zeroing the PgHdr.pDirtyNext and PgHdr.pDirtyPrev pointers for PgHdr objects that are not on the dirty list. (user: drh, tags: trunk)
2017-08-31
21:11
[4094a341] Clarify the documentation about "protected" versus "unprotected" sqlite3_value objects. No changes to code. (user: drh, tags: trunk)
2017-08-30
13:21
[bcc20be5] Remove unnecessary "__declspec(dllexport)" qualifiers from generated file shell.c. (user: dan, tags: trunk)
04:44
[ffd437da] Small performance optimization in pcache1. (user: drh, tags: trunk)
2017-08-29
20:21
[a06263f1] Faster memory allocation from lookaside by not trying to keep track of the number of outstanding allocations, and rather computing that value only when requested. (user: drh, tags: trunk)
17:52
[1b3df8ff] Leaf: Add a Tcl script to run the performance tests described in README-server-edition.html. (user: dan, tags: server-process-edition)
2017-08-28
17:19
[d53108e7] Merge recent enhancements from trunk. (user: drh, tags: begin-concurrent)
17:00
[64a8ae68] Add the --enable-update-limit option to the ./configure script. (user: drh, tags: trunk)
16:11
[1ba051e3] Avoid unnecessary mutexes in the pcache1 implementation in the common case where no auxiliary page cache memory is configured. (user: drh, tags: trunk)
15:51
[54b00024] Remove the rarely-used scratch memory allocator. This makes the code smaller, faster, and easier to maintain. In place of the scratch allocator, add the SQLITE_CONFIG_SMALL_MALLOC configuration option that provides a hint to SQLite that large memory allocations should be avoided. (user: drh, tags: trunk)
14:33
[2348045f] Backport changes to shell.c into shell.c.in. (user: drh, tags: trunk)
11:12
[cf0d3715] Fix the ".dump", ".schema", and ".fullschema" commands of the command-line shell so that they work even if PRAGMA empty_result_callbacks is enabled. Fix for ticket [02f0f4c54f281]. (user: drh, tags: trunk)
2017-08-27
10:55
[c93298d5] Leaf: Instrumentation and changes in an effort to reduce thread contention. (user: drh, tags: reduced-thread-contention)
2017-08-25
19:51
[1783c54c] Fix a few over-length source code lines. No functional changes. (user: drh, tags: trunk)
15:43
[776d9128] Size and performance optimization for sqlite3Init(). (user: drh, tags: trunk)
13:34
[39f708d1] Small performance optimization in sqlite3WhereBegin(). (user: drh, tags: trunk)
13:02
[2738b8db] Convert a branch made unreachable by [59560d07] into an assert(). (user: drh, tags: trunk)
11:44
[e8d23afe] Improve the internal mechanism used to keep track of what kind of syncing to do for WAL transaction commits and checkpoint operations. Use the checkpoint-style of syncing to sync the header of a new or restarted WAL file. (user: drh, tags: trunk)
09:17
[b79cc8dc] Avoid returning duplicate rows in experimental pragmas "pragma_list", "module_list" and "function_list". (user: dan, tags: trunk)
01:14
[bf65dae8] Closed-Leaf: Update the mechanism used to keep track of what kind of syncing to do for WAL transaction commits and checkpoint operations. Use the checkpoint-style of syncing to sync the header of a new or restarted WAL file. (user: drh, tags: wal-sync-refactor)
2017-08-24
20:54
[25292b9a] Fix an incorrect hyperlink in a comment. (user: drh, tags: trunk)
15:43
[7ec72314] Fixes to documentation about SQLITE_OPEN_URI. (user: drh, tags: trunk)
13:55
[d2f9230c] Make sure the sqlite3_result_pointer() interface does not leave a VM register in an inconsistent state. Fix for ticket [7486aa54b968e9b5]. Test cases are in TH3. (user: drh, tags: trunk)
10:10
[c3fe1f4b] Test BEGIN CONCURRENT transactions that consist entirely of read-only statements. (user: dan, tags: begin-concurrent)
2017-08-23
23:09
[59560d07] Performance optimization to pageFindSlot() in the b-tree layer. (user: drh, tags: trunk)
20:36
[bc1ec123] Size and performance optimization to dropCell() and freeSpace(). (user: drh, tags: trunk)
14:45
[77074990] Smaller and faster implementation of the fillInCell() routine. (user: drh, tags: trunk)
2017-08-22
21:23
[e69c0c87] Update documentation to make it clear that SQLITE_SOURCE_ID and sqlite3_sourceid() might changes if the source code is edited. (user: drh, tags: trunk)
21:07
[564c7340] Less dramatic changes to the source-id following an edit. Modify the way that the amalgamation is constructed to give it the opportunity to detect changes and modify the source-id. (user: drh, tags: trunk)
19:54
[515d6a83] Modify the SQLITE_SOURCE_ID if the source code has changed in any way since the previous check-in. (user: drh, tags: trunk)
19:49
[a1b3337e] Closed-Leaf: Trying again to get out-of-tree builds to work correctly. (user: drh, tags: mksourceid)
19:44
[ca5dcb4a] Leaf: mksourceid still does not work right. (user: drh, tags: mistake)
19:43
[5a037ac2] Attempting to fix the source-id generator so that it works for out-of-tree builds. (user: drh, tags: mksourceid)
19:19
[d4c05e04] Add the "mksourceid" program to the build process. That program changes the SQLITE_SOURCE_ID if the source tree has been modified in any way. (user: drh, tags: mksourceid)
15:21
[885c2b44] Fix error tests in seldom-used compile-time branches of the unix backend. (user: drh, tags: trunk)
2017-08-21
02:20
[56d19f9f] Remove an unnecessary conditional. (user: drh, tags: trunk)
02:05
[6538ef7b] Minor optimization to sqlite3VdbeMemSetStr(). (user: drh, tags: trunk)
2017-08-19
20:38
[d01d2cff] Space and size optimization to the printf implementation. (user: drh, tags: trunk)
15:50
[2dd36ade] Ensure that write-locks on pages are dropped at the end of each write transaction, even if there is still a read transaction open. (user: dan, tags: server-process-edition)
2017-08-18
22:30
[745bc8de] Another size and performance optimization to readDbPage(). This time we eliminate some unnecessary local variables. (user: drh, tags: trunk)
21:14
[ca9e1875] Size and performance optimization the readDbPage() routine in the pager. (user: drh, tags: trunk)
18:55
[abb6e076] Add tests to this branch. (user: dan, tags: server-process-edition)
16:09
[3075cfa0] For the unix VFS, avoid an unnecessary stat() system call prior to opening any file in the common case where there are no unused file descriptors. (user: drh, tags: trunk)
16:04
[66fb9e1c] Do not search for locks to clear when connecting to a db in multi-process mode unless it looks like the previous user of the client-id crashed. (user: dan, tags: server-process-edition)
14:34
[eb1202b5] Combine the OP_CreateTable and OP_CreateIndex opcodes of the bytecode engine into a single OP_CreateBtree opcode. This simplifies the implementation and makes the bytecode programs clearer. (user: drh, tags: trunk)
08:29
[37e19008] Only use indexes on expressions to optimize ORDER BY and GROUP BY if the collation sequence matches. Possible fix for [e20dd54a]. (user: dan, tags: trunk)
2017-08-17
20:53
[a42a438c] Use the __builtin_clzll() function of gcc to improve the performance and reduce the size of the sqlite3LogEst() routine. (user: drh, tags: trunk)
19:32
[a8115f95] Add support for crash recovery in multi-process mode. And add test cases for the same. (user: dan, tags: server-process-edition)
19:23
[264a5e1b] Small optimization in the Expr tree walker. (user: drh, tags: trunk)
18:54
[0367a4d5] Size optimization in the authorizer error message generation logic. (user: drh, tags: trunk)
18:23
[f13682ea] In sqlite3ViewGetColumnNames(), return the number of errors, not an error code. (user: drh, tags: trunk)
18:17
[0712f057] The RTREE extension should return SQLITE_CORRUPT_VTAB, not just SQLITE_CORRUPT when it encounters incorrectly formatted shadow tables. (user: drh, tags: trunk)
14:47
[fb6ca99b] Remove an unnecessary branch from the [be436a7f4587ce517ddc] fix. (user: drh, tags: trunk)
14:12
[2101b420] Add test cases for ticket [be436a7f4587ce517] using virtual table modules fts5 and rtree. (user: dan, tags: trunk)
02:26
[a7bc7752] Defer schema resets when the query planner is running. Proposed fix for ticket [be436a7f4587ce517]. (user: drh, tags: trunk)
2017-08-16
19:20
[f078deb2] Avoid a test for CURTYPE_BTREE in sqlite3VdbeCursorMoveto() in order to reduce the size and improve the performance of OP_Column. (user: drh, tags: trunk)
17:06
[380a7b7a] Update this branch with the latest changes from trunk. (user: dan, tags: server-process-edition)
16:52
[04e0cb57] Enhance this branch to support page-level-locking (without MVCC) for multi-process deployments. (user: dan, tags: server-process-edition)
14:16
[39543903] Remove an unnecessary local variable from OP_Column, for a small size reduction and performance increase. (user: drh, tags: trunk)
11:04
[dc98a92f] Performance improvement in the OP_Column opcode. (user: drh, tags: trunk)
2017-08-15
14:14
[2cf3f3de] Small size and performance improvement in the OP_Column opcode. (user: drh, tags: trunk)
03:46
[373b71d1] Btree optimization: New field BtCursor.pPage that points to the current page, saving a single pointer dereference on each access. (user: drh, tags: trunk)
2017-08-14
23:53
[16969338] Minor size and performance optimization to sqlite3BtreeCloseCursor(). (user: drh, tags: trunk)
18:13
[240d5714] Change the internal btree routine moveToRoot() to return SQLITE_EMPTY if the table is empty or if it has pgnoRoot==0. This simplifies the callers, making them smaller and faster. The SQLITE_EMPTY result code is intercepted and changed into SQLITE_OK before surfacing in an API. (user: drh, tags: trunk)
17:03
[25e92baa] Fix harmless indentation error. (user: drh, tags: trunk)
14:53
[d0da791b] Sometimes a TK_COLUMN Expr node can have Expr.pTab==0 if it is a reference to an expression column in an index on an expression. Fix for ticket [aa98619ad08ddcab]. (user: drh, tags: trunk)
07:16
[8e1b28ed] Remove code for PLL support in wal mode from this branch. (user: dan, tags: server-process-edition)
06:55
[bc2498d6] Update this branch with latest trunk changes. (user: dan, tags: server-process-edition)
01:33
[7e0d3e9c] Properly dequote column names in tables constructed by an aggregate SELECT. (user: drh, tags: trunk)
2017-08-12
18:31
[02174842] Add new test file fts5vocab2.test. (user: dan, tags: trunk)
14:06
[42560723] Add a more rigorous test case for the bug fixed by the previous commit on this branch. (user: dan, tags: begin-concurrent)
02:16
[14d262d6] Update the speed-check.sh test script to append log output to the end of the cout-NAME.txt file. (user: drh, tags: trunk)
02:01
[6e52fa5f] Remove the zBase field from the StrAccum object. Resulting code is slightly smaller and faster. (user: drh, tags: trunk)
01:09
[28a5aec1] Size and performance micro-optimization on sqlite3SrcListIndexedBy(). (user: drh, tags: trunk)
2017-08-11
21:16
[38dd9b50] Fix a problem allowing a conflicting transaction to be committed in the case where more than one 32KB shared-memory page has been written to since the transaction was started. (user: dan, tags: begin-concurrent)
20:22
[11054cf5] Add another PAGERTRACE() macro to show when pages are added to Pager.pAllRead. No impact on production builds. (user: drh, tags: begin-concurrent)
19:31
[39f39e3d] Add a PAGERTRACE() macro to log when frames are written into the WAL file. This is for analysis only and is a no-op for production builds. (user: drh, tags: begin-concurrent)
19:16
[47e71695] Merge the latest enhancements from trunk. (user: drh, tags: begin-concurrent)
18:59
[831156a4] Fix compiler warnings that arise if the PAGERTRACE macro is turned on. This changes does not affect production builds. (user: drh, tags: trunk)
18:55
[aa49926d] Improved comments in the header of the LSM1 vtab module. No code changes. (user: drh, tags: trunk)
13:51
[cb0c49cb] New test cases for LSM1. (user: drh, tags: trunk)
12:49
[2164031b] Convert the LSM1 virtual table to be WITHOUT ROWID and get UPDATE and DELETE operations working on it. (user: drh, tags: trunk)
03:47
[9466d952] Simplification to the like optimization logic. Remove unnecessary branches. (user: drh, tags: trunk)
2017-08-10
20:43
[c601d128] Allow WITHOUT ROWID virtual tables to be writable as long as they have exactly one column as their PRIMARY KEY. (user: drh, tags: trunk)
20:36
[34a7bd71] Add the "instance" type to the fts5vocab virtual table module. For direct access to the contents of the fts5 term index. (user: dan, tags: trunk)
19:12
[f38ff718] Closed-Leaf: Fix a typo in csv01.test introduced by the previous commit. (user: dan, tags: writable-vtab-without-rowid)
19:10
[b0e3b88a] Add extra tests to this branch. (user: dan, tags: writable-vtab-without-rowid)
17:53
[6997e00c] Test case for writing to a WITHOUT ROWID virtual table. The TCLVAR virtual table is modified to add a "fullname" column which is the primary key, and to accept update operations against the primary key. (user: drh, tags: writable-vtab-without-rowid)
15:19
[ab9ee4c1] Experimental changes that allow a WITHOUT ROWID virtual table to be writable as long as it has only a single-column PRIMARY KEY. (user: drh, tags: writable-vtab-without-rowid)
03:27
[e49279e6] Add a first draft of the "vtablog" extensions that implements a generic virtual table useful for experimentation using the command-line shell. (user: drh, tags: trunk)
2017-08-09
22:55
[dcdf0913] Preserve the error code from xConnect or xCreate methods in virtual table implementations when they are encountered during parsing. (user: drh, tags: trunk)
20:35
[a6256980] Leaf: Add experimental sqlite3_open_v2() flag SQLITE_OPEN_REUSE_SCHEMA. For sharing identical in-memory schema objects between connections. (user: dan, tags: reuse-schema)
19:27
[94434a25] Various bug fixes for the new LSM1 virtual table design. (user: drh, tags: trunk)
18:40
[313df946] Work toward redesigning the interface to the LSM1 virtual table. (user: drh, tags: trunk)
2017-08-08
21:40
[795eede3] The identifier "vsnprintf" appears to be a reserved word in recent versions of XCode, so avoid using it as a structure field. (user: drh, tags: trunk)
21:30
[f4a4b149] Fix a faulty signed/unsigned character comparison in the LIKE optimization logic. (user: drh, tags: trunk)
20:03
[537e3be2] Enhance the CSV virtual table extension so that it accepts the last row of the CSV file even if the last row omits the closing \n, as long as the last row has a full set of columns. (user: drh, tags: trunk)
2017-08-07
19:12
[b26d7a1c] Avoid casting a value larger than 2^31 to a (size_t) or (SIZE_T) on systems where it is a 32-bit type. (user: dan, tags: trunk)
19:06
[f08d63b4] Leaf: On Windows, avoid casting a value larger than 2^31 to a (SIZE_T) on systems where it is a 32-bit type. (user: mistachkin, tags: mmap-size-limit)
18:54
[4249fcf7] Fix a problem with handling SQLITE_FCNTL_MMAP_SIZE requests with a negative parameter in os_unix.c. (user: dan, tags: mmap-size-limit)
18:27
[7c8b6f1c] Update bigmmap.test to account for builds that use "-DSQLITE_MAX_MMAP_SIZE=<integer-constant>LL". (user: dan, tags: mmap-size-limit)
18:13
[46c3085d] Avoid casting a value larger than 2^31 to a (size_t) on systems where it is a 32-bit type. (user: dan, tags: mmap-size-limit)
17:28
[38f30091] Fix an out-of-order test number. (user: mistachkin, tags: trunk)
17:14
[17447062] Add new test file "bigmmap.test". For testing builds with -DSQLITE_MAX_MMAP_SIZE > 2GB. (user: dan, tags: trunk)
14:15
[17bc7ded] Update this branch with latest trunk changes. (user: dan, tags: server-process-edition)
2017-08-05
16:15
[6ce8b7ca] Fix a segfault in swarmvtab that could occur if there was an error in the SQL statement passed to the constructor. Add other test cases. (user: dan, tags: trunk)
15:49
[422cd9f3] Microoptimization in pcache1.c makes the code slightly smaller and faster. (user: drh, tags: trunk)
15:30
[002a9c7b] Fix memory leak in swarmvtab. (user: dan, tags: trunk)
2017-08-04
20:27
[0f6f6f03] Add the swarm virtual table to the existing union virtual table module. (user: drh, tags: trunk)
08:24
[e11e6eb1] Add SQLITE_API qualifiers to public API functions in header file sqlite3rbu.h. (user: dan, tags: trunk)
08:23
[61ab112f] Closed-Leaf: Update script tool/mksqlite3c.tcl to avoid duplicating the SQLITE_API qualifier when copying sqlite3rbu.h into the amalgamation. (user: dan, tags: sqlite3rbu.h-fix)
2017-08-03
15:50
[d8637bad] Add SQLITE_API qualifiers to public API functions in header file sqlite3rbu.h. (user: dan, tags: sqlite3rbu.h-fix)
15:43
[7676b39b] Fix some problems in RBU test cases. Also update RBU source code to better handle the trivial case where an RBU update is applied to a database zero pages in size. (user: dan, tags: trunk)
00:29
[654935c7] Optimization to the comparison opcodes in the byte-code engine. (user: drh, tags: trunk)
2017-08-02
22:43
[aea5990e] In the KeyInfo object, refactor the nField and nXField elements into nKeyField and nAllField, which are more useful and run a little faster. (user: drh, tags: trunk)
19:04
[527974d4] Avoid redundant calls to sqlite3ApiExit() in sqlite3_step(). (user: drh, tags: trunk)
18:28
[bcc6dacb] Only attempt to invoke WAL callbacks when a transaction has committed. (user: drh, tags: trunk)
18:27
[f3c39c29] Minor optimization on clearCell() (user: drh, tags: trunk)
15:50
[49ba54e2] Optimizations associated with error handling in btree cursors. (user: drh, tags: trunk)
12:38
[c45078c0] Remove unused token codes. (user: drh, tags: trunk)
11:36
[cb3742f5] Rearrange some of the added token codes for a very slight size decrease and performance increase. (user: drh, tags: trunk)
11:04
[1cad2926] Rearrange integer token values in the parser and logic in the resolveP2Values() routine for a small size reduction and performance increase. (user: drh, tags: trunk)
03:21
[eef643a3] Show which opcodes are jumps in the comments when generating the opcodes.h header file. (user: drh, tags: trunk)
03:21
[a6e4c5ae] Add the "%token" control to the lemon parser. Not currently used by SQLite. (user: drh, tags: trunk)
02:46
[82e46fe0] Faster implementation of resolveP2Values(). (user: drh, tags: trunk)
2017-08-01
20:59
[436a89b9] Slightly smaller and faster by allocating Parser objects on the stack. (user: drh, tags: trunk)
19:53
[3e02474c] Split the OP_Last opcode into OP_Last and OP_SeekEnd. Use OP_SeekEnd to position a cursor prior to appending. Ticket [cb91bf4290c211d]. (user: drh, tags: trunk)
14:16
[24190b22] Take advantage of atomic-write capabilities in the F2FS filesystem when the database is stored on such a filesystem. This is a compile-time option activated using SQLITE_ENABLE_BATCH_ATOMIC_WRITE. (user: drh, tags: trunk)
00:20
[95e8f316] Allow ATTACH and DETACH inside of a transaction. (user: drh, tags: trunk)
2017-07-31
19:39
[0c77935c] Recognize 'AMD64' as 'x64' in the TclKit batch tool for MSVC. (user: mistachkin, tags: trunk)
19:26
[b3b89f4f] Sync up the MSVC autoconf makefile. (user: mistachkin, tags: trunk)
17:51
[14e6c302] Fix a windows-compatibility issue in the recently added schema6.test script. (user: drh, tags: trunk)
17:06
[cdc6494c] Prevent OSSFuzz from using debugging pragmas that are disabled in default builds and which generate lots of excess output. (user: drh, tags: trunk)
16:42
[ade7ddf1] Move the generation of output column names earlier, to right after name resolution and before query transformations such as flattening. This prevents the names from getting mangled by query transformations, and obviates hacks in the query flattener that attempt to work around the name mangling. The resulting code is smaller and faster and gives more consistent output. Fix to ticket [de3403bf5ae5f72ed]. (user: drh, tags: trunk)
2017-07-30
19:50
[ac1da06a] Add the schema6.test module for demonstrating schemas that generate identical and different content. (user: drh, tags: trunk)
18:40
[5216bfb7] Correctly handle an "INTEGER PRIMARY KEY UNIQUE" column in a WITHOUT ROWID table. This is a fix for ticket [bc115541132dad136], a problem discovered by OSSFuzz. (user: drh, tags: trunk)
2017-07-29
17:02
[0c38dde4] Closed-Leaf: New test cases for column name generation interacting with the query flattener. (user: drh, tags: early-column-names)
16:01
[09834279] Move the generation of output column names earlier, to right after name resolution and before query transformations such as flattening. This prevents the names from getting mangled by query transformations, and obviates hacks in the query flattener that attempt to work around the name mangling. The resulting code is smaller and faster and gives more consistent output. This is an alternative fix to ticket [de3403bf5ae5f72ed]. (user: drh, tags: early-column-names)
2017-07-28
22:22
[bcec155e] Update Tcl version used by the TclKit batch tool for MSVC. (user: mistachkin, tags: trunk)
22:13
[3286e1a0] Fix harmless compiler warning. (user: mistachkin, tags: trunk)
20:49
[4c0520d4] Leaf: Disable the writecrash.test module on Windows. (user: drh, tags: batch-atomic-write)
18:16
[6a505bdd] More precise determination of when an in-memory journal needs to be spilled to disk. (user: drh, tags: batch-atomic-write)
13:18
[94a20047] Add new extended error codes for the atomic write file-controls. (user: drh, tags: batch-atomic-write)
11:05
[f9213e48] Add new test file test/atomic.test. (user: dan, tags: batch-atomic-write)
01:53
[67bad7fb] Add the SQLITE_ENABLE_BATCH_ATOMIC_WRITE macro to ctime.c (user: drh, tags: batch-atomic-write)
2017-07-27
20:24
[f5d330f4] Enhance the like optimization so that it works with an ESCAPE clause. (user: drh, tags: trunk)
19:59
[0645f25c] Increase the version number to 3.21.0 in anticipation for changes to go into the next release. (user: drh, tags: trunk)
18:49
[c63903a4] Merge the pointer-passing interface changes from the 3.20 branch. (user: drh, tags: trunk)
18:43
[2dfcd9a8] Simplified documentation for the pointer passing interface. (user: drh, tags: branch-3.20)
18:34
[4477e60c] Do not set device-capabilities flags SEQUENTIAL or SAFE_APPEND for f2fs file-systems. (user: dan, tags: batch-atomic-write)
17:45
[5a2340b8] Add destructor functions for the pointer argument (NB: not the type string) to the sqlite3_bind_pointer() and sqlite3_result_pointer() interfaces. Use this new capability to resolve a pointer leak in the custom geometry function mechanism of the RTREE extension. (user: drh, tags: branch-3.20)
16:42
[d6684d2a] Closed-Leaf: In sqlite3_bind_pointer(), invoke the destructor if the bind index is out of range, like sqlite3_bind_blob() does. (user: drh, tags: pointer-with-destructor)
15:53
[601ad679] Improved implementation of the destructor on pointer-passing interfaces. (user: drh, tags: pointer-with-destructor)
03:48
[3d9e841f] Add a destructor argument to sqlite3_bind_pointer() and sqlite3_result_pointer(). (user: drh, tags: pointer-with-destructor)
2017-07-26
19:59
[3808a00f] Add the new sqlite3.mDbFlags field. Factor out bits of sqlite3.flags that do not interact with PRAGMA statements into sqlite3.mDbFlags. (user: drh, tags: trunk)
18:26
[ac1fd6be] Closed-Leaf: Allow ATTACH and DETACH to occur inside of a transaction. (user: drh, tags: attach-in-trans)
10:04
[622b1089] Fix a comment on the UnpackedRecord.r1 and UnpackedRecord.r2 fields. No changes to code. (user: drh, tags: trunk)
2017-07-25
15:12
[f39cb76b] Release candidate 2 for 3.20.0. (user: drh, tags: branch-3.20)
01:34
[1ca707a4] Fix a bug in the deterministic date/time function logic that can only appear with STAT3 or STAT4. (user: drh, tags: trunk)
2017-07-24
20:01
[1a632a9a] Do not attempt to run test file unionvtabfault.test with SQLITE_OMIT_VIRTUAL_TABLE builds. (user: dan, tags: trunk)
19:25
[9a5a3d60] Do not attempt to run test file unionvtab.test with SQLITE_OMIT_VIRTUAL_TABLE builds. (user: dan, tags: trunk)
17:37
[f483d06a] Handle a real OOM condition when incrblob2.test is run on a low-memory machine. (user: drh, tags: trunk)
15:29
[b1572d4e] Additional documentation on sqlite3_bind_pointer() and sqlite3_result_pointer(). No changes to code. (user: drh, tags: trunk)
14:44
[a98f07d9] Compiler warning fix associated with date/time functions. (user: drh, tags: trunk)
2017-07-22
20:12
[eb871800] Add a test for the outcome of a process crash within an xWrite VFS method call. (user: dan, tags: batch-atomic-write)
16:58
[9f1b83fa] Add the "atomic-batch-write" permutation to permutations.test. This permutation fails if not run on a file-system that supports atomic-batch-writes. (user: dan, tags: batch-atomic-write)
16:32
[2e80e19e] Keep batch-atomic-writes turned on for journal_mode=MEMORY, but turn them off for synchronous=OFF. Refuse to compile with both SQLITE_MMAP_READWRITE and SQLITE_ENABLE_BATCH_ATOMIC_WRITE. Fix up some comments in the commit logic. (user: drh, tags: batch-atomic-write)
16:00
[a89b62c4] Omit unused batch-atomic-write code if SQLITE_ENABLE_BATCH_ATOMIC_WRITE is not defined. (user: drh, tags: batch-atomic-write)
2017-07-21
21:06
[532bbf1f] Use ioctl(F2FS_IOC_GET_FEATURES) to determine whether or not atomic batch writes are available. (user: dan, tags: batch-atomic-write)
20:31
[8de20fc7] Remove stray (and incomplete) comment from a test file. No changes to code. (user: mistachkin, tags: trunk)
20:29
[65ec077b] Fix typo in comment. No changes to code. (user: mistachkin, tags: batch-atomic-write)
14:49
[83077ec8] Additional documentation on the new VFS interface. No changes to code. (user: drh, tags: batch-atomic-write)
2017-07-20
21:18
[5e944eea] Add the documentation text for the new VFS interfaces used by batch-atomic writes. (user: drh, tags: batch-atomic-write)
21:01
[f2c6b584] Transform two #ifdef statements into #if statements. (user: drh, tags: batch-atomic-write)
21:00
[7eb9bf2c] Split SQLITE_ENABLE_ATOMIC_WRITE into two options - the original and SQLITE_ENABLE_BATCH_ATOMIC_WRITE. (user: dan, tags: batch-atomic-write)
20:49
[e4b1dd36] Fix a harmless typo, but one that would show up in the documentation if not fixed. (user: drh, tags: trunk)
19:49
[416973ed] Add support for F2FS atomic writes. Untested at this point. (user: dan, tags: batch-atomic-write)
15:08
[a90c062d] Enhance the built-in date/time functions so that they can be used in CHECK constraints, in the WHERE clause or partial indexes, and index expressions, provided that none of the non-deterministic keywords ("now", "localtime", "utc") are used as arguments. (user: drh, tags: trunk)
14:36
[b7f70c7f] Closed-Leaf: New test cases for date/time functions in indexes on expressions, in the WHERE clause of partial indexes, and in CHECK constraints. (user: drh, tags: index-on-date-func)
13:17
[22eda098] Combine the Parse.ckBase and Parse.iSelfTab fields into just Parse.iSelfTab. This fixes a problem with date/time functions in check-constraints. Add some test cases for date/time functions in index expressions and check constraints. (user: drh, tags: index-on-date-func)
2017-07-19
19:48
[0a5e1c04] Allow indexes to be created on date/time functions as long as the 'now' date and the 'localtime' and 'utc' modifiers are not used. (user: drh, tags: index-on-date-func)
18:01
[d14fc621] Remove some 'breakpoint' commands in test files. (user: mistachkin, tags: trunk)
11:52
[c93284cd] Add further tests to unionvtab.test. (user: dan, tags: trunk)
11:20
[929bc46b] Add VFS interfaces needed to make use of batch atomic write capabilities in the underlying filesystem. (user: drh, tags: batch-atomic-write)
2017-07-18
21:19
[255d6b99] Fix a crash in unionvtab caused by a misconfiguration. Add other test cases for the same. (user: dan, tags: trunk)
20:59
[505fdc8f] Fix shell.c.in so that it aligns with shell.c. (user: drh, tags: trunk)
20:49
[deadaad2] Add test cases and fix minor error-handling issues in unionvtab.c. (user: dan, tags: trunk)
20:30
[47b80ecc] Fix duplicate test name. No changes to code. (user: mistachkin, tags: trunk)
20:28
[d49639c2] Fix another harmless compiler warning. Get the MSVC makefile working with unionvtab. (user: drh, tags: trunk)
20:22
[4d147a1e] Suppress harmless compiler warnings in union-vtab. (user: drh, tags: trunk)
20:17
[a447fdf1] Remove an unused variable from unionvtab.c. (user: dan, tags: trunk)
20:03
[5bcf0f86] Improve the readability of the unionvtab code. (user: dan, tags: trunk)
19:51
[4a6c416f] Have unionvtab support constraints on the column that corresponds to the INTEGER PRIMARY KEY field of the underlying source tables in the same way as rowid. (user: dan, tags: trunk)
18:50
[6c9128e1] Add test cases to unionvtab.test. (user: dan, tags: trunk)
18:19
[948f9504] Add the union-vtab extension - still experimental and under active development. (user: drh, tags: trunk)
17:34
[9dbae1df] Do not use the flattening optimization for a sub-query on the RHS of a LEFT JOIN if that subquery reads data from a virtual table. Because it prevents the planner from creating an automatic index on the results of the sub-query, the flattening optimization sometimes slows things down in this case. (user: dan, tags: trunk)
17:13
[d2f0b2e8] Avoid creating an automatic index on the RHS of a LEFT JOIN to optimize an IS term. Fix for [ce68383b]. (user: dan, tags: trunk)
14:41
[0b69aa7e] Change the default command-line shell history depth to 2000 lines. (user: drh, tags: trunk)
2017-07-17
21:03
[f2c4a584] Closed-Leaf: Add test cases to test/unionvtab.test. (user: dan, tags: union-vtab)
20:25
[9c3f1b9a] Enhance error detection and fix other issues in unionvtab code. (user: dan, tags: union-vtab)
18:45
[e0aca7d2] Merge all changes from branch-3.20. Improvements to the fts5() extension interface. Work around a gcc/valgrind bug in the sqlite3_value_pointer() interface. (user: drh, tags: trunk)
17:46
[8a606e4a] Closed-Leaf: Interchange to branches within an "if" statement in sqlite3_value_pointer() in order to work around a bug in gcc. (user: drh, tags: branch-3.20)
15:38
[bc78235f] Improved the interface to the fts5() extension mechanism for enhanced security. (user: drh, tags: branch-3.20)
13:37
[9e8e1c4a] Merge the pointer-type enhancement from the 3.20 branch. (user: drh, tags: trunk)
12:41
[e4579e50] Comment changes clarifying details of the pointer-type parameter. No changes to code. (user: drh, tags: branch-3.20)
12:27
[e1196567] Add the pointer-type parameter to sqlite3_bind_pointer(), sqlite3_result_pointer(), and sqlite3_value_pointer(). The pointer type is a static string that must match (according to strcmp()) or else the pointer is passed as a NULL. This is a security measure to prevent crossing pointers between different extensions. (user: drh, tags: branch-3.20)
11:39
[c13264d5] Closed-Leaf: Improve the sqlite3_result_pointer() interface so that it cannot be faked using sqlite3_result_null() and sqlite3_result_subtype(). (user: drh, tags: pointer-types)
00:40
[211cce04] Add an experimental "pointer type" parameter to sqlite3_bind_pointer(), sqlite3_result_pointer(), and sqlite3_value_pointer(). The pointer type is a string that must compare equal using strcmp() or else the pointer comes through as a NULL. (user: drh, tags: pointer-types)
2017-07-15
20:48
[62a86aa6] Add the "unionvtab" virtual table extension in ext/misc/unionvtab.c. (user: dan, tags: union-vtab)
20:44
[b64d64c8] Merge the fix for ticket [a4e06e75a9ab61a12] from trunk. (user: drh, tags: branch-3.20)
20:33
[253945d4] Fix a register allocation problem in PRAGMA integrity_check that caused the same register to be used for two different purposes on the first ATTACHed database if the schema for the ATTACHed database was noticable more complex than the schema for the first database. Fix for ticket [a4e06e75a9ab61a1]. (user: drh, tags: trunk)
20:25
[687bd478] Fix a missing \n at the end of a comment causing a line to be too long. No code changes. (user: drh, tags: trunk)
17:57
[5ec37c62] Enhance the showstat4 utility program to show the full precision of floating point values in sqlite_stat4 tables. (user: drh, tags: trunk)
13:49
[47cf83a0] Minor change to one of the command-line shell test scripts to make that script compatible with Tcl 8.5. (user: drh, tags: branch-3.20)
13:35
[035a86ec] First release candidate for version 3.20.0. (user: drh, tags: branch-3.20)
08:02
[0953e746] Fix another minor problem in test file like.test. (user: dan, tags: trunk)
06:35
[b61cc5a0] Fix test problems causing the "prepare" permutation test to fail. (user: dan, tags: trunk)
2017-07-14
20:53
[ad6699d4] Fix test problems with stmtvtab1.test under some permutations. (user: dan, tags: trunk)
19:52
[65f9f29c] Fix a typo in a comment used to generate documentation. No code changes. (user: drh, tags: trunk)
19:47
[ab165dcf] Identify requirements text in the SQLITE_DBCONFIG_ENABLE_QPSG documentation. Add some implementation marks for SQLITE_DBCONFIG_MAINDBNAME requirements. No code changes. (user: drh, tags: trunk)
19:22
[26423867] Add requirements marks for some of the new features in the 3.20 release. (user: drh, tags: trunk)
19:12
[394c6f4f] Tweak Makefile.in so that testfixture can be built with the --disable-amalgamation configure switch. (user: dan, tags: trunk)
17:50
[1eb56fe0] Modify mkopcodeh.tcl so that it can handle "same as" opcodes with values larger than the total number of opcodes. (user: dan, tags: trunk)
15:57
[6ed4ef03] In the LSM1 virtual table, dequote the filename before opening the file. (user: drh, tags: trunk)
15:45
[7dc5e70e] Changes to the LSM1 Tcl tests to make things work on Win32. (user: mistachkin, tags: trunk)
15:42
[b5e3b264] Include a hint in the header comment of the LSM1 makefile about how to set the LSMOPTS variable. (user: drh, tags: trunk)
15:32
[fe319bcd] Update the Makefile for LSM1 so that the LSMOPTS can be set prior to including the Makefile, in order to add platform arguments such as -fPIC. (user: drh, tags: trunk)
15:18
[604b9664] Fix a typo in the header comment to the remember extension. No code changes. (user: drh, tags: trunk)
15:14
[1bc4e934] Change the name of the STMT virtual table to SQLITE_STMT. Also remove the first column of that virtual table, which was a pointer leak. (user: drh, tags: trunk)
13:24
[8f6dd5e2] Minor updates to requirements marks and documention. No changes to code. (user: drh, tags: trunk)
11:40
[5e0a9793] Add very simple tcl tests for the lsm1 extension. (user: dan, tags: trunk)
04:16
[d8cd0434] Minor tweaks to documentation. No code changes. (user: drh, tags: trunk)
00:28
[271ca4ac] Fix harmless compiler warnings in the readline tab-completion logic of the command-line shell. (user: drh, tags: trunk)
2017-07-13
22:39
[889968bd] Improved documentation for the new sqlite3_bind_pointer() interface and its cousins. (user: drh, tags: trunk)
22:03
[26577814] Improvements to the documentation for SQLITE_PREPARE_PERSISTENT. No code changes. (user: drh, tags: trunk)
20:11
[9319f7b7] Fix documentation typo. No changes to code. (user: drh, tags: trunk)
19:11
[55f53965] Update header comments on the carray() and remember() extensions to bring out the fact that the pointer arguments must be bound using sqlite3_bind_pointer(). (user: drh, tags: trunk)
18:09
[72de49f2] Add new interfaces sqlite3_bind_pointer(), sqlite3_result_pointer(), and sqlite3_value_pointer() used to safely move pointer values through SQL without exposing underlying memory address information. (user: drh, tags: trunk)
17:56
[0bd7875b] Closed-Leaf: Fix an incorrect type signature for the loadable extension pointer for sqlite3_result_pointer(). (user: drh, tags: bind-pointer)
17:54
[e5a51803] Add the three new pointer interfaces to the loadable extension mechanism. Update sqlite3_value_subtype() documentation to remove the statement about it not being used internally. (user: drh, tags: bind-pointer)
17:48
[0fa2e170] Update the FTS3 extension to use sqlite3_result_pointer() and sqlite3_value_pointer() for passing FTS3 cursor objects from the table into functions such as snippet(). (user: drh, tags: bind-pointer)
17:34
[a54be6e0] Merge the latest changes from trunk. (user: drh, tags: bind-pointer)
2017-07-12
20:43
[0c805935] Smaller and faster implementation for vdbeFreeOpArray() and freeP4(). (user: drh, tags: trunk)
18:05
[604c11d1] Fix harmless compiler warnings about incomplete structure initializers. (user: drh, tags: trunk)
17:26
[f951c8b7] Remove unnecessary EP_Leaf settings on the Expr object. (user: drh, tags: trunk)
17:08
[54f55d3b] The EP_Resolved flag on the Expr object is not required for correctness nor performance, so remove it. (user: drh, tags: trunk)
14:10
[68824a43] Clarification and simplification and result column naming logic. (user: drh, tags: trunk)
14:03
[3e56a79a] Fix a problem in an lsmtest test case caused by writing data in "text" mode instead of "binary". (user: dan, tags: trunk)
12:19
[783100b8] Compile cleanly with SQLITE_OMIT_UTF16. (user: drh, tags: trunk)
2017-07-11
20:36
[39069941] In lsm, attempt to unmap the database file before truncating it when disconnecting. A mapped file may not be truncated on win32. (user: dan, tags: trunk)
19:55
[b0a49d90] Simplify the way in which the database file is truncated when the last connection disconnects. Also ignore the error code from the xTruncate call - as truncating a database file is always optional. (user: dan, tags: trunk)
18:11
[55e93f25] Fix harmless compiler warnings in the core. (user: drh, tags: trunk)
17:54
[2fe3a843] Make win32GetTimeOfDay() in the lsm1 test code more portable. (user: mistachkin, tags: trunk)
17:28
[b9debd62] Enabled the new sqlite3_prepare_v3() and sqlite3_prepare16_v3() interfaces for loadable extensions. (user: drh, tags: trunk)
17:06
[a8e651e0] Fix a whitespace alignment issue in lsm1. (user: mistachkin, tags: trunk)
16:46
[0f1307f1] Fix more harmless compiler warnings in lsm1, seen with MSVC 2015. (user: mistachkin, tags: trunk)
16:36
[cf6da4a5] Fix harmless compiler warnings seen with MSVC for lsm1. (user: mistachkin, tags: trunk)
13:59
[95cd1d9f] Add support for tab-completion (using the ext/misc/completion.c virtual table) to the command-line shell. (user: drh, tags: trunk)
13:34
[17e0bb12] Change the src/shell.c file so that it is generated from a new script at tool/mkshellc.tcl and the template file src/shell.c.in, and automatically includes the extensions it needs out of ext/misc. (user: drh, tags: trunk)
02:53
[724819b4] Fix a backup2 test case so that it works on FreeBSD. (user: drh, tags: trunk)
02:05
[0e213555] Add the "phase" output column on the COMPLETION table-valued function, for debugging. Improved comments on the implementation. (user: drh, tags: trunk)
01:38
[1cc97711] The COMPLETION virtual table now looks at the names of databases, tables, and columns in addition to SQL keywords. (user: drh, tags: trunk)
00:09
[caefbc72] Incomplete implementation of the COMPLETION table-valued function. So far it only works for SQL keywords. (user: drh, tags: trunk)
2017-07-10
21:32
[bd8a1fb9] Fix harmless compiler warnings in lsmtest. (user: mistachkin, tags: trunk)
20:39
[9a8f045d] Fix errors in comments in the STMT virtual table. No code changes. (user: drh, tags: trunk)
20:33
[bf7eda67] Minor cleanup and refactoring of the Win32 VFS for lsm1. (user: mistachkin, tags: trunk)
19:54
[05129374] Another spelling error in the README.md file. (user: drh, tags: trunk)
19:08
[12bc47c5] Spelling error in README.md (user: drh, tags: trunk)
19:07
[75c9327b] Yet another typo in README.md (user: drh, tags: trunk)
19:05
[20b1f0ef] Fix another README.md typo. (user: drh, tags: trunk)
19:03
[4f6ce7a3] Fix an obsolete statement about Lemon in the README.md file. (user: drh, tags: trunk)
18:57
[f3a6a64e] Cleanup header usage in lsmtest for files that require _O_BINARY. (user: mistachkin, tags: trunk)
18:52
[7bfd3ab7] Updates to the repository README.md file. (user: drh, tags: trunk)
18:33
[a82a9bea] In LSM, avoid calling the VFS xTestLock method to test for a lock that conflicts with one held by the same process. The results of such a call are considered undefined (since they are different under win32 and posix). (user: dan, tags: trunk)
18:04
[bde431b1] Add the "--newlines" option to the ".dump" command in the shell to disable the newline escaping mechanism. (user: drh, tags: trunk)
17:00
[c4cb9048] When multiple constraints need to be evaluated for a row, do any constraints that involve correlated subqueries last. Hence, the priority is index-covered constraints first, correlated subquery constraints last, and all others in the middle. This is a follow-on and improvement to the push-down optimization of check-in [d7bb79ed]. (user: drh, tags: trunk)
16:38
[0ca7474f] Closed-Leaf: Additional debugging Noop-comment in the constraint generator when wheretrace is enabled. (user: drh, tags: defer-where-subqueries)
15:26
[38edc677] Small performance optimization in sqlite3WhereExprUsage(). (user: drh, tags: defer-where-subqueries)
15:17
[a4fc9811] Fix another problem on this branch. (user: dan, tags: defer-where-subqueries)
14:39
[7d3cb39f] Fix a problem causing non-covered WHERE terms to be evaluated before covered WHERE terms. (user: dan, tags: defer-where-subqueries)
14:33
[1f9c1f35] When testing non-indexed WHERE constraints, test those that involve correlated sub-queries last of all. This increases the chances of not having to run the sub-query at all. (user: dan, tags: defer-where-subqueries)
13:24
[dc857a96] For sqlite3TreeView() debugging output, show the Expr.flags field on scalar subqueries. (user: drh, tags: trunk)
12:07
[f27b6370] Update error message text for standard error codes to better describe the latest usage of those error codes. Modify sqlite3_open_v2() so that it does return a valid sqlite3 object in the event of SQLITE_MISUSE due to bad open flags, so that sqlite3_errmsg() does not report "out of memory" in that case. (user: drh, tags: trunk)
11:17
[871752f2] Remove the error message text from disused error codes such as SQLITE_EMPTY and SQLITE_FORMAT. (user: drh, tags: trunk)
2017-07-09
18:55
[70096c50] Always make "column%d" column-names 1-based, never 0-based. (user: drh, tags: trunk)
00:30
[acf3b9cc] Make sure the columns of a VALUES() clause are named "column%d" even if the VALUES() clause is a subquery in the FROM clause of an outer query. (user: drh, tags: trunk)
2017-07-08
22:30
[70dae08a] Add the --icc, --gcc7, and --orm options to the speed-check.sh test script. (user: drh, tags: trunk)
2017-07-07
22:47
[0c246017] Basic test cases for PRAGMA secure_delete=FAST. (user: drh, tags: trunk)
21:20
[12a421bc] Fix comment in the Win32 VFS for lsm1. (user: mistachkin, tags: trunk)
21:15
[aea6e0ff] For lsmtest, use a more portable means of setting open() files to binary. (user: mistachkin, tags: trunk)
20:35
[54a38555] Adjust copy_file() lsmtest function so it works properly for locked database files on Win32. (user: mistachkin, tags: trunk)
20:06
[38978ce6] Add the "PRAGMA secure_delete=FAST" option, which overwrites most deleted content without increasing the amount of I/O. Deleted content might persist on the free page list, however. And extra CPU cycles are used for zeroing, of course. (user: drh, tags: trunk)
19:43
[732f90d6] Change the error message text for SQLITE_ERROR to omit the part about "missing database" as that meaning is now obsolete (since approx SQLite 2.0). (user: drh, tags: trunk)
19:22
[0961ec87] Fix typos in Win32 VFS for lsm1. (user: mistachkin, tags: trunk)
19:12
[aa4890b9] Fix the memcpy calls in the lsmWin32OsShmMap function for lsm1. (user: mistachkin, tags: trunk)
19:02
[2d6faebc] Enhance the MSVC makefile 'clean' target to handle lsm1. (user: mistachkin, tags: trunk)
18:31
[277a7fed] Add support for LSM_DEBUG to the MSVC makefile for lsm1. (user: mistachkin, tags: trunk)
18:06
[cc329eb8] In the command-line shell, when running ".schema" give a sensible error when the database file is locked. (user: drh, tags: trunk)
17:57
[63599fa5] Fix the usleep() macro in the Win32 test code for lsm1. (user: mistachkin, tags: trunk)
17:43
[e0b6ae92] Add new PRAGMAs: "function_list", "module_list", and "pragma_list". All are enclosed within #ifdef SQLITE_INTROSPECTION_PRAGMAS. The compile-time option is not on ctime.c yet, since these are still experimental and one can always test "PRAGMA pragma_list" and see whether or not it returns an empty set. (user: drh, tags: trunk)
17:33
[2f3c3781] Closed-Leaf: Add the "Pragma_list" pragma. Put all three pragmas created on this branch inside of #ifdef SQLITE_INTROSPECTION_PRAGMAS. (user: drh, tags: list-pragmas)
16:46
[9c7a9e80] Improve clarity in the Win32 VFS for lsm1. (user: mistachkin, tags: trunk)
16:29
[3340de83] Add support for LSM_DEBUG_MEM to the MSVC makefile for lsm1. (user: mistachkin, tags: trunk)
16:27
[5f726f28] Remove a block from the Win32 VFS for lsm1 that is now superfluous. (user: dan, tags: trunk)
16:09
[281ad505] In lsmtest, use an empty string instead of ":memory:" when requesting a temporary database from SQLite. This prevents other test code from trying to unlink() ":memory:", which fails on win32. (user: dan, tags: trunk)
16:07
[db4a4140] Remove a block from the Win32 VFS for lsm1 that is now superfluous. (user: mistachkin, tags: trunk)
16:06
[5a3140e4] Memory reallocation fix for the Win32 VFS for lsm1. (user: mistachkin, tags: trunk)
16:00
[c46f0f07] Enhance the sqlite3VdbeMultiLoad() interface to automatically generate the OP_ResultRow opcode on PRAGMA implementations, for a small reduction in the library footprint. (user: drh, tags: trunk)
15:43
[e5f01d7f] Add new pragmas: "function_list" and "module_list" (user: drh, tags: list-pragmas)
14:26
[73d0fc02] Merge recent enhancements from trunk. (user: drh, tags: bind-pointer)
13:59
[aacbb9a4] Exploit the fact that Expr.pRight and Expr.x are never used at the same time for a small performance gain. (user: drh, tags: trunk)
12:58
[115d4b83] More efficient and compact implementation of walkExpr(). (user: drh, tags: trunk)
12:43
[c1a1d68c] More aggressive use of EP_Leaf on expression nodes, to help prune searches. (user: drh, tags: trunk)
11:49
[9bc65635] Very slightly smaller and faster sqlite3WalkSelect(). (user: drh, tags: trunk)
2017-07-06
22:43
[7c7d53a9] Small adjustment to main.mk that facilitates giving non-standard compile-time options to the shell. (user: drh, tags: trunk)
16:33
[c5ed5ebd] Change the (machine-generated) keywordhash.h file to increase the scope of the tables used for keyword matching, so that the tables are accessible to functions other then keywordCode(). (user: drh, tags: trunk)
13:51
[efb4aab0] More compact implementation of the typeof() SQL function. (user: drh, tags: trunk)
13:23
[06269257] Avoid unnecessary upper-to-lower case conversion for function names when registering the built-in functions. (user: drh, tags: trunk)
03:06
[55ecd303] Small size reduction in findCollSeqEntry(). (user: drh, tags: trunk)
02:49
[503ba172] Avoid unnecessary calls to sqlite3GetCollSeq() for a small performance gain. (user: drh, tags: trunk)
01:28
[4da663d9] Slightly more compact implementation of the byte-code generator for the COMMIT and ROLLBACK commands. (user: drh, tags: trunk)
01:02
[7b2623f1] Small performance increase in sqlite3SrcListAppend(). (user: drh, tags: trunk)
2017-07-05
23:33
[f762f1ef] Make the hash table implementation a little smaller and faster. (user: drh, tags: trunk)
18:48
[b6b14ab6] Have fts3 virtual table cursors free internal resources when they reach EOF, instead of waiting until the xClose method is called. (user: dan, tags: trunk)
14:29
[2bce64c8] Fix a problem in lsmtest causing one test to fail for multi-threaded LSM connections. (user: dan, tags: trunk)
2017-07-04
19:34
[d1ba2002] Add the count-of-view optimization when compiled using SQLITE_COUNTOFVIEW_OPTIMIZATION. (user: drh, tags: trunk)
19:23
[ca757c86] Fix further OOM handling cases in LSM. (user: dan, tags: trunk)
17:25
[989a5c17] Fix a couple of problems in handling OOM conditions within LSM. (user: dan, tags: trunk)
12:50
[268a40f4] Fix a problem in the lempar.c Lemon template for YYSTACKDEPTH<=0 introduced by check-in [36e54cd8b1fb37] (user: drh, tags: trunk)
2017-07-03
21:09
[9bd3be92] Fix compiler warnings in LSM1, especially in the test logic. (user: drh, tags: trunk)
20:19
[b2c24879] Fix a bug in lsm queries on levels undergoing incremental an merge that contain range-delete markers. (user: dan, tags: trunk)
17:37
[9111ac69] Attempt to improve documentation on sqlite3_column_ and sqlite3_value_ interfaces. (user: drh, tags: trunk)
09:00
[e34eafd4] Add more tests for LSM log file recovery. Fix a problem in recovering log files that contain range deletes. (user: dan, tags: trunk)
2017-07-01
20:59
[dd55af30] Fix a memory management problem in lsm log recovery code. (user: dan, tags: trunk)
15:21
[66de6f4a] Enhance the RTree module to detect node truncation early and report an error. (user: drh, tags: trunk)
2017-06-30
23:46
[a99fa94d] Update the carray() and remember() extension functions so that they user the new sqlite3_value_pointer() interface. (user: drh, tags: bind-pointer)
23:09
[d9f4a831] Add APIs for binding pointers that can be used by app-defined functions. (user: drh, tags: bind-pointer)
20:11
[0db20efe] Improved documentation for sqlite3_value_type(). (user: drh, tags: trunk)
19:22
[d076d58f] Add some assert() statements in the Win32 interface for lsm1. (user: mistachkin, tags: trunk)
18:12
[0ef777d7] Fix some minor typos in lsm1. (user: mistachkin, tags: trunk)
11:44
[bacfe8cb] Avoid constantly freeing and reallocing small internal buffers associated with LSM cursors. Instead, allow them to persist for the lifetime of the cursor if they are LSM_SEGMENTPTR_FREE_THRESHOLD (default 1024) bytes or smaller. This change is based on research by Martijn Blaauw. (user: dan, tags: trunk)
2017-06-29
21:33
[5e3f9ea5] In the command-line shell, add the -quote option to start up in quote mode. Enhance the ".mode" command so that it reports the current output mode if given no arguments. (user: drh, tags: trunk)
21:11
[7782c04e] Remove the ".explain" command from the ".help" output of the command-line shell, though keep the implementation around for backwards compatibility. (user: drh, tags: trunk)
20:31
[a26e17ee] Some simple tests for the STMT virtual table. (user: drh, tags: trunk)
20:23
[3ed6877f] Avoid reading or writing the 32 locking bytes at the end of the first meta-page of an LSM database. (user: dan, tags: trunk)
20:13
[2b5df3e8] Closed-Leaf: Avoid reading or writing the 32 locking bytes at the end of the first meta-page of an LSM database. (user: dan, tags: lsm-metapage-fix)
19:08
[38ec4141] Fix issues in the POSIX and Win32 interfaces for lsm1. (user: mistachkin, tags: trunk)
17:27
[284707a7] Edit comments in sqlite.h.in used for generating documentation, to improve the description of the new sqlite3_prepare_v3() interfaces, and other miscellaneous cleanup. No changes to executable code. (user: drh, tags: trunk)
16:51
[cae64769] More updates to the Win32 interface for lsm1. (user: mistachkin, tags: trunk)
15:57
[1b4facb1] Correct typo in the Win32 interface for lsm1. (user: mistachkin, tags: trunk)
15:24
[03977248] 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. Use the new option in FTS3, FTS5, and RTREE. (user: drh, tags: trunk)
15:13
[4df6e247] Further corrections to the Win32 interface for lsm1. (user: mistachkin, tags: trunk)
14:33
[adfdb801] Rename the "stmts" virtual table to just "stmt" without the final "s". (user: drh, tags: trunk)
14:17
[ebbd98e9] A couple fixes for the Win32 interface for lsm1. (user: mistachkin, tags: trunk)
13:41
[60c62829] Add the stmts virtual table to testfixture builds. Add new compile-time options SQLITE_ENABLE_QPSG and SQLITE_ENABLE_STMTSVTAB to ctime.c (user: drh, tags: trunk)
13:35
[b7794cc5] Compilation fix for lsm1 using MSVC. (user: mistachkin, tags: trunk)
13:19
[824e8327] Add the LSM1 extension. (user: drh, tags: trunk)
13:13
[88976ae3] Add the "stmts" virtual table to the amalgamation, activated when compiled using -DSQLITE_ENABLE_STMTSVTAB. Add the SQLITE_STMTSTATUS_REPREPARE and SQLITE_STMTSTATUS_RUN statistics outputs from sqlite3_stmt_status() and add corresponding columns to the stmts virtual table. Change the numeric value of SQLITE_STMTSTATUS_MEMUSED to get it out of the way of counter values. (user: drh, tags: trunk)
12:59
[c322bfa2] The query planner examines the values of bound parameters to help determine if a partial index is usable. Reprepares may happen if the bindings change. This behavior is disabled by the QPSG setting. (user: drh, tags: trunk)
12:54
[680cc064] Closed-Leaf: Implement xUnlink, xShmMap, and xShmUnmap for lsm1 on Win32. (user: mistachkin, tags: lsm-vtab)
12:49
[b0b0c8f8] Closed-Leaf: Add the SQLITE_STMTSTATUS_REPREPARE and SQLITE_STMTSTATUS_RUN options to sqlite3_stmt_status(). Use this for two new columns in the stmts virtual table. (user: drh, tags: stmts-vtab)
01:23
[25acd965] Closed-Leaf: Fix the exprCompareVariable() routine so that it works for non-UTF8 text. (user: drh, tags: partial-index-variables)
00:20
[93c9aa7d] Implement xRemap for lsm1 on Win32. Also, zero file handle when closing it. (user: mistachkin, tags: lsm-vtab)
2017-06-28
21:47
[b959c629] Alternative implementation of exprCompareVariable(). (user: drh, tags: partial-index-variables)
21:36
[9112117d] Implement xLock and xTestLock for lsm1 on Win32. (user: mistachkin, tags: lsm-vtab)
18:25
[a934dd14] Make the query planners use of partial indexes based on bound variables responsive to the SQLITE_DBCONFIG_ENABLE_QPSG setting. (user: drh, tags: partial-index-variables)
18:07
[8f63c586] Merge the in the latest enhancements from trunk. (user: drh, tags: partial-index-variables)
15:56
[62b8269b] Closed-Leaf: Incorporate recent trunk changes. (user: drh, tags: prepare_v3)
15:47
[0ff057d8] Build the "stmts" virtual table into the amalgamation. It is active only when compiled using SQLITE_ENABLE_STMTSVTAB. That option is supplied to the command-line shell. (user: drh, tags: stmts-vtab)
15:17
[f02a5459] Fix harmless compiler warnings in the CSV extension. (user: drh, tags: trunk)
15:01
[36e54cd8] Faster parser stack overflow detection. (user: drh, tags: trunk)
14:26
[cc4810b2] Minor tweak to the SQL grammar to make the parser tables a few bytes smaller. (user: drh, tags: trunk)
13:47
[b362f0d8] In the lemon-generated parser, store the number of symbols on the RHS of each rule as a negative number and add it to the stack pointer, rather than storing the value as a positive and subtracting it. This makes the parser faster. (user: drh, tags: trunk)
11:56
[c46d94a8] In the lemon-generated parser, automatically promote SHIFTREDUCE actions on nonterminal systems to pure REDUCE actions, for a performance enhancement. (user: drh, tags: trunk)
01:21
[6480916c] 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] 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)
18:15
[dbe9c8aa] Implement xFullpath for lsm1 on Win32. (user: mistachkin, tags: lsm-vtab)
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)
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] 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
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
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] Closed-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
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] Closed-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)
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)
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)
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-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-09
15:14
[3fd050c3] 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
14:35
[343e5599] Add a testcase() to confirm that an OOM on sqlite3DbStrNDup() is handled correctly in trigger.c. (user: drh, tags: trunk)
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)
2017-06-06
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)
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)
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)
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: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)
2017-05-25
21:35
[6f415833] Small performance increase and size decrease in the btreeInitPage() routine. (user: drh, tags: trunk)
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: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)
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
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, version-3.19.0, branch-3.19)
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)
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)
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)
12:32
[35f72104] Fix some problems in fts5 code detected by -fsanitize=undefined. (user: dan, tags: trunk)
2017-05-18
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
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-12
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: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: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: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-08
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)
2017-05-04
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)
2017-05-02
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
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: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: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)
2017-04-26
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
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
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-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
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)
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)
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
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: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)
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)
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:06
[76cd611d] Smaller and faster implementation of exprMightBeIndexed(). (user: drh, tags: trunk)
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)
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)
2017-04-08
18:18
[204e72f0] Disallow leading zeros on numeric constants in JSON. Fix for ticket [b93be8729a895a528e2] (user: drh, tags: trunk)
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)
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)
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
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)
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-30
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-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)
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: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)
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
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: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)
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)
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)
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)
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: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
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)
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)
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)
2017-02-14
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
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)
2017-02-11
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)
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: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)
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)
2017-02-02
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] Closed-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)
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
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)
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)
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)
2017-01-18
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)
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)
2017-01-13
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
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: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)
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: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
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)
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)
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)
2017-01-06
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: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: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: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)
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:01
[f8ebeec2] Use the CLANG_VERSION macro to control clang-specific features. (user: drh, tags: gnu-safe-math)
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)
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)
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
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: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: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:08
[9675518b] Faster operation for large in-memory databases. (user: drh, tags: trunk)
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)
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)
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)
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)
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)
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
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-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)
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)
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
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
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: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)
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)
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: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
15:06
[b1158564] Add test case to demonstrate a "BEGIN EXCLUSIVE" command returning SQLITE_BUSY_SNAPSHOT. (user: dan, tags: trunk)
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)
17:39
[c4f5fa78] Add ".mode quote" to the command-line shell. (user: drh, tags: trunk)
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
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
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: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)
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)
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)
2016-09-12
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: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
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: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)
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:12
[193f036c] Merge fixes from trunk. (user: drh, tags: rowvalue)
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: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)
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)
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)
17:30
[c8ffae05] Fix an uninitialized variable in CASE expression code generation. (user: drh, tags: rowvalue)
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
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
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)
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)
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)
05:48
[ea03e219] Add rowvalue5.test, which should have been part of the previous commit on this branch. (user: dan, tags: rowvalue)
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)
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
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)
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)
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)
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)
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: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)
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: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)
2016-07-25
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)
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-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)
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)
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)
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-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)
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)
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)
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)
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)
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)
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)
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)
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
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
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)
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)
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)
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: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)
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)
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
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)
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)
2016-04-14
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
19:44
[1dfa5234] Update documentation for sqlite3_snapshot_open(). No code changes. (user: drh, tags: trunk)
2016-04-07
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)
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)
17:59
[00990020] Merge updates from trunk. (user: mistachkin, tags: winCeLocalTime)
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)
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)
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
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
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
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: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: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: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)
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: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)
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: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: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: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)
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)
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