/ Timeline
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

100 most recent check-ins tagged with "trunk"

2020-01-23
15:00
Fix typos in the sqlite3ext.h header file that prevent some newer APIs from being accessed from loadable extensions. Leaf check-in: 14331989 user: drh tags: trunk
00:08
Fix variable declaration issue seen with MSVC. check-in: 8a6fe306 user: mistachkin tags: trunk
2020-01-22
23:08
Fix a NEVER() macro that can be true if compiled with SQLITE_ENABLE_UNKNOWN_SQL_FUNCTION. Ticket [b985f0bd1636d9bc] check-in: 9f0f5d59 user: drh tags: trunk
18:38
Version 3.31.0 check-in: f6affdd4 user: drh tags: trunk, release, version-3.31.0
2020-01-21
16:31
Update test file exclusive.test so that it works with the "journaltest" permutation. check-in: 4daf94d8 user: dan tags: trunk
16:23
Fix a problem with using views in SQLITE_OMIT_VIRTUAL_TABLE builds. Also some test case fixes required for the same builds. check-in: 934ee8bd user: dan tags: trunk
15:01
Fix a case in fts3auto.test that fails for SQLITE_DISABLE_FTS4_DEFERRED builds. check-in: d241055e user: dan tags: trunk
14:42
Fix an assert() that could fail in SQLITE_MUTATION_TEST builds following an error in a query that uses CTEs. check-in: c7e29458 user: dan tags: trunk
13:40
Fix a problem in the userauth extension causing it to occasionally set "PRAGMA count_changes" (and some others) to true. check-in: 3a62f642 user: dan tags: trunk
12:29
Fix the series.c and spellfix.c extensions to use SQLITE_VTAB_INNOCUOUS correctly. Fix the documentation on sqlite3_vtab_config() to take into account SQLITE_VTAB_INNOCUOUS and SQLITE_VTAB_DIRECTONLY. check-in: 9265cb7f user: drh tags: trunk
01:45
Improvements to the autoconf TEA Makefile for MSVC. check-in: cffcf12f user: mistachkin tags: trunk
2020-01-20
14:42
In the fuzzcheck test program, reduce the default expression depth limit from 1000 to 500 to avoid stack-overflow problems when running stress tests using clang ASAN. check-in: 63d886f4 user: drh tags: trunk
2020-01-19
20:37
Enhancement to the CLI to allow the ".parameter init" command to work even if defensive mode is turned on. check-in: 4d462550 user: drh tags: trunk
2020-01-18
23:52
Documentation improvements. check-in: 535afe15 user: drh tags: trunk
22:20
In the TCL interface, add the ability to change the SQLITE_DBCONFIG_TRUSTED_SCHEMA setting using the "db config" method. check-in: 1accfa8c user: drh tags: trunk
21:34
Allow non-deterministic function in CHECK constraints. It turns out that PostgreSQL, MySQL, and SQLServer all allow this. We should be the the exception. Ticket [830277d9db6c3ba1] check-in: 8c8ce526 user: drh tags: trunk
19:46
Do not use memcpy() of zero bytes when initializing a pager. This avoids a warning. check-in: cca43778 user: drh tags: trunk
19:07
Disable a redundant test case that uses a very large stack, and hence is unable to run with -fsanitize=undefined,address. check-in: 3c63f68e user: drh tags: trunk
19:02
Fix harmless compiler warning seen with MSVC. check-in: cd0437ba user: mistachkin tags: trunk
14:50
Add extra front margin to the fake empty filename returned by sqlite3PagerFilename() for an in-memory or TEMP database. check-in: fee94567 user: drh tags: trunk
13:53
Fix the VDBE so that it correctly handles the sequence of operations OP_OpenEphemeral, OP_OpenDup, OP_OpenEphemeral, and OP_OpenDup in that order on the same cursor. check-in: a1be6ee0 user: drh tags: trunk
2020-01-17
23:27
Fix a typo in a comment. No code changes. check-in: 4363f69c user: drh tags: trunk
21:12
The compress() function should not be deterministic since the same input can have multiple possible compressed outputs. The uncompress() function, on the other hand, is deterministic. check-in: 84f31490 user: drh tags: trunk
19:14
Fix #ifdefs so it compiles cleanly with all SQLITE_OMIT compile-time options. Update compile-time option testing. check-in: 7584e4b6 user: drh tags: trunk
16:47
Improved rounding in the 'unixepoch' feature of the date and time functions. check-in: c9abf1bd user: drh tags: trunk
15:45
Update test script instrfault.test to account for the fact that bound blob values cast to text values are now intepreted using the text encoding of the database, instead of always as utf-8. check-in: 4d6cb288 user: dan tags: trunk
11:18
Fix a case in "fuzz.test" that could fail, as non-deterministic functions may no longer appear in CHECK constraints. check-in: a370871e user: dan tags: trunk
2020-01-16
17:53
New testcase() macros in select.c, for coverage of the change from two check-ins ago. check-in: 52206488 user: drh tags: trunk
16:32
Add the SQLITE_FCNTL_CKPT_DONE file-control for the use of custom VFSs. check-in: 3cc39e50 user: dan tags: trunk
16:12
Do not allow the constant-propagation optimization to apple to ON/USING clause terms as it does not help and it might cause downstream problems. check-in: 1bc783da user: drh tags: trunk
12:25
Fix an SQL syntax error in the comment on the omit-left-join optimization. No changes to code. check-in: 86b5e5a2 user: drh tags: trunk
11:51
Clean up the definitions of the TERM_ constants in the code generator. Formatting only - no logic changes. check-in: af06f80a user: drh tags: trunk
2020-01-15
16:20
Do not allow the "PRAGMA encoding" statement to change the database encoding if TEMP content exists, or content in any other attached database. Formerly, encoding changes were allowed if just the main database file was empty. Ticket [a08879a4a476eea9]. check-in: 03b003c9 user: drh tags: trunk
2020-01-14
16:50
Fix the urifuncs.c extension (used for testing and debugging only) so that the sqlite3_filename_database() SQL function and its siblings correctly handle an invalid schema name passed in as the argument. check-in: 3d7434a9 user: drh tags: trunk
16:39
Remove an ALWAYS on a branch for improved database corruption detection in btree.c:freeSpace(). Test case found by dbsqlfuzz. check-in: 54bf0481 user: drh tags: trunk
16:33
Add the new noop_nd() debugging function to the noop.c extension. check-in: 72911fb1 user: drh tags: trunk
13:24
For the showdb utility program, more accurate detection of when the database is in autovacuum mode for the "pgidx" subcommand. check-in: 9ce2192b user: drh tags: trunk
13:13
Fix a minor typo on a comment in the CLI implementation. check-in: db4fb350 user: drh tags: trunk
00:52
Improvements to sqlite3_open_v2() documentation. check-in: 4c4fd62a user: drh tags: trunk
2020-01-13
15:25
More documentation updates. No code changes. check-in: a684d4ef user: drh tags: trunk
13:33
Documentation updates. No changes to code. check-in: cc0e0aa3 user: drh tags: trunk
2020-01-12
22:38
Better than removing the incorrect assert() is to change it into a testcase() together with a comment indicating where an appropriate test case can be found, and the ticket that provoked the change. Ticket [614b25314c766238] check-in: 3e3c60d8 user: drh tags: trunk
22:25
Change the zipfile virtual table so that the xBestIndex method gives a reasonable cost estimate even if no filename is specified. The missing filename error continues to be raised in the xFilter method. Meanwhile, the more reasonable cost estimate avoids unnecessary wierdness in the query planner. check-in: 0e468aa6 user: drh tags: trunk
22:20
Remove an incorrect assert(). Fix for ticket [614b25314c766238] check-in: 6a999c5a user: drh tags: trunk
2020-01-11
21:08
New apis: sqlite3_filename_database(), sqlite3_filename_journal(), and sqlite3_filename_wal(). Also sqlite3_uri_key(). And the other sqlite3_uri functions now work using the journal or wal filename in addition to the database file. And the sqlite3_db_filename() result is guaranteed to work as an argument to the sqlite3_uri functions. check-in: fd7bcc53 user: drh tags: trunk
2020-01-10
01:05
Fix to the register validity tracking logic in debug builds. No impact on release builds. check-in: 0a500da6 user: drh tags: trunk
00:00
Documentation updates on newer APIs. No changes to code. check-in: 8845a8c2 user: drh tags: trunk
2020-01-09
23:07
Fix the fossildelta.c extension so that it will compile on mingw. check-in: 20237d5d user: drh tags: trunk
20:44
Merge in the untrusted-schema enhancements. See doc/trusted-schema.md for details. check-in: 5720924c user: drh tags: trunk
20:33
Only register the fts3_tokenizer() function using a single text encoding. check-in: 966964af user: drh tags: trunk
20:33
Fix a harmless compiler warning. check-in: edbf911f user: drh tags: trunk
20:11
Fix an assert() in window.c that could fail with some obscure SELECT statements that use window functions. Ticket [678ecf429f8d1a5f] check-in: 83dc5567 user: dan tags: trunk
2020-01-08
12:17
When doing a test-to-double conversion on a BLOB with an odd number of bytes and assuming a UTF16 encoding, ignore the last byte. Ticket [9eda2697f5cc1aba]. check-in: 1c76f1d8 user: drh tags: trunk
11:36
Fix a minor formatting error in the display of BLOB values during VDBE tracing. check-in: 29544288 user: drh tags: trunk
10:57
Improvements to the documentation of sqlite3_create_collation(). check-in: fa866aec user: drh tags: trunk
04:36
Simplification of the logic in the constant-propagation optimization. check-in: 1c3e5c20 user: drh tags: trunk
01:43
Fix the constant propagation optimization so that it does not try to propagate constant expressions that have affinity. Ticket [82ac75ba0093e5dc] check-in: 6db1c349 user: drh tags: trunk
00:39
Fix a misworded comment. No code changes. check-in: ee0bc7ed user: drh tags: trunk
2020-01-07
18:10
Fix a performance regression caused by the previous check-in. check-in: d7d98d3d user: drh tags: trunk
13:32
Add an "|| CORRUPT_DB" term to an assert() statement inside of btree. check-in: 03c1d75d user: drh tags: trunk
09:06
Fix an instance of an undefined behaviour (a left-shift of a 64-bit unsigned integer by a value greater than 64) that could occur in fts3. check-in: e1f12978 user: dan tags: trunk
2020-01-06
20:48
In the typeof() optimization in OP_Column, expand the size of the bogus buffer provided for data so that it is big enough to cover the increased number of bytes displayed during register tracing from check-in [54553bf16fabd72d]. This is the correct fix for ticket [bbd55a97e66ff50d], though the earlier one does not hurt and is useful to retain. check-in: e1154c39 user: drh tags: trunk
19:23
Rewrite the (debugging use only) sqlite3VdbeMemPrettyPrint() function to use the safer StrAccum interface rather than writing directly into a static string buffer. Perhaps this will address ticket [bbd55a97e66ff50d], which we are unable to reproduce. check-in: 69f6a7e4 user: drh tags: trunk
18:59
Backout change [4d0b9109f7a5312d4e1] because the conditional it added is no longer reachable due to check-in [1409758f72c0206c]. check-in: b3f26967 user: drh tags: trunk
18:44
Move variable declaration to start-of-block for MSVC. check-in: 55c136ef user: mistachkin tags: trunk
17:33
Do not attempt to use the skip-scan optimization if prior terms of the index are already used for non-equality constraints. Ticket [304017f5f04a0035] check-in: d7126a9c user: drh tags: trunk
17:06
Ensure the SF_Aggregate flag on a SELECT statement is set if a DISTINCT is transformed to a GROUP BY. Ticket [9c944882]. check-in: 1409758f user: dan tags: trunk
2020-01-05
21:53
Remove a NEVER in btree due to a new test case from dbsqlfuzz. check-in: 46f8ef70 user: drh tags: trunk
2020-01-04
19:14
Fix DBSTAT so that it returns no rows, rather than an error when the WHERE clause is "schema=NULL". check-in: 5b246b47 user: drh tags: trunk
19:12
Fix harmless compiler warnings. check-in: 8452fe03 user: drh tags: trunk
18:38
Omit the omit flat from eq constraints on column "name" of dbstat virtual tables. Fix for [74a4c386]. check-in: cfff5cb2 user: dan tags: trunk
18:33
Record when the OP_IfNotOpen branch is and is not taken. check-in: 182a898b user: drh tags: trunk
17:55
Remove another NEVER added by check-in [7b62555e285f32d3]. Dbsqlfuzz found another test case. check-in: 481f4956 user: drh tags: trunk
17:42
New test cases in test/in4.test require rtree, so disable those tests on builds that lack the rtree extension. check-in: b5900914 user: drh tags: trunk
16:55
Fix a problem where the loop for the RHS of a LEFT JOIN uses values from an IN() clause as the second or subsequent field of an index. check-in: 95ef6896 user: dan tags: trunk
15:21
Fix a false-positive in the register validity tracking logic by moving the temporary register release call before the jump that uses that temporary register. check-in: 9da48a5c user: drh tags: trunk
14:57
Improve a testcase in test/fuzzdata8.db to make it more resilient. check-in: 139aefe6 user: drh tags: trunk
14:50
Back out another NEVER added by check-in [7b62555e285f32d3] - the test case was already in test/fuzzdata3.db, but it only occurs if compiled without SQLITE_ENABLE_PREUPDATE_HOOK. check-in: 61f873b1 user: drh tags: trunk
14:00
Omit the omit flag from eq constraints on column "aggregate" of dbstat virtual tables. Fix for [727074e2]. check-in: 74ef6f2b user: dan tags: trunk
12:34
Restore a NEVER and an assert in btree that was removed by check-in [7b62555e285f32d3]. Dbsqlfuzz found test cases. check-in: 04a05c83 user: drh tags: trunk
2020-01-03
20:16
In fts3, avoid making a very large memory allocation if the merge-hint record is corrupt. check-in: 9add58fe user: dan tags: trunk
17:40
Add NEVER macros to error-detection branches that were made unreachable (as far as I can tell) by check-in [ceacc28b03580334]. check-in: 7b62555e user: drh tags: trunk
16:38
Improvement to check-in [7405e98225761180] so that missing or null filenames given to the zipfile extension throw an immediate error. check-in: 523e09bd user: drh tags: trunk
15:51
Improve a specific case of early database corruption dectecion in the b-tree layer. check-in: ceacc28b user: dan tags: trunk
14:34
Remove an over-zealous ALWAYS() macro and add a test case that shows that the conditional can sometimes be false. check-in: 536e9a9d user: drh tags: trunk
14:27
Fix a possible NULL pointer dereference caused by using a "VALUES(...)" as a component of a compound SELECT with non-integer ORDER BY clause terms. check-in: 9d791116 user: dan tags: trunk
14:16
Fix the OP_Copy-coalesce optimization so that if the previous row happens to end with OP_Copy but is not a candidate for the optimization due to jumps, then the optimization is correctly bypassed. check-in: b36126c1 user: drh tags: trunk
13:55
Ensure that when a Select object is reset a new, empty, SrcList is allocated. check-in: 4889cbf8 user: dan tags: trunk
02:20
When generating the name of a view (or common table expression) because the SQL does not specify a name, avoid the names "true" and "false" which might be confused for the boolean literals of the same name, leading to an inconsistent abstract syntax tree. check-in: ff9492d3 user: drh tags: trunk
00:28
Fix a problem in sqlite3TreeViewBareExprList() in which the routine was not interpreting the new ExprList format correctly. check-in: cd56872a user: drh tags: trunk
2020-01-02
22:28
Add the two-size lookaside memory allocator. Also, reduce the per-entry size of the ExprList object. check-in: 51665bf0 user: drh tags: trunk
21:30
Do not allow the zipfile virtual table to start a transaction if no filename has been specified. check-in: 7405e982 user: drh tags: trunk
19:50
Fix some test logic in the OP_Delete opcode so that it works after a cursor-trip. check-in: 28900e5c user: drh tags: trunk
18:37
Ifdef-out code that is only possible with the sessions extension. check-in: 4fcf07f7 user: drh tags: trunk
17:46
Have the OP_ReleaseReg opcode also invalidate the registers if P5 is non-zero. check-in: 937be221 user: drh tags: trunk
16:24
Handle blobs that are the return values of functions being cast to text in utf16 databases in the same way as blobs read directly from the database. Fix for [771fe617]. check-in: e782096a user: dan tags: trunk
15:02
Fix the OP_Move opcode so that it correctly manages dependency tracking. This change impacts debugging builds only. check-in: 5377add4 user: drh tags: trunk
14:42
Enhancements to aid testing and debugging: In PRAGMA vdbe_trace=on output, show pScopyFrom dependencies on register values. Add the sqlite3VdbeRegisterDump() procedure, callable from a debugger, that shows the values of all registers. Pass the VDBE pointer into test_trace_breakpoint() so that sqlite3VdbeRegisterDump() is callable from the breakpoint. check-in: 9886cb4b user: drh tags: trunk
13:26
Add the test_trace_breakpoint() subroutine that is invoked after each instruction is printed while running PRAGMA vdbe_trace=on. Only works for SQLITE_DEBUG builds. Also add parameters "pc" and "pOp" to test_addop_breakpoint() to make it easier to set conditionals. check-in: 49a6368c user: drh tags: trunk
02:50
Use OP_Copy instead of OP_SCopy to move the results of a scalar subquery. check-in: 435c272d user: drh tags: trunk