The NetBSD Project

CVS log for pkgsrc/databases/sqlite3/Makefile.common

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / databases / sqlite3

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.110 / (download) - annotate - [select for diffs], Mon Apr 15 16:43:56 2024 UTC (2 days, 11 hours ago) by adam
Branch: MAIN
CVS Tags: HEAD
Changes since 1.109: +3 -3 lines
Diff to previous 1.109 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.45.3

3.45.3 (2024-04-15):

Fix a long-standing bug (going back to version 3.24.0) that might (rarely) cause the "old.*" values of an UPDATE trigger to be incorrect if that trigger fires in response to an UPSERT. Forum post 284955a3cd454a15.
Fix a bug in sum() that could cause it to return NULL when it should return Infinity. Forum post 23b8688ef4.
Other trifling corrections and compiler warning fixes that have come up since the previous patch release. See the timeline for details.

Revision 1.109 / (download) - annotate - [select for diffs], Thu Mar 14 08:07:10 2024 UTC (4 weeks, 6 days ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2024Q1-base, pkgsrc-2024Q1
Changes since 1.108: +3 -3 lines
Diff to previous 1.108 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.45.2

version 3.45.2 (2024-03-12):

Fix an error in UPSERT, introduced by enhancement 3a in version 3.35.0 (2021-03-12), that could cause an index to get out-of-sync with its table. Forum thread 919c6579c8.
Reduce the scope of the NOT NULL strength reduction optimization that was added as item 8e in version 3.35.0 (2021-03-12). The optimization was being attempted in some contexts where it did not work, resulting in incorrect query results. Forum thread 440f2a2f17.
Other trifling corrections and compiler warning fixes that have come up since the previous patch release. See the timeline for details.

Revision 1.108 / (download) - annotate - [select for diffs], Tue Jan 30 20:13:21 2024 UTC (2 months, 2 weeks ago) by adam
Branch: MAIN
Changes since 1.107: +3 -3 lines
Diff to previous 1.107 (colored) to selected 1.34 (colored)

sqlite3* lemon: updated to 3.45.1

version 3.45.1 (2024-01-30):

Restore the JSON BLOB input bug, and promise to support the anomaly in subsequent releases, for backward compatibility.
Fix the PRAGMA integrity_check command so that it works on read-only databases that contain FTS3 and FTS5 tables. This resolves an issue introduced in version 3.44.0 but was undiscovered until after the 3.45.0 release.
Fix issues associated with processing corrupt JSONB inputs:
Prevent exponential runtime when converting a corrupt JSONB into text.
Fix a possible read of one byte past the end of the JSONB blob when converting a corrupt JSONB into text.
Enhanced testing using jfuzz to prevent any future JSONB problems such as the above.
Fix a long-standing bug in which a read of a few bytes past the end of a memory-mapped segment might occur when accessing a craftily corrupted database using memory-mapped database.
Fix a long-standing bug in which a NULL pointer dereference might occur in the bytecode engine due to incorrect bytecode being generated for a class of SQL statements that are deliberately designed to stress the query planner but which are otherwise pointless.

Revision 1.107 / (download) - annotate - [select for diffs], Wed Jan 17 08:24:18 2024 UTC (3 months ago) by adam
Branch: MAIN
Changes since 1.106: +5 -5 lines
Diff to previous 1.106 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.45.0

SQLite Release 3.45.0 On 2024-01-15

Added the SQLITE_RESULT_SUBTYPE property for application-defined SQL functions. All application defined SQL functions that invokes sqlite3_result_subtype() must be registered with this new property. Failure to do so might cause the call to sqlite3_result_subtype() to behave as a no-op. Compile with -DSQLITE_STRICT_SUBTYPE=1 to cause an SQL error to be raised if a function that is not SQLITE_RESULT_SUBTYPE tries invokes sqlite3_result_subtype(). The use of -DSQLITE_STRICT_SUBTYPE=1 is a recommended compile-time option for every application that makes use of subtypes.
Enhancements to the JSON SQL functions:
All JSON functions are rewritten to use a new internal parse tree format called JSONB. The new parse-tree format is serializable and hence can be stored in the database to avoid unnecessary re-parsing whenever the JSON value is used.
New versions of JSON-generating functions generate binary JSONB instead of JSON text.
The json_valid() function adds an optional second argument that specifies what it means for the first argument to be "well-formed".
Add the FTS5 tokendata option to the FTS5 virtual table.
The SQLITE_DIRECT_OVERFLOW_READ optimization is now enabled by default. Disable it at compile-time using -DSQLITE_DIRECT_OVERFLOW_READ=0.
Query planner improvements:
Do not allow the transitive constraint optimization to trick the query planner into using a range constraint when a better equality constraint is available. (Forum post 2568d1f6e6.)
The query planner now does a better job of disregarding indexes that ANALYZE identifies as low-quality. (Forum post 6f0958b03b.)
Increase the default value for SQLITE_MAX_PAGE_COUNT from 1073741824 to 4294967294.
Enhancements to the CLI:
Improvements to the display of UTF-8 content on Windows
Automatically detect playback of ".dump" scripts and make appropriate changes to settings such as ".dbconfig defensive off" and ".dbconfig dqs_dll on".

Revision 1.106 / (download) - annotate - [select for diffs], Sat Nov 25 21:07:38 2023 UTC (4 months, 3 weeks ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2023Q4-base, pkgsrc-2023Q4
Changes since 1.105: +3 -3 lines
Diff to previous 1.105 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.44.2

3.44.1 (2023-11-22):

Change the CLI so that it uses UTF-16 for console I/O on Windows. This enables proper display of unicode text on old Windows7 machines.
Other obscure bug fixes.

3.44.2 (2023-11-24):

Fix a mistake in the CLI that was introduced by the fix (item 15 above) in 3.44.1.
Fix a problem in FTS5 that was discovered during internal fuzz testing only minutes after the 3.44.1 release was tagged.
Fix incomplete assert() statements that the fuzzer discovered the day after the previous release.
Fix a couple of harmless compiler warnings that appeared in debug builds with GCC 16.

Revision 1.105 / (download) - annotate - [select for diffs], Wed Nov 1 20:46:04 2023 UTC (5 months, 2 weeks ago) by adam
Branch: MAIN
Changes since 1.104: +3 -3 lines
Diff to previous 1.104 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.44.0

SQLite Release 3.44.0 On 2023-11-01

Aggregate functions can now include an ORDER BY clause after their last parameter. The arguments to the function are processed in the order specified. This can be important for functions like string_agg() and json_group_array().
Add support for the concat() and concat_ws() scalar SQL functions, compatible with PostgreSQL, SQLServer, and MySQL.
Add support for the string_agg() aggregate SQL function, compatible with PostgreSQL and SQLServer.
New conversion letters on the strftime() SQL function: %e %F %I %k %l %p %P %R %T %u
Add new C-language APIs: sqlite3_get_clientdata() and sqlite3_set_clientdata().
Many errors associated with CREATE TABLE are now raised when the CREATE TABLE statement itself is run, rather than being deferred until the first time the table is actually used.
The PRAGMA integrity_check command now verifies the consistency of the content in various built-in virtual tables using the new xIntegrity method. This works for the FTS3, FTS4, FTS5, RTREE, and GEOPOLY extensions.
The SQLITE_DBCONFIG_DEFENSIVE setting now prevents PRAGMA writable_schema from being turned on. Previously writable_schema could be turned on, but would not actually allow the schema to be writable. Now it simply cannot be turned on.
Tag the built-in FTS3, FTS4, FTS5, RTREE, and GEOPOLY virtual tables as SQLITE_VTAB_INNOCUOUS so that they can be used inside of triggers in high-security deployments.
The PRAGMA case_sensitive_like statement is deprecated, as its use when the schema contains LIKE operators can lead to reports of database corruption by PRAGMA integrity_check.
SQLITE_USE_SEH (Structured Exception Handling) is now enabled by default whenever SQLite is built using the Microsoft C compiler. It can be disabled using -DSQLITE_USE_SEH=0
Query planner optimizations:
In partial index scans, if the WHERE clause implies a constant value for a table column, replace occurrences of that table column with the constant. This increases the likelihood of the partial index being a covering index.
Disable the view-scan optimization (added in version 3.42.0 - item 1c) as it was causing multiple performance regressions. In its place, reduce the estimated row count for DISTINCT subqueries by a factor of 8.
SQLite now performs run-time detection of whether or not the underlying hardware supports "long double" with precision greater than "double" and uses appropriate floating-point routines depending on what it discovered.
The CLI for Windows now defaults to using UTF-8 for both input and output on platforms that support it. The --no-utf8 option is available to disable UTF8 support.

Revision 1.104 / (download) - annotate - [select for diffs], Tue Oct 10 16:16:48 2023 UTC (6 months, 1 week ago) by adam
Branch: MAIN
Changes since 1.103: +3 -3 lines
Diff to previous 1.103 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.43.2

Changes in this specific patch release, version 3.43.2 (2023-10-10):

Fix a couple of obscure UAF errors and an obscure memory leak.
Omit the use of the sprintf() function from the standard library in the CLI, as this now generates warnings on some platforms.
Avoid conversion of a double into unsigned long long integer, as some platforms do not do such conversions correctly.

Revision 1.103 / (download) - annotate - [select for diffs], Tue Sep 12 19:28:12 2023 UTC (7 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2023Q3-base, pkgsrc-2023Q3
Changes since 1.102: +3 -3 lines
Diff to previous 1.102 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.43.1

3.43.1

Fix a regression in the way that the sum(), avg(), and total() aggregate functions handle infinities.
Fix a bug in the json_array_length() function that occurs when the argument comes directly from json_remove().
Fix the omit-unused-subquery-columns optimization (introduced in in version 3.42.0) so that it works correctly if the subquery is a compound where one arm is DISTINCT and the other is not.
Other minor fixes.

Revision 1.102 / (download) - annotate - [select for diffs], Fri Aug 25 06:48:00 2023 UTC (7 months, 3 weeks ago) by adam
Branch: MAIN
Changes since 1.101: +3 -3 lines
Diff to previous 1.101 (colored) to selected 1.34 (colored)

databases/sqlite3* devel/lemon: updated to 2.43.0

SQLite Release 3.43.0 On 2023-08-24

Add support for Contentless-Delete FTS5 Indexes. This is a variety of FTS5 full-text search index that omits storing the content that is being indexed while also allowing records to be deleted.
Enhancements to the date and time functions:
Added new time shift modifiers of the form ±YYYY-MM-DD HH:MM:SS.SSS.
Added the timediff() SQL function.
Added the octet_length(X) SQL function.
Added the sqlite3_stmt_explain() API.
Query planner enhancements:
Generalize the LEFT JOIN strength reduction optimization so that it works for RIGHT and FULL JOINs as well. Rename it to OUTER JOIN strength reduction.
Enhance the theorem prover in the OUTER JOIN strength reduction optimization so that it returns fewer false-negatives.
Enhancements to the decimal extension:
New function decimal_pow2(N) returns the N-th power of 2 for integer N between -20000 and +20000.
New function decimal_exp(X) works like decimal(X) except that it returns the result in exponential notation - with a "e+NN" at the end.
If X is a floating-point value, then the decimal(X) function now does a full expansion of that value into its exact decimal equivalent.
Performance enhancements to JSON processing results in a 2x performance improvement for some kinds of processing on large JSON strings.
New makefile target "verify-source" checks to ensure that there are no unintentional changes in the source tree. (Works for canonical source code only - not for precompiled amalgamation tarballs.)
Added the SQLITE_USE_SEH compile-time option that enables Structured Exception Handling on Windows while working with the memory-mapped shm file that is part of WAL mode processing. This option is enabled by default when building on Windows using Makefile.msc.
The VFS for unix now assumes that the nanosleep() system call is available unless compiled with -DHAVE_NANOSLEEP=0.

Revision 1.101 / (download) - annotate - [select for diffs], Wed May 17 12:29:57 2023 UTC (11 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2023Q2-base, pkgsrc-2023Q2
Changes since 1.100: +3 -3 lines
Diff to previous 1.100 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.42.0

SQLite Release 3.42.0 On 2023-05-16

Add the FTS5 secure-delete command. This option causes all forensic traces to be removed from the FTS5 inverted index when content is deleted.
Enhance the JSON SQL functions to support JSON5 extensions.
The SQLITE_CONFIG_LOG and SQLITE_CONFIG_PCACHE_HDRSZ calls to sqlite3_config() are now allowed to occur after sqlite3_initialize().
New sqlite3_db_config() options: SQLITE_DBCONFIG_STMT_SCANSTATUS and SQLITE_DBCONFIG_REVERSE_SCANORDER.
Query planner improvements:
Enable the "count-of-view" optimization by default.
Avoid computing unused columns in subqueries.
Improvements to the push-down optimization.
Enhancements to the CLI:
Add the --unsafe-testing command-line option. Without this option, some dot-commands (ex: ".testctrl") are now disabled because those commands that are intended for testing only and can cause malfunctions misused.
Allow commands ".log on" and ".log off", even in --safe mode.
"--" as a command-line argument means all subsequent arguments that start with "-" are interpreted as normal non-option argument.
Magic parameters ":inf" and ":nan" bind to floating point literals Infinity and NaN, respectively.
The --utf8 command-line option omits all translation to or from MBCS on the Windows console for interactive sessions, and sets the console code page for UTF-8 I/O during such sessions. The --utf8 option is a no-op on all other platforms.
Add the ability for application-defined SQL functions to have the same name as join keywords: CROSS, FULL, INNER, LEFT, NATURAL, OUTER, or RIGHT.
Enhancements to PRAGMA integrity_check:
Detect and raise an error when a NaN value is stored in a NOT NULL column.
Improved error message output identifies the root page of a b-tree when an error is found within a b-tree.
Allow the session extension to be configured to capture changes from tables that lack an explicit ROWID.
Added the subsecond modifier to the date and time functions.
Negative values passed into sqlite3_sleep() are henceforth interpreted as 0.
The maximum recursion depth for JSON arrays and objects is lowered from 2000 to 1000.
Extended the built-in printf() function so the comma option now works with floating-point conversions in addition to integer conversions.
Miscellaneous bug fixes and performance optimizations

Revision 1.100 / (download) - annotate - [select for diffs], Tue Mar 28 13:01:40 2023 UTC (12 months, 3 weeks ago) by adam
Branch: MAIN
Changes since 1.99: +3 -3 lines
Diff to previous 1.99 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.41.2

version 3.41.2 (2023-03-22):

Multiple fixes for reads past the end of memory buffers (NB: reads not writes) in the following circumstances:
When processing a corrupt database file using the non-standard SQLITE_ENABLE_STAT4 compile-time option.
In the CLI when the sqlite3_error_offset() routine returns an out-of-range value (see also the fix to sqlite3_error_offset() below).
In the recovery extension.
In FTS3 when processing a corrupt database file.
Fix the sqlite3_error_offset() so that it does not return out-of-range values when reporting errors associated with generated columns.
Multiple fixes in the query optimizer for problems that cause incorrect results for bizarre, fuzzer-generated queries.
Increase the size of the reference counter in the page cache object to 64 bits to ensure that the counter never overflows.
Fix a performance regression caused by a bug fix in patch release 3.41.1.
Fix a few incorrect assert() statements.

Revision 1.99 / (download) - annotate - [select for diffs], Sun Mar 12 10:34:32 2023 UTC (13 months, 1 week ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2023Q1-base, pkgsrc-2023Q1
Changes since 1.98: +3 -3 lines
Diff to previous 1.98 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.41.1

version 3.41.1 (2023-03-10):

Provide compile-time options -DHAVE_LOG2=0 and -DHAVE_LOG10=0 to enable SQLite to be compiled on systems that omit the standard library functions log2() and log10(), repectively.
Ensure that the datatype for column t1.x in "CREATE TABLE t1 AS SELECT CAST(7 AS INT) AS x;" continues to be INT and is not NUM, for historical compatibility.
Enhance PRAGMA integrity_check to detect when extra bytes appear at the end of an index record.
Fix various obscure bugs reported by the user community. See the timeline of changes for details.

Revision 1.98 / (download) - annotate - [select for diffs], Fri Feb 24 08:34:38 2023 UTC (13 months, 3 weeks ago) by adam
Branch: MAIN
Changes since 1.97: +5 -5 lines
Diff to previous 1.97 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.41.0

SQLite Release 3.41.0 On 2023-02-21

Query planner improvements:
Make use of indexed expressions within an aggregate query that includes a GROUP BY clause.
The query planner has improved awareness of when an index is a covering index and adjusts predicted runtimes accordingly.
The query planner is more aggressive about using co-routines rather than materializing subqueries and views.
Queries against the built-in table-valued functions json_tree() and json_each() will now usually treat "ORDER BY rowid" as a no-op.
Enhance the ability of the query planner to use indexed expressions even if the expression has been modified by the constant-propagation optimization. (See forum thread 0a539c7.)
Add the built-in unhex() SQL function.
Add the base64 and base85 application-defined functions as an extension and include that extension in the CLI.
Add the sqlite3_stmt_scanstatus_v2() interface. (This interface is only available if SQLite is compiled using SQLITE_ENABLE_STMT_SCANSTATUS.)
In-memory databases created using sqlite3_deserialize() now report their filename as an empty string, not as 'x'.
Changes to the CLI:
Add the new base64() and base85() SQL functions
Enhanced EXPLAIN QUERY PLAN output using the new sqlite3_stmt_scanstatus_v2() interface when compiled using SQLITE_ENABLE_STMT_SCANSTATUS.
The ".scanstats est" command provides query planner estimates in profiles.
The continuation prompt indicates if the input is currently inside of a string literal, identifier literal, comment, trigger definition, etc.
Enhance the --safe command-line option to disallow dangerous SQL functions.
The double-quoted string misfeature is now disabled by default for CLI builds. Legacy use cases can reenable the misfeature at run-time using the ".dbconfig dqs_dml on" and ".dbconfig dqs_ddl on" commands.
Enhance the PRAGMA integrity_check command so that it detects when text strings in a table are equivalent to but not byte-for-byte identical to the same strings in the index.
Enhance the carray table-valued function so that it is able to bind an array of BLOB objects.
Added the sqlite3_is_interrupted() interface.
Long-running calls to sqlite3_prepare() and similar now invoke the progress handler callback and react to sqlite3_interrupt().
The sqlite3_vtab_in_first() and sqlite3_vtab_in_next() functions are enhanced so that they reliably detect if they are invoked on a parameter that was not selected for multi-value IN processing using sqlite3_vtab_in(). They return SQLITE_ERROR instead of SQLITE_MISUSE in this case.
The parser now ignores excess parentheses around a subquery on the right-hand side of an IN operator, so that SQLite now works the same as PostgreSQL in this regard. Formerly, SQLite treated the subquery as an expression with an implied "LIMIT 1".
Added the SQLITE_FCNTL_RESET_CACHE option to the sqlite3_file_control() API.
Makefile improvements:
The new makefile target "sqlite3r.c" builds an amalgamation that includes the recovery extension.
New makefile targets "devtest" and "releasetest" for running a quick developmental test prior to doing a check-in and for doing a full release test, respectively.
Miscellaneous performance enhancements.

Revision 1.97 / (download) - annotate - [select for diffs], Wed Dec 28 22:26:06 2022 UTC (15 months, 2 weeks ago) by adam
Branch: MAIN
Changes since 1.96: +3 -3 lines
Diff to previous 1.96 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.40.1

3.40.1 (2022-12-28):

Fix the --safe command-line option to the CLI such that it correctly disallows the use of SQL functions like writefile() that can cause harmful side-effects.
Fix a potential infinite loop in the memsys5 alternative memory allocator. This bug was introduced by a performance optimization in version 3.39.0.
Various other obscure fixes.

Revision 1.96 / (download) - annotate - [select for diffs], Thu Nov 17 06:20:44 2022 UTC (17 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2022Q4-base, pkgsrc-2022Q4
Changes since 1.95: +3 -3 lines
Diff to previous 1.95 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.40.0

SQLite Release 3.40.0

Add support for compiling SQLite to WASM and running it in web browsers. NB: The WASM build and its interfaces are considered "beta" and are subject to minor changes if the need arises. We anticipate finalizing the interface for the next release.
Add the recovery extension that might be able to recover some content from a corrupt database file.
Query planner enhancements:
Recognize covering indexes on tables with more than 63 columns where columns beyond the 63rd column are used in the query and/or are referenced by the index.
Extract the values of expressions contained within expression indexes where practical, rather than recomputing the expression.
The NOT NULL and IS NULL operators (and their equivalents) avoid loading the content of large strings and BLOB values from disk.
Avoid materializing a view on which a full scan is performed exactly once. Use and discard the rows of the view as they are computed.
Allow flattening of a subquery that is the right-hand operand of a LEFT JOIN in an aggregate query.
A new typedef named sqlite3_filename is added and used to represent the name of a database file. Various interfaces are modified to use the new typedef instead of "char*". This interface change should be fully backwards compatible, though it might cause (harmless) compiler warnings when rebuilding some legacy applications.
Add the sqlite3_value_encoding() interface.
Security enhancement: SQLITE_DBCONFIG_DEFENSIVE is augmented to prohibit changing the schema_version. The schema_version becomes read-only in defensive mode.
Enhancements to the PRAGMA integrity_check statement:
Columns in non-STRICT tables with TEXT affinity should not contain numeric values.
Columns in non-STRICT tables with NUMERIC affinity should not contain TEXT values that could be converted into numbers.
Verify that the rows of a WITHOUT ROWID table are in the correct order.
Enhance the VACUUM INTO statement so that it honors they PRAGMA synchronous setting.
Enhance the sqlite3_strglob() and sqlite3_strlike() APIs so that they are able to accept NULL pointers for their string parameters and still generate a sensible result.
Provide the new SQLITE_MAX_ALLOCATION_SIZE compile-time option for limiting the size of memory allocations.
Change the algorithm used by SQLite's built-in pseudo-random number generator (PRNG) from RC4 to Chacha20.
Allow two or more indexes to have the same name as long as they are all in separate schemas.
Miscellaneous performance optimizations result in about 1% fewer CPU cycles used on typical workloads.

Revision 1.94.2.1 / (download) - annotate - [select for diffs], Fri Oct 21 19:39:49 2022 UTC (17 months, 3 weeks ago) by bsiegert
Branch: pkgsrc-2022Q3
Changes since 1.94: +3 -3 lines
Diff to previous 1.94 (colored) next main 1.95 (colored) to selected 1.34 (colored)

Pullup ticket #6688 - requested by taca
databases/sqlite3: security fix (for ruby-sqlite3)

Revisions pulled up:
- databases/sqlite3-docs/PLIST                                  1.118
- databases/sqlite3-docs/distinfo                               1.121
- databases/sqlite3-tcl/distinfo                                1.133
- databases/sqlite3/Makefile.common                             1.95
- databases/sqlite3/distinfo                                    1.188
- devel/lemon/distinfo                                          1.62

---
   Module Name:	pkgsrc
   Committed By:	adam
   Date:		Mon Oct  3 12:27:52 UTC 2022

   Modified Files:
   	pkgsrc/databases/sqlite3: Makefile.common distinfo
   	pkgsrc/databases/sqlite3-docs: PLIST distinfo
   	pkgsrc/databases/sqlite3-tcl: distinfo
   	pkgsrc/devel/lemon: distinfo

   Log Message:
   sqlite3: updated to 3.39.4

   Changes in version 3.39.4 (2022-09-29):

   Fix the build on Windows so that it works with -DSQLITE_OMIT_AUTOINIT
   Fix a long-standing problem in the btree balancer that might, in rare cases, cause database corruption if the application uses an application-defined page cache.
   Enhance SQLITE_DBCONFIG_DEFENSIVE so that it disallows CREATE TRIGGER statements if one or more of the statements in the body of the trigger write into shadow tables.
   Fix a possible integer overflow in the size computation for a memory allocation in FTS3.
   Fix a misuse of the sqlite3_set_auxdata() interface in the ICU Extension.

Revision 1.95 / (download) - annotate - [select for diffs], Mon Oct 3 12:27:52 2022 UTC (18 months, 2 weeks ago) by adam
Branch: MAIN
Changes since 1.94: +3 -3 lines
Diff to previous 1.94 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.39.4

Changes in version 3.39.4 (2022-09-29):

Fix the build on Windows so that it works with -DSQLITE_OMIT_AUTOINIT
Fix a long-standing problem in the btree balancer that might, in rare cases, cause database corruption if the application uses an application-defined page cache.
Enhance SQLITE_DBCONFIG_DEFENSIVE so that it disallows CREATE TRIGGER statements if one or more of the statements in the body of the trigger write into shadow tables.
Fix a possible integer overflow in the size computation for a memory allocation in FTS3.
Fix a misuse of the sqlite3_set_auxdata() interface in the ICU Extension.

Revision 1.94 / (download) - annotate - [select for diffs], Tue Sep 6 18:59:11 2022 UTC (19 months, 1 week ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2022Q3-base
Branch point for: pkgsrc-2022Q3
Changes since 1.93: +3 -3 lines
Diff to previous 1.93 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.39.3

Changes in version 3.39.3 (2022-09-05):

Use a statement journal on DML statement affecting two or more database rows if the statement makes use of a SQL functions that might abort. See forum thread 9b9e4716c0d7bbd1.
Use a mutex to protect the PRAGMA temp_store_directory and PRAGMA data_store_directory statements, even though they are deprecated and documented as not being threadsafe. See forum post 719a11e1314d1c70.
Other bug and warning fixes. See the timeline for details.

Revision 1.93 / (download) - annotate - [select for diffs], Fri Jul 22 07:05:55 2022 UTC (20 months, 3 weeks ago) by adam
Branch: MAIN
Changes since 1.92: +3 -3 lines
Diff to previous 1.92 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.39.2

changes in version 3.39.2 (2022-07-21):

Fix a performance regression in the query planner associated with rearranging the order of FROM clause terms in the presences of a LEFT JOIN.
Apply fixes for CVE-2022-35737, Chromium bugs 1343348 and 1345947, forum post 3607259d3c, and other minor problems discovered by internal testing.

Revision 1.92 / (download) - annotate - [select for diffs], Thu Jul 14 08:05:51 2022 UTC (21 months ago) by adam
Branch: MAIN
Changes since 1.91: +3 -3 lines
Diff to previous 1.91 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.39.1

Changes in version 3.39.1 (2022-07-13):

Fix an incorrect result from a query that uses a view that contains a compound SELECT in which only one arm contains a RIGHT JOIN and where the view is not the first FROM clause term of the query that contains the view. forum post 174afeae5734d42d.
Fix some harmless compiler warnings.
Fix a long-standing problem with ALTER TABLE RENAME that can only arise if the sqlite3_limit(SQLITE_LIMIT_SQL_LENGTH) is set to a very small value.
Fix a long-standing problem in FTS3 that can only arise when compiled with the SQLITE_ENABLE_FTS3_PARENTHESIS compile-time option.
Fix the build so that is works when the SQLITE_DEBUG and SQLITE_OMIT_WINDOWFUNC compile-time options are both provided at the same time.
Fix the initial-prefix optimization for the REGEXP extension so that it works correctly even if the prefix contains characters that require a 3-byte UTF8 encoding.
Enhance the sqlite_stmt virtual table so that it buffers all of its output.

Revision 1.91 / (download) - annotate - [select for diffs], Fri Jul 1 17:49:39 2022 UTC (21 months, 2 weeks ago) by adam
Branch: MAIN
Changes since 1.90: +3 -3 lines
Diff to previous 1.90 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.39.0

SQLite Release 3.39.0 On 2022-06-25

Add (long overdue) support for RIGHT and FULL OUTER JOIN.
Add new binary comparison operators IS NOT DISTINCT FROM and IS DISTINCT FROM that are equivalent to IS and IS NOT, respective, for compatibility with PostgreSQL and SQL standards.
Add a new return code (value "3") from the sqlite3_vtab_distinct() interface that indicates a query that has both DISTINCT and ORDER BY clauses.
Added the sqlite3_db_name() interface.
The unix os interface resolves all symbolic links in database filenames to create a canonical name for the database before the file is opened.
Defer materializing views until the materialization is actually needed, thus avoiding unnecessary work if the materialization turns out to never be used.
The HAVING clause of a SELECT statement is now allowed on any aggregate query, even queries that do not have a GROUP BY clause.
Many microoptimizations collectively reduce CPU cycles by about 2.3%.

Revision 1.90 / (download) - annotate - [select for diffs], Sun May 8 08:10:26 2022 UTC (23 months, 1 week ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2022Q2-base, pkgsrc-2022Q2
Changes since 1.89: +3 -3 lines
Diff to previous 1.89 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.38.5

3.38.5 (2022-05-06):

Fix a blunder in the CLI of the 3.38.4 release.

Revision 1.89 / (download) - annotate - [select for diffs], Thu May 5 17:26:41 2022 UTC (23 months, 1 week ago) by adam
Branch: MAIN
Changes since 1.88: +3 -3 lines
Diff to previous 1.88 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.38.4

3.38.4 (2022-05-04):

Fix a byte-code problem in the Bloom filter pull-down optimization added by release 3.38.0 in which an error in the byte code causes the byte code engine to enter an infinite loop when the pull-down optimization encounters a NULL key.

Revision 1.88 / (download) - annotate - [select for diffs], Wed Apr 27 17:12:17 2022 UTC (23 months, 3 weeks ago) by adam
Branch: MAIN
Changes since 1.87: +3 -3 lines
Diff to previous 1.87 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.38.3

changes in version 3.38.3 (2022-04-27):

Fix a case of the query planner be overly aggressive with optimizing automatic-index and Bloom-filter construction, using inappropriate ON clause terms to restrict the size of the automatic-index or Bloom filter, and resulting in missing rows in the output. Forum thread 0d3200f4f3bcd3a3.
Other minor patches. See the timeline for details.

Revision 1.87 / (download) - annotate - [select for diffs], Mon Mar 28 19:38:27 2022 UTC (2 years ago) by adam
Branch: MAIN
Changes since 1.86: +3 -3 lines
Diff to previous 1.86 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.38.2

Additional changes in version 3.38.2 (2022-03-26):

Fix another user-discovered problem with the new Bloom filter optimization that might cause an incorrect answer when doing a LEFT JOIN with a WHERE clause constraint that says that one of the columns on the right table of the LEFT JOIN is NULL. See forum thread 031e262a89b6a9d2.
Other minor patches. See the timeline for details.

Revision 1.86 / (download) - annotate - [select for diffs], Mon Mar 14 10:01:19 2022 UTC (2 years, 1 month ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2022Q1-base, pkgsrc-2022Q1
Changes since 1.85: +3 -3 lines
Diff to previous 1.85 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.38.1

3.38.1 (2022-03-12):

Fix problems with the new Bloom filter optimization that might cause some obscure queries to get an incorrect answer.
Fix the localtime modifier of the date and time functions so that it preserves fractional seconds.
Fix the sqlite_offset SQL function so that it works correctly even in corner cases such as when the argument is a virtual column or the column of a view.
Fix row value IN operator constraints on virtual tables so that they work correctly even if the virtual table implementation relies on bytecode to filter rows that do not satisfy the constraint.
Other minor fixes to assert() statements, test cases, and documentation.

Revision 1.85 / (download) - annotate - [select for diffs], Wed Feb 23 17:07:36 2022 UTC (2 years, 1 month ago) by adam
Branch: MAIN
Changes since 1.84: +3 -3 lines
Diff to previous 1.84 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.38.0

SQLite Release 3.38.0 On 2022-02-22

Added the -> and ->> operators for easier processing of JSON. The new operators are compatible with MySQL and PostgreSQL.
The JSON functions are now built-ins. It is no longer necessary to use the -DSQLITE_ENABLE_JSON1 compile-time option to enable JSON support. JSON is on by default. Disable the JSON interface using the new -DSQLITE_OMIT_JSON compile-time option.
Enhancements to date and time functions:
Added the unixepoch() function.
Added the auto modifier and the julianday modifier.
Rename the printf() SQL function to format() for better compatibility. The original printf() name is retained as an alias for backwards compatibility.
Added the sqlite3_error_offset() interface, which can sometimes help to localize an SQL error to a specific character in the input SQL text, so that applications can provide better error messages.
Enhanced the interface to virtual tables as follows:
Added the sqlite3_vtab_distinct() interface.
Added the sqlite3_vtab_rhs_value() interface.
Added new operator types SQLITE_INDEX_CONSTRAINT_LIMIT and SQLITE_INDEX_CONSTRAINT_OFFSET.
Added the sqlite3_vtab_in() interface (and related) to enable a virtual table to process IN operator constraints all at once, rather than processing each value of the right-hand side of the IN operator separately.
CLI enhancements:
Columnar output modes are enhanced to correctly handle tabs and newlines embedded in text.
Added options like "--wrap N", "--wordwrap on", and "--quote" to the columnar output modes.
Added the .mode qbox alias.
The .import command automatically disambiguates column names.
Use the new sqlite3_error_offset() interface to provide better error messages.
Query planner enhancements:
Use a Bloom filter to speed up large analytic queries.
Use a balanced merge tree to evaluate UNION or UNION ALL compound SELECT statements that have an ORDER BY clause.
The ALTER TABLE statement is changed to silently ignores entries in the sqlite_schema table that do not parse when PRAGMA writable_schema=ON.

Revision 1.84 / (download) - annotate - [select for diffs], Fri Jan 7 21:06:28 2022 UTC (2 years, 3 months ago) by adam
Branch: MAIN
Changes since 1.83: +5 -5 lines
Diff to previous 1.83 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.37.2

Changes in version 3.37.2:

Fix a bug introduced in version 3.35.0 (2021-03-12) that can cause database corruption if a SAVEPOINT is rolled back while in PRAGMA temp_store=MEMORY mode, and other changes are made, and then the outer transaction commits. Check-in 73c2b50211d3ae26
Fix a long-standing problem with ON DELETE CASCADE and ON UPDATE CASCADE in which a cache of the bytecode used to implement the cascading change was not being reset following a local DDL change. Check-in 5232c9777fe4fb13.
Other minor fixes that should not impact production builds.

Revision 1.83 / (download) - annotate - [select for diffs], Thu Dec 30 20:31:51 2021 UTC (2 years, 3 months ago) by adam
Branch: MAIN
Changes since 1.82: +3 -3 lines
Diff to previous 1.82 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.37.1

version 3.37.1

Fix a bug introduced by the UPSERT enhancements of version 3.35.0 that can cause incorrect byte-code to be generated for some obscure but valid SQL, possibly resulting in a NULL-pointer dereference.
Fix an OOB read that can occur in FTS5 when reading corrupt database files.
Improved robustness of the --safe option in the CLI.
Other minor fixes to assert() statements and test cases.

Revision 1.82 / (download) - annotate - [select for diffs], Sun Nov 28 20:48:28 2021 UTC (2 years, 4 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2021Q4-base, pkgsrc-2021Q4
Changes since 1.81: +3 -3 lines
Diff to previous 1.81 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.37.0

SQLite Release 3.37.0 On 2021-11-27

STRICT tables provide a prescriptive style of data type management, for developers who prefer that kind of thing.
When adding columns that contain a CHECK constraint or a generated column containing a NOT NULL constraint, the ALTER TABLE ADD COLUMN now checks new constraints against preexisting rows in the database and will only proceed if no constraints are violated.
Added the PRAGMA table_list statement.
CLI enhancements:
Add the .connection command, allowing the CLI to keep multiple database connections open at the same time.
Add the --safe command-line option that disables dot-commands and SQL statements that might cause side-effects that extend beyond the single database file named on the command-line.
Performance improvements when reading SQL statements that span many lines.
Added the sqlite3_autovacuum_pages() interface.
The sqlite3_deserialize() does not and has never worked for the TEMP database. That limitation is now noted in the documentation.
The query planner now omits ORDER BY clauses on subqueries and views if removing those clauses does not change the semantics of the query.
The generate_series table-valued function extension is modified so that the first parameter ("START") is now required. This is done as a way to demonstrate how to write table-valued functions with required parameters. The legacy behavior is available using the -DZERO_ARGUMENT_GENERATE_SERIES compile-time option.
Added new sqlite3_changes64() and sqlite3_total_changes64() interfaces.
Added the SQLITE_OPEN_EXRESCODE flag option to sqlite3_open_v2().
Use less memory to hold the database schema.

Revision 1.81 / (download) - annotate - [select for diffs], Fri Jun 25 21:21:31 2021 UTC (2 years, 9 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2021Q3-base, pkgsrc-2021Q3
Changes since 1.80: +3 -3 lines
Diff to previous 1.80 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.36.0

SQLite Release 3.36.0 On 2021-06-18

Improvement to the EXPLAIN QUERY PLAN output to make it easier to understand.
Byte-order marks at the start of a token are skipped as if they were whitespace.
An error is raised on any attempt to access the rowid of a VIEW or subquery. Formerly, the rowid of a VIEW would be indeterminate and often would be NULL. The -DSQLITE_ALLOW_ROWID_IN_VIEW compile-time option is available to restore the legacy behavior for applications that need it.
The sqlite3_deserialize() and sqlite3_serialize() interfaces are now enabled by default. The -DSQLITE_ENABLE_DESERIALIZE compile-time option is no longer required. Instead, there is is a new -DSQLITE_OMIT_DESERIALIZE compile-time option to omit those interfaces.
The "memdb" VFS now allows the same in-memory database to be shared among multiple database connections in the same process as long as the database name begins with "/".
Back out the EXISTS-to-IN optimization (item 8b in the SQLite 3.35.0 change log) as it was found to slow down queries more often than speed them up.
Improve the constant-propagation optimization so that it works on non-join queries.
The REGEXP extension is now included in CLI builds.

Revision 1.80 / (download) - annotate - [select for diffs], Tue Apr 20 06:30:07 2021 UTC (2 years, 11 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2021Q2-base, pkgsrc-2021Q2
Changes since 1.79: +3 -3 lines
Diff to previous 1.79 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.35.5

version 3.35.5:

Fix defects in the new ALTER TABLE DROP COLUMN feature that could corrupt the database file.
Fix an obscure query optimizer problem that might cause an incorrect query result.

Revision 1.79 / (download) - annotate - [select for diffs], Sat Apr 3 06:25:30 2021 UTC (3 years ago) by adam
Branch: MAIN
Changes since 1.78: +3 -3 lines
Diff to previous 1.78 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.35.4

3.35.4

Fix a defect in the query planner optimization identified by item 8b above.
Fix a defect in the new RETURNING syntax.
Fix the new RETURNING feature so that it raises an error if one of the terms in the RETURNING clause references a unknown table, instead of silently ignoring that error.
Fix an assertion associated with aggregate function processing that was incorrectly triggered by the push-down optimization.

Revision 1.78 / (download) - annotate - [select for diffs], Tue Mar 30 07:51:16 2021 UTC (3 years ago) by adam
Branch: MAIN
Changes since 1.77: +3 -3 lines
Diff to previous 1.77 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.35.3

changes in version 3.35.3

Enhance the OP_OpenDup opcode of the bytecode engine so that it works even if the cursor being duplicated itself came from OP_OpenDup. Fix for ticket bb8a9fd4a9b7fce5. This problem only came to light due to the recent MATERIALIZED hint enhancement.
When materializing correlated common table expressions, do so separately for each use case, as that is required for correctness. This fixes a problem that was introduced by the MATERIALIZED hint enhancement.
Fix a problem in the filename normalizer of the unix VFS.
Fix the "box" output mode in the CLI so that it works with statements that returns one or more rows of zero columns (such as PRAGMA incremental_vacuum). Forum post afbbcb5b72.
Improvements to error messages generated by faulty common table expressions. Forum post aa5a0431c99e.
Fix some incorrect assert() statements.
Fix to the SELECT statement syntax diagram so that the FROM clause syntax is shown correctly. Forum post 9ed02582fe.
Fix the EBCDIC character classifier so that it understands newlines as whitespace. Forum post 58540ce22dcd.
Improvements the xBestIndex method in the implementation of the (unsupported) wholenumber virtual table extension so that it does a better job of convincing the query planner to avoid trying to materialize a table with an infinite number of rows.

Revision 1.77 / (download) - annotate - [select for diffs], Fri Mar 19 06:29:03 2021 UTC (3 years, 1 month ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2021Q1-base, pkgsrc-2021Q1
Changes since 1.76: +3 -3 lines
Diff to previous 1.76 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.35.2

Changes in version 3.35.2:

Fix a problem in the appendvfs.c extension that was introduced into version 3.35.0.
Ensure that date/time functions with no arguments (which generate responses that depend on the current time) are treated as non-deterministic functions. Ticket 2c6c8689fb5f3d2f
Fix a problem in the sqldiff utility program having to do with unusual whitespace characters in a virtual table definition.
Limit the new UNION ALL optimization described by item 8c in the 3.35.0 release so that it does not try to make too many new subqueries. See forum thread 140a67d3d2 for details.

Revision 1.76 / (download) - annotate - [select for diffs], Wed Mar 17 06:24:42 2021 UTC (3 years, 1 month ago) by adam
Branch: MAIN
Changes since 1.75: +3 -3 lines
Diff to previous 1.75 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.35.1

3.35.1:

Fix a bug in the new DROP COLUMN feature when used on columns that are indexed and that are quoted in the index definition.
Documentation improvements.

Revision 1.75 / (download) - annotate - [select for diffs], Mon Mar 15 14:51:00 2021 UTC (3 years, 1 month ago) by adam
Branch: MAIN
Changes since 1.74: +3 -3 lines
Diff to previous 1.74 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.35.0

SQLite Release 3.35.0 On 2021-03-12

Added built-in SQL math functions(). (Requires the -DSQLITE_ENABLE_MATH_FUNCTIONS compile-time option.)
Added support for ALTER TABLE DROP COLUMN.
Generalize UPSERT:
Allow multiple ON CONFLICT clauses that are evaluated in order,
The final ON CONFLICT clause may omit the conflict target and yet still use DO UPDATE.
Add support for the RETURNING clause on DELETE, INSERT, and UPDATE statements.
Use less memory when running VACUUM on databases containing very large TEXT or BLOB values. It is no longer necessary to hold the entire TEXT or BLOB in memory all at once.
Add support for the MATERIALIZED and NOT MATERIALIZED hints when specifying common table expressions. The default behavior was formerly NOT MATERIALIZED, but is now changed to MATERIALIZED for CTEs that are used more than once.
The SQLITE_DBCONFIG_ENABLE_TRIGGER and SQLITE_DBCONFIG_ENABLE_VIEW settings are modified so that they only control triggers and views in the main database schema or in attached database schemas and not in the TEMP schema. TEMP triggers and views are always allowed.
Query planner/optimizer improvements:
Enhancements to the min/max optimization so that it works better with the IN operator and the OP_SeekScan optimization of the previous release.
Attempt to process EXISTS operators in the WHERE clause as if they were IN operators, in cases where this is a valid transformation and seems likely to improve performance.
Allow UNION ALL sub-queries to be flattened even if the parent query is a join.
Use an index, if appropriate, on IS NOT NULL expressions in the WHERE clause, even if STAT4 is disabled.
Expressions of the form "x IS NULL" or "x IS NOT NULL" might be converted to simply FALSE or TRUE, if "x" is a column that has a "NOT NULL" constraint and is not involved in an outer join.
Avoid checking foreign key constraints on an UPDATE statement if the UPDATE does not modify any columns associated with the foreign key.
Allow WHERE terms to be pushed down into sub-queries that contain window functions, as long as the WHERE term is made up of entirely of constants and copies of expressions found in the PARTITION BY clauses of all window functions in the sub-query.
CLI enhancements:
Enhance the ".stats" command to accept new arguments "stmt" and "vmstep", causing prepare statement statistics and only the virtual-machine step count to be shown, respectively.
Add the ".filectrl data_version" command.
Enhance the ".once" and ".output" commands so that if the destination argument begins with "|" (indicating that output is redirected into a pipe) then the argument does not need to be quoted.
Bug fixes:
Fix a potential NULL pointer dereference when processing a syntactically incorrect SELECT statement with a correlated WHERE clause and a "HAVING 0" clause. (Also fixed in the 3.34.1 patch release.)
Fix a bug in the IN-operator optimization of version 3.33.0 that can cause an incorrect answer.
Fix incorrect answers from the LIKE operator if the pattern ends with "%" and there is an "ESCAPE '_'" clause.

Revision 1.74 / (download) - annotate - [select for diffs], Wed Jan 20 20:34:37 2021 UTC (3 years, 2 months ago) by adam
Branch: MAIN
Changes since 1.73: +5 -5 lines
Diff to previous 1.73 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.34.1

Changes in version 3.34.1:

Fix a potential use-after-free bug when processing a a subquery with both a correlated WHERE clause and a "HAVING 0" clause and where the parent query is an aggregate.
Fix documentation typos
Fix minor problems in extensions.

Revision 1.73 / (download) - annotate - [select for diffs], Wed Dec 2 07:57:19 2020 UTC (3 years, 4 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2020Q4-base, pkgsrc-2020Q4
Changes since 1.72: +3 -3 lines
Diff to previous 1.72 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.34.0

SQLite Release 3.34.0

Added the sqlite3_txn_state() interface for reporting on the current transaction state of the database connection.
Enhance recursive common table expressions to support two or more recursive terms as is done by SQL Server, since this helps make queries against graphs easier to write and faster to execute.
Improved error messages on CHECK constraint failures.
CLI enhancements:
The .read dot-command now accepts a pipeline in addition to a filename.
Added options --data-only and --nosys to the .dump dot-command.
Added the --nosys option to the .schema dot-command.
Table name quoting works correctly for the .import dot-command.
The generate_series(START,END,STEP) table-valued function extension is now built into the CLI.
The .databases dot-command now show the status of each database file as determined by sqlite3_db_readonly() and sqlite3_txn_state().
Added the --tabs command-line option that sets .mode tabs.
The --init option reports an error if the file named as its argument cannot be opened. The --init option also now honors the --bail option.
Query planner improvements:
Improved estimates for the cost of running a DISTINCT operator.
When doing an UPDATE or DELETE using a multi-column index where only a few of the earlier columns of the index are useful for the index lookup, postpone doing the main table seek until after all WHERE clause constraints have been evaluated, in case those constraints can be covered by unused later terms of the index, thus avoiding unnecessary main table seeks.
The new OP_SeekScan opcode is used to improve performance of multi-column index look-ups when later columns are constrained by an IN operator.
The BEGIN IMMEDIATE and BEGIN EXCLUSIVE commands now work even if one or more attached database files are read-only.
Enhanced FTS5 to support trigram indexes.
Improved performance of WAL mode locking primitives in cases where there are hundreds of connections all accessing the same database file at once.
Enhanced the carray() table-valued function to include a single-argument form that is bound using the auxiliary sqlite3_carray_bind() interface.
The substr() SQL function can now also be called "substring()" for compatibility with SQL Server.
The syntax diagrams are now implemented as Pikchr scripts and rendered as SVG for improved legibility and ease of maintenance.

Revision 1.72 / (download) - annotate - [select for diffs], Wed Aug 19 05:48:37 2020 UTC (3 years, 7 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2020Q3-base, pkgsrc-2020Q3
Changes since 1.71: +3 -3 lines
Diff to previous 1.71 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.33.0

SQLite Release 3.33.0

Support for UPDATE FROM following the PostgreSQL syntax.
Increase the maximum size of database files to 281 TB.
Extended the PRAGMA integrity_check statement so that it can optionally be limited to verifying just a single table and its indexes, rather than the entire database file.
Added the decimal extension for doing arbitrary-precision decimal arithmetic.
Enhancements to the ieee754 extension for working with IEEE 754 binary64 numbers.
CLI enhancements:
Added four new output modes: "box", "json", "markdown", and "table".
The "column" output mode automatically expands columns to contain the longest output row and automatically turns ".header" on if it has not been previously set.
The "quote" output mode honors ".separator"
The decimal extension and the ieee754 extension are built-in to the CLI
Query planner improvements:
Add the ability to find a full-index-scan query plan for queries using INDEXED BY which previously would fail with "no query solution".
Do a better job of detecting missing, incomplete, and/or dodgy sqlite_stat1 data and generates good query plans in spite of the misinformation.
Improved performance of queries like "SELECT min(x) FROM t WHERE y IN (?,?,?)" assuming an index on t(x,y).
In WAL mode, if a writer crashes and leaves the shm file in an inconsistent state, subsequent transactions are now able to recover the shm file even if there are active read transactions. Before this enhancement, shm file recovery that scenario would result in an SQLITE_PROTOCOL error.

Revision 1.71 / (download) - annotate - [select for diffs], Fri Jun 19 07:31:08 2020 UTC (3 years, 9 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2020Q2-base, pkgsrc-2020Q2
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.32.3

3.32.3:
Various minor bug fixes

Revision 1.70 / (download) - annotate - [select for diffs], Fri Jun 5 07:48:07 2020 UTC (3 years, 10 months ago) by adam
Branch: MAIN
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.32.2

3.32.2:
Fix a long-standing bug in the byte-code engine that can cause a COMMIT command report as success when in fact it failed to commit.

Revision 1.69 / (download) - annotate - [select for diffs], Tue May 26 12:50:52 2020 UTC (3 years, 10 months ago) by adam
Branch: MAIN
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.32.1

Changes in version 3.32.1:

Fix two long-standing bugs that allow malicious SQL statements to crash the process that is running SQLite. These bugs were announced by a third-party approximately 24 hours after the 3.32.0 release but are not specific to the 3.32.0 release.

Other minor compiler-warning fixes and whatnot.

Revision 1.68 / (download) - annotate - [select for diffs], Sat May 23 07:38:00 2020 UTC (3 years, 10 months ago) by adam
Branch: MAIN
Changes since 1.67: +3 -3 lines
Diff to previous 1.67 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.32.0

SQLite Release 3.32.0:

Added support for approximate ANALYZE using the PRAGMA analysis_limit command.
Added the bytecode virtual table.
Add the checksum VFS shim to the set of run-time loadable extensions included in the source tree.
Added the iif() SQL function.
INSERT and UPDATE statements now always apply column affinity before computing CHECK constraints. This bug fix could, in theory, cause problems for legacy databases with unorthodox CHECK constraints the require the input type for an INSERT is different from the declared column type. See ticket 86ba67afafded936 for more information.
Added the sqlite3_create_filename(), sqlite3_free_filename(), and sqlite3_database_file_object() interfaces to better support of VFS shim implementations.
Increase the default upper bound on the number of parameters from 999 to 32766.
Added code for the UINT collating sequence as an optional loadable extension.
Enhancements to the CLI:
Add options to the .import command: --csv, --ascii, --skip
The .dump command now accepts multiple LIKE-pattern arguments and outputs the union of all matching tables.
Add the .oom command in debugging builds
Add the --bom option to the .excel, .output, and .once commands.
Enhance the .filectrl command to support the --schema option.
The UINT collating sequence extension is automatically loaded
The ESCAPE clause of a LIKE operator now overrides wildcard characters, so that the behavior now matches what PostgreSQL does.

Revision 1.67 / (download) - annotate - [select for diffs], Wed Jan 29 08:33:12 2020 UTC (4 years, 2 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2020Q1-base, pkgsrc-2020Q1
Changes since 1.66: +3 -3 lines
Diff to previous 1.66 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.31.1

SQLite Release 3.31.1:

Revert the data layout for an internal-use-only SQLite data structure. Applications that use SQLite should never reference internal SQLite data structures, but some do anyhow, and a change to one such data structure in 3.30.0 broke a popular and widely-deployed application. Reverting that change in SQLite, at least temporarily, gives developers of misbehaving applications time to fix their code.
Fix a typos in the sqlite3ext.h header file that prevented the sqlite3_stmt_isexplain() and sqlite3_value_frombind() interfaces from being called from run-time loadable extensions.

Revision 1.66 / (download) - annotate - [select for diffs], Sun Jan 26 09:05:19 2020 UTC (4 years, 2 months ago) by adam
Branch: MAIN
Changes since 1.65: +5 -5 lines
Diff to previous 1.65 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.31.0

SQLite Release 3.31.0:

Add support for generated columns.
Add the sqlite3_hard_heap_limit64() interface and the corresponding PRAGMA hard_heap_limit command.
Enhance the function_list pragma to show the number of arguments on each function, the type of function (scalar, aggregate, window), and the function property flags SQLITE_DETERMINISTIC, SQLITE_DIRECTONLY, SQLITE_INNOCUOUS, and/or SQLITE_SUBTYPE.
Add the aggregated mode feature to the DBSTAT virtual table.
Add the SQLITE_OPEN_NOFOLLOW option to sqlite3_open_v2() that prevents SQLite from opening symbolic links.
Added the "#-N" array notation for JSON function path arguments.
Added the SQLITE_DBCONFIG_TRUSTED_SCHEMA connection setting which is also controllable via the new trusted_schema pragma and at compile-time using the -DSQLITE_TRUSTED_SCHEMA compile-time option.
Added APIs sqlite3_filename_database(), sqlite3_filename_journal(), and sqlite3_filename_wal() which are useful for specialized extensions.
Add the sqlite3_uri_key() interface.
Upgraded the sqlite3_uri_parameter() function so that it works with the rollback journal or WAL filename in addition to the database filename.
Provide the ability to tag application-defined SQL functions with new properties SQLITE_INNOCUOUS or SQLITE_DIRECTONLY.
Add new verbs to sqlite3_vtab_config() so that the xConnect method of virtual tables can declare the virtual table as SQLITE_VTAB_INNOCUOUS or SQLITE_VTAB_DIRECTONLY.
Faster response to sqlite3_interrupt().
Added the uuid.c extension module implementing functions for processing RFC-4122 UUIDs.
The lookaside memory allocator is enhanced to support two separate memory pools with different sized allocations in each pool. This allows more memory allocations to be covered by lookaside while at the same time reducing the heap memory usage to 48KB per connection, down from 120KB.
The legacy_file_format pragma is deactivated. It is now a no-op. In its place, the SQLITE_DBCONFIG_LEGACY_FILE_FORMAT option to sqlite3_db_config() is provided. The legacy_file_format pragma is deactivated because (1) it is rarely useful and (2) it is incompatible with VACUUM in schemas that have tables with both generated columns and descending indexes.

Revision 1.65 / (download) - annotate - [select for diffs], Fri Oct 11 15:37:09 2019 UTC (4 years, 6 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2019Q4-base, pkgsrc-2019Q4
Changes since 1.64: +3 -3 lines
Diff to previous 1.64 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.30.1

SQLite Release 3.30.1:
Fix a bug in the query flattener that might cause a segfault for nested queries that use the new FILTER clause on aggregate functions.
Cherrypick fixes for other obscure problems found since the 3.30.0 release.

Revision 1.64 / (download) - annotate - [select for diffs], Sat Oct 5 08:03:55 2019 UTC (4 years, 6 months ago) by adam
Branch: MAIN
Changes since 1.63: +3 -3 lines
Diff to previous 1.63 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.30.0

SQLite Release 3.30.0

Add support for the FILTER clause on aggregate functions.
Add support for the NULLS FIRST and NULLS LAST syntax in ORDER BY clauses.
The index_info and index_xinfo pragmas are enhanced to provide information about the on-disk representation of WITHOUT ROWID tables.
Add the sqlite3_drop_modules() interface, allowing applications to disable automatically loaded virtual tables that they do not need.
Improvements to the .recover dot-command in the CLI so that it recovers more content from corrupt database files.
Enhance the RBU extension to support indexes on expressions.
Change the schema parser so that it will error out if any of the type, name, and tbl_name columns of the sqlite_master table have been corrupted and the database connection is not in writable_schema mode.
The PRAGMA function_list, PRAGMA module_list, and PRAGMA pragma_list commands are now enabled in all builds by default. Disable them using -DSQLITE_OMIT_INTROSPECTION_PRAGMAS.
Add the SQLITE_DBCONFIG_ENABLE_VIEW option for sqlite3_db_config().
Added the TCL Interface config method in order to be able to disable SQLITE_DBCONFIG_ENABLE_VIEW as well as control other sqlite3_db_config() options from TCL.
Added the SQLITE_DIRECTONLY flag for application-defined SQL functions to prevent those functions from being used inside triggers and views.
The legacy SQLITE_ENABLE_STAT3 compile-time option is now a no-op.

Revision 1.63 / (download) - annotate - [select for diffs], Fri Jul 12 10:04:26 2019 UTC (4 years, 9 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2019Q3-base, pkgsrc-2019Q3
Changes since 1.62: +3 -3 lines
Diff to previous 1.62 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.29.0

SQLite Release 3.29.0:
Added the SQLITE_DBCONFIG_DQS_DML and SQLITE_DBCONFIG_DQS_DDL actions to sqlite3_db_config() for activating and deactivating the double-quoted string literal misfeature. Both default to "on" for legacy compatibility, but developers are encouraged to turn them "off", perhaps using the -DSQLITE_DQS=0 compile-time option.
-DSQLITE_DQS=0 is now a recommended compile-time option.

Improvements to the query planner:
Improved optimization of AND and OR operators when one or the other operand is a constant.
Enhancements to the LIKE optimization for cases when the left-hand side column has numeric affinity.
Added the "sqlite_dbdata" virtual table for extracting raw low-level content from an SQLite database, even a database that is corrupt.

Enhancements to the CLI:
Add the ".recover" command which tries to recover as much content as possible from a corrupt database file.
Add the ".filectrl" command useful for testing.
Add the long-standing ".testctrl" command to the ".help" menu.
Added the ".dbconfig" command

Revision 1.62 / (download) - annotate - [select for diffs], Thu Apr 18 10:10:03 2019 UTC (5 years ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2019Q2-base, pkgsrc-2019Q2
Changes since 1.61: +3 -3 lines
Diff to previous 1.61 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.28.0

SQLite Release 3.28.0:

Enhanced window functions:
Add support the EXCLUDE clause.
Add support for window chaining.
Add support for GROUPS frames.
Add support for "<expr> PRECEDING" and "<expr> FOLLOWING" boundaries in RANGE frames.
Added the new sqlite3_stmt_isexplain(S) interface for determining whether or not a prepared statement is an EXPLAIN.
Enhanced VACUUM INTO so that it works for read-only databases.
New query optimizations:
Enable the LIKE optimization for cases when the ESCAPE keyword is present and PRAGMA case_sensitive_like is on.
In queries that are driven by a partial index, avoid unnecessary tests of the constraint named in the WHERE clause of the partial index, since we know that constraint must always be true.
Enhancements to the TCL Interface:
Added the -returntype option to the function method.
Added the new bind_fallback method.
Enhancements to the CLI:
Added support for bound parameters and the .parameter command.
Fix the readfile() function so that it returns an empty BLOB rather than throwing an out-of-memory error when reading an empty file.
Fix the writefile() function so that when it creates new directories along the path of a new file, it gives them umask permissions rather than the same permissions as the file.
Change --update option in the .archive command so that it skips files that are already in the archive and are unchanged. Add the new --insert option that works like --update used to work.
Added the fossildelta.c extension that can create, apply, and deconstruct the Fossil DVCS file delta format that is used by the RBU extension.
Added the SQLITE_DBCONFIG_WRITABLE_SCHEMA verb for the sqlite3_db_config() interface, that does the same work as PRAGMA writable_schema without using the SQL parser.
Added the sqlite3_value_frombind() API for determining if the argument to an SQL function is from a bound parameter.
Security and compatibilities enhancements to fts3_tokenizer():
The fts3_tokenizer() function always returns NULL unless either the legacy application-defined FTS3 tokenizers interface are enabled using the sqlite3_db_config(SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER) setting, or unless the first argument to fts3_tokenizer() is a bound parameter.
The two-argument version of fts3_tokenizer() accepts a pointer to the tokenizer method object even without the sqlite3_db_config(SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER) setting if the second argument is a bound parameter
Improved robustness against corrupt database files.
Miscellaneous performance enhancements

Revision 1.61 / (download) - annotate - [select for diffs], Mon Feb 25 18:04:29 2019 UTC (5 years, 1 month ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2019Q1-base, pkgsrc-2019Q1
Changes since 1.60: +3 -3 lines
Diff to previous 1.60 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.27.2

SQLite Release 3.27.2:
Fix a bug in the IN operator that was introduced by an attempted optimization in version 3.27.0.
Fix a bug causing a crash when a window function is misused.
Fix various documentation typos

Revision 1.60 / (download) - annotate - [select for diffs], Mon Feb 11 10:45:20 2019 UTC (5 years, 2 months ago) by adam
Branch: MAIN
Changes since 1.59: +5 -5 lines
Diff to previous 1.59 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.27.1

SQLite Release 3.27.1:
Fix a bug in the query optimizer: an adverse interaction between the OR optimization and the optimization that tries to use values read directly from an expression index instead of recomputing the expression.
Hashes:

Changes carried forward from version 3.27.0:
Added the VACUUM INTO command
Issue an SQLITE_WARNING message on the error log if a double-quoted string literal is used.
The sqlite3_normalized_sql() interface works on any prepared statement created using sqlite3_prepare_v2() or sqlite3_prepare_v3(). It is no longer necessary to use sqlite3_prepare_v3() with SQLITE_PREPARE_NORMALIZE in order to use sqlite3_normalized_sql().
Added the remove_diacritics=2 option to FTS3 and FTS5.
Added the SQLITE_PREPARE_NO_VTAB option to sqlite3_prepare_v3(). Use that option to prevent circular references to shadow tables from causing resource leaks.
Enhancements to the sqlite3_deserialize() interface:
Add the SQLITE_FCNTL_SIZE_LIMIT file-control for setting an upper bound on the size of the in-memory database created by sqlite3_deserialize. The default upper bound is 1GiB, or whatever alternative value is specified by sqlite3_config(SQLITE_CONFIG_MEMDB_MAXSIZE) and/or SQLITE_MEMDB_DEFAULT_MAXSIZE.
Honor the SQLITE_DESERIALIZE_READONLY flag, which was previously described in the documentation, but was previously a no-op.
Enhance the "deserialize" command of the TCL Interface to give it new "--maxsize N" and "--readonly BOOLEAN" options.
Enhancements to the CLI, mostly to support testing and debugging of the SQLite library itself:
Add support for ".open --hexdb". The "dbtotxt" utility program used to generate the text for the "hexdb" is added to the source tree.
Add support for the "--maxsize N" option on ".open --deserialize".
Add the "--memtrace" command-line option, to show all memory allocations and deallocations.
Add the ".eqp trace" option on builds with SQLITE_DEBUG, to enable bytecode program listing with indentation and PRAGMA vdbe_trace all in one step.
Add the ".progress" command for accessing the sqlite3_progress_handler() interface.
Add the "--async" option to the ".backup" command.
Add options "--expanded", "--normalized", "--plain", "--profile", "--row", "--stmt", and "--close" to the ".trace" command.
Increased robustness against malicious SQL that is run against a maliciously corrupted database.

Bug fixes:
Do not use a partial index to do a table scan on an IN operator.
Fix the query flattener so that it works on queries that contain subqueries that use window functions.
Ensure that ALTER TABLE modifies table and column names embedded in WITH clauses that are part of views and triggers.
Fix a parser bug that prevented the use of parentheses around table-valued functions.
Fix a problem with the OR optimization on indexes on expressions.
Fix a problem with the LEFT JOIN strength reduction optimization in which the optimization was being applied inappropriately due to an IS NOT NULL operator.
Fix the REPLACE command so that it is no longer able to sneak a NULL value into a NOT NULL column even if the NOT NULL column has a default value of NULL.
Fix a problem with the use of window functions used within correlated subqueries.
Fix the ALTER TABLE RENAME COLUMN command so that it works for tables that have redundant UNIQUE constraints.
Fix a bug that caused zeroblob values to be truncated when inserted into a table that uses an expression index.

Revision 1.59 / (download) - annotate - [select for diffs], Tue Dec 4 12:03:52 2018 UTC (5 years, 4 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2018Q4-base, pkgsrc-2018Q4
Changes since 1.58: +3 -3 lines
Diff to previous 1.58 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.26.0

SQLite Release 3.26.0:

Optimization: When doing an UPDATE on a table with indexes on expressions, do not update the expression indexes if they do not refer to any of the columns of the table being updated.
Allow the xBestIndex() method of virtual table implementations to return SQLITE_CONSTRAINT to indicate that the proposed query plan is unusable and should not be given further consideration.
Added the SQLITE_DBCONFIG_DEFENSIVE option which disables the ability to create corrupt database files using ordinary SQL.
Added support for read-only shadow tables when the SQLITE_DBCONFIG_DEFENSIVE option is enabled.
Added the PRAGMA legacy_alter_table command, which if enabled causes the ALTER TABLE command to behave like older version of SQLite (prior to version 3.25.0) for compatibility.
Added PRAGMA table_xinfo that works just like PRAGMA table_info except that it also shows hidden columns in virtual tables.
Added the explain virtual table as a run-time loadable extension.
Add a limit counter to the query planner to prevent excessive sqlite3_prepare() times for certain pathological SQL inputs.
Added support for the sqlite3_normalized_sql() interface, when compiling with SQLITE_ENABLE_NORMALIZE.
Enhanced triggers so that they can use table-valued functions that exist in schemas other than the schema where the trigger is defined.
Enhancements to the CLI:
- Improvements to the ".help" command.
- The SQLITE_HISTORY environment variable, if it exists, specifies the name of the command-line editing history file
- The --deserialize option associated with opening a new database cause the database file to be read into memory and accessed using the sqlite3_deserialize() API. This simplifies running tests on a database without modifying the file on disk.
Enhancements to the geopoly extension:
- Aways stores polygons using the binary format, which is faster and uses less space.
- Added the geopoly_regular() function.
- Added the geopoly_ccw() function.
Enhancements to the session extension:
- Added the SQLITE_CHANGESETAPPLY_INVERT flag
- Added the sqlite3changeset_start_v2() interface and the SQLITE_CHANGESETSTART_INVERT flag.
- Added the changesetfuzz.c test-case generator utility.

Revision 1.58 / (download) - annotate - [select for diffs], Wed Nov 7 11:51:25 2018 UTC (5 years, 5 months ago) by adam
Branch: MAIN
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.25.3

SQLite Release 3.25.3:
Disallow the use of window functions in the recursive part of a CTE.
Fix the behavior of typeof() and length() on virtual tables.
Strengthen defenses against deliberately corrupted database files.
Fix a problem in the query planner that results when a row-value expression is used with a PRIMARY KEY with redundant columns.
Fix the query planner so that it works correctly for IS NOT NULL operators in the ON clause of a LEFT JOIN with the SQLITE_ENABLE_STAT4 compile-time option.

Revision 1.57 / (download) - annotate - [select for diffs], Mon Oct 1 08:02:37 2018 UTC (5 years, 6 months ago) by adam
Branch: MAIN
Changes since 1.56: +3 -3 lines
Diff to previous 1.56 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.25.2

SQLite Release 3.25.2:
Add the PRAGMA legacy_alter_table=ON command that causes the "ALTER TABLE RENAME" command to behave as it did in SQLite versions 3.24.0 and earlier: references to the renamed table inside the bodies of triggers and views are not updated. This new pragma provides a compatibility work around for older programs that expected the older, wonky behavior of ALTER TABLE RENAME.
Fix a problem with the new window functions implementation that caused a malfunction when complicated expressions involving window functions were used inside of a view.
Fixes for various other compiler warnings and minor problems associated with obscure configurations.

Revision 1.56 / (download) - annotate - [select for diffs], Wed Sep 19 09:38:08 2018 UTC (5 years, 6 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2018Q3-base, pkgsrc-2018Q3
Changes since 1.55: +3 -3 lines
Diff to previous 1.55 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.25.1

SQLite Release 3.25.1:

Extra sanity checking added to ALTER TABLE in the 3.25.0 release sometimes raises a false-positive when the table being modified has a trigger that updates a virtual table. The false-positive caused the ALTER TABLE to rollback, thus leaving the schema unchanged.
The fix in the 3.25.0 release for the endless-loop in the byte-code associated with the ORDER BY LIMIT optimization did not work for some queries involving window functions. An additional correction is required.

Revision 1.55 / (download) - annotate - [select for diffs], Mon Sep 17 16:14:07 2018 UTC (5 years, 7 months ago) by adam
Branch: MAIN
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.25.0

SQLite Release 3.25.0:

Add support for window functions
Enhancements the ALTER TABLE command:
- Add support for renaming columns within a table using ALTER TABLE table RENAME COLUMN oldname TO newname.
- Fix table rename feature so that it also updates references to the renamed table in triggers and views.
Query optimizer improvements:
- Avoid unnecessary loads of columns in an aggregate query that are not within an aggregate function and that are not part of the GROUP BY clause.
- The IN-early-out optimization: When doing a look-up on a multi-column index and an IN operator is used on a column other than the left-most column, then if no rows match against the first IN value, check to make sure there exist rows that match the columns to the right before continuing with the next IN value.
- Use the transitive property to try to propagate constant values within the WHERE clause. For example, convert "a=99 AND b=a" into "a=99 AND b=99".
Use a separate mutex on every inode in the unix VFS, rather than a single mutex shared among them all, for slightly better concurrency in multi-threaded environments.
Enhance the PRAGMA integrity_check command for improved detection of problems on the page freelist.
Output infinity as 1e999 in the ".dump" command of the command-line shell.
Added the SQLITE_FCNTL_DATA_VERSION file-control.
Added the Geopoly module

Bug fixes:
The ORDER BY LIMIT optimization might have caused an infinite loop in the byte code of the prepared statement under very obscure circumstances, due to a confluence of minor defects in the query optimizer.
On an UPSERT when the order of constraint checks is rearranged, ensure that the affinity transformations on the inserted content occur before any of the constraint checks.
Avoid using a prepared statement for ".stats on" command of the CLI after it has been closed by the ".eqp full" logicc.
The LIKE optimization was generating incorrect byte-code and hence getting the wrong answer if the left-hand operand has numeric affinity and the right-hand-side pattern is '/%' or if the pattern begins with the ESCAPE character.

Revision 1.54 / (download) - annotate - [select for diffs], Thu Jun 7 07:36:49 2018 UTC (5 years, 10 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2018Q2-base, pkgsrc-2018Q2
Changes since 1.53: +3 -3 lines
Diff to previous 1.53 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.24.0

SQLite Release 3.24.0:
Add support for PostgreSQL-style UPSERT.
Add support for auxiliary columns in r-tree tables.
Add C-language APIs for discovering SQL keywords used by SQLite: sqlite3_keyword_count(), sqlite3_keyword_name(), and sqlite3_keyword_check().
Add C-language APIs for dynamic strings based on the sqlite3_str object.
Enhance ALTER TABLE so that it recognizes "true" and "false" as valid arguments to DEFAULT.
Add the sorter-reference optimization as a compile-time option. Only available if compiled with SQLITE_ENABLE_SORTER_REFERENCES.
Improve the format of the EXPLAIN QUERY PLAN raw output, so that it gives better information about the query plan and about the relationships between the various components of the plan.
Added the SQLITE_DBCONFIG_RESET_DATABASE option to the sqlite3_db_config() API.
CLI Enhancements:

Automatically intercepts the raw EXPLAIN QUERY PLAN output and reformats it into an ASCII-art graph.
Lines that begin with "#" and that are not in the middle of an SQL statement are interpreted as comments.
Added the --append option to the ".backup" command.
Added the ".dbconfig" command.
Performance:

UPDATE avoids unnecessary low-level disk writes when the contents of the database file do not actually change. For example, "UPDATE t1 SET x=25 WHERE y=?" generates no extra disk I/O if the value in column x is already 25. Similarly, when doing UPDATE on records that span multiple pages, only the subset of pages that actually change are written to disk. This is a low-level performance optimization only and does not affect the behavior of TRIGGERs or other higher level SQL structures.
Queries that use ORDER BY and LIMIT now try to avoid computing rows that cannot possibly come in under the LIMIT. This can greatly improve performance of ORDER BY LIMIT queries, especially when the LIMIT is small relative to the number of unrestricted output rows.
The OR optimization is allowed to proceed even if the OR expression has also been converted into an IN expression. Uses of the OR optimization are now also more clearly shown in the EXPLAIN QUERY PLAN output.
The query planner is more aggressive about using automatic indexes for views and subqueries for which it is not possible to create a persistent index.
Make use of the one-pass UPDATE and DELETE query plans in the R-Tree extension where appropriate.
Performance improvements in the LEMON-generated parser.
Bug fixes:

For the right-hand table of a LEFT JOIN, compute the values of expressions directly rather than loading precomputed values out of an expression index as the expression index might not contain the correct value.
Do not attempt to use terms from the WHERE clause to enable indexed lookup of the right-hand table of a LEFT JOIN.
Fix a memory leak that can occur following a failure to open error in the CSV virtual table
Fix a long-standing problem wherein a corrupt schema on the sqlite_sequence table used by AUTOINCREMENT can lead to a crash.
Fix the json_each() function so that it returns valid results on its "fullkey" column when the input is a simple value rather than an array or object.

Revision 1.53 / (download) - annotate - [select for diffs], Thu Apr 12 10:21:38 2018 UTC (6 years ago) by adam
Branch: MAIN
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored) to selected 1.34 (colored)

sqlite: updated to 3.23.1

SQLite Release 3.23.1:
Fix two problems in the new LEFT JOIN strength reduction optimization.
Fix misbehavior of the FTS5 xBestIndex method.
Fix a harmless reference to an uninitialized virtual machine register.
Fix the CLI so that it builds with -DSQLITE_UNTESTABLE
Fix the eval.c extension so that it works with PRAGMA empty_result_callbacks=ON.
Fix the generate_series virtual table so that it correctly returns no rows if any of its constraints are NULL.
Performance enhancements in the parser.

Revision 1.52 / (download) - annotate - [select for diffs], Tue Apr 3 19:58:19 2018 UTC (6 years ago) by adam
Branch: MAIN
Changes since 1.51: +10 -5 lines
Diff to previous 1.51 (colored) to selected 1.34 (colored)

sqlite3: updated to 3.23.0

SQLite Release 3.23.0:

Add the sqlite3_serialize() and sqlite3_deserialize() interfaces when the SQLITE_ENABLE_DESERIALIZE compile-time option is used.
Recognize TRUE and FALSE as constants. (For compatibility, if there exist columns named "true" or "false", then the identifiers refer to the columns rather than Boolean constants.)
Support operators IS TRUE, IS FALSE, IS NOT TRUE, and IS NOT FALSE.
Added the SQLITE_DBSTATUS_CACHE_SPILL option to sqlite3_db_status() for reporting the number of cache spills that have occurred.
The "alternate-form-2" flag ("!") on the built-in printf implementation now causes string substitutions to measure the width and precision in characters instead of bytes.
If the xColumn method in a virtual table implementation returns an error message using sqlite3_result_error() then give that error message preference over internally-generated messages.
Added the -A command-line option to the CLI to make it easier to manage SQLite Archive files.
Add support for INSERT OR REPLACE, INSERT OR IGNORE, and UPDATE OR REPLACE in the Zipfile virtual table.
Enhance the sqlite3changeset_apply() interface so that it is hardened against attacks from deliberately corrupted changeset objects.
Added the sqlite3_normalize() extension function.

Query optimizer enhancements:
Improve the omit-left-join optimization so that it works in cases where the right-hand table is UNIQUE but not necessarily NOT NULL.
Improve the push-down optimization so that it works for many LEFT JOINs.
Add the LEFT JOIN strength reduction optimization that converts a LEFT JOIN into an ordinary JOIN if there exist terms in the WHERE clause that would prevent the extra all-NULL row of the LEFT JOIN from appearing in the output set.
Avoid unnecessary writes to the sqlite_sequence table when an AUTOINCREMENT table is updated with an rowid that is less than the maximum.

Bug fixes:
Fix the parser to accept valid row value syntax.
Fix the query planner so that it takes into account dependencies in the arguments to table-valued functions in subexpressions in the WHERE clause.
Fix incorrect result with complex OR-connected WHERE and STAT4.
Fix potential corruption in indexes on expressions due to automatic datatype conversions.
Assertion fault in FTS4.
Incorrect result on the less-than operator in row values.
Always interpret non-zero floating-point values as TRUE, even if the integer part is zero.
Fix an issue in the fsdir(PATH) table-valued function to the fileio.c extension, that caused a segfault if the fsdir() table was used as the inner table of a join.
Issue an error rather instead of an assertion-fault or null-pointer dereference when the sqlite_master table is corrupted so that the sqlite_sequence table root page is really a btree-index page.
Fix the ANALYZE command so that it computes statistics on tables whose names begin with "sqlite".

Additional fixes for issues detected by OSSFuzz:
Fix a possible infinite loop on VACUUM for corrupt database files.
Disallow parameters in the WITH clause of triggers and views.
Fix a potential memory leak in row value processing.
Improve the performance of the replace() SQL function for cases where there are many substitutions on megabyte-sized strings, in an attempt to avoid OSSFuzz timeouts during testing.
Provide an appropriate error message when the sqlite_master table contains a CREATE TABLE AS statement. Formerly this caused either an assertion fault or null pointer dereference. Problem found by OSSFuzz on the GDAL project.
Incorrect assert() statement removed.
Fix a problem with using the LIKE optimization on an INTEGER PRIMARY KEY.

Revision 1.51 / (download) - annotate - [select for diffs], Mon Feb 13 17:44:01 2017 UTC (7 years, 2 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1
Changes since 1.50: +3 -1 lines
Diff to previous 1.50 (colored) to selected 1.34 (colored)

SQLite Release 3.17.0 On 2017-02-13
* Approximately 25% better performance from the R-Tree extension.
* Uses compiler built-ins (ex: __builtin_bswap32() or _byteswap_ulong()) for byteswapping when available.
* Uses the sqlite3_blob key/value access object instead of SQL for pulling content out of R-Tree nodes
* Other miscellaneous enhancements such as loop unrolling.
* Add the SQLITE_DEFAULT_LOOKASIDE compile-time option.
* Increase the default lookaside size from 512,125 to 1200,100 as this provides better performance while only adding 56KB of extra memory per connection. Memory-sensitive applications can restore the old default at compile-time, start-time, or run-time.
* Use compiler built-ins __builtin_sub_overflow(), __builtin_add_overflow(), and __builtin_mul_overflow() when available. (All compiler built-ins can be omitted with the SQLITE_DISABLE_INTRINSIC compile-time option.)
* Added the SQLITE_ENABLE_NULL_TRIM compile-time option, which can result in significantly smaller database files for some applications, at the risk of being incompatible with older versions of SQLite.
* Change SQLITE_DEFAULT_PCACHE_INITSZ from 100 to 20, for improved performance.
* Added the SQLITE_UINT64_TYPE compile-time option as an analog to SQLITE_INT64_TYPE.
* Perform some UPDATE operations in a single pass instead of in two passes.
* Enhance the session extension to support WITHOUT ROWID tables.
* Fixed performance problems and potential stack overflows when creating views from multi-row VALUES clauses with hundreds of thousands of rows.
* Added the sha1.c extension.
* 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".
* Enhance the SQLITE_DIRECT_OVERFLOW_READ option so that it works in WAL mode as long as the pages being read are not in the WAL file.
* Enhance the LEMON parser generator so that it can store the parser object as a stack variable rather than allocating space from the heap and make use of that enhancement in the amalgamation.
* Other performance improvements. Uses about 6.5% fewer CPU cycles.

Bug Fixes:
* Throw an error if the ON clause of a LEFT JOIN references tables to the right of the ON clause. This is the same behavior as PostgreSQL. Formerly, SQLite silently converted the LEFT JOIN into an INNER JOIN.
* Use the correct affinity for columns of automatic indexes.
* Ensure that the sqlite3_blob_reopen() interface can correctly handle short rows.

Revision 1.50 / (download) - annotate - [select for diffs], Sat Oct 22 00:18:39 2016 UTC (7 years, 5 months ago) by kamil
Branch: MAIN
CVS Tags: pkgsrc-2016Q4-base, pkgsrc-2016Q4
Changes since 1.49: +1 -3 lines
Diff to previous 1.49 (colored) to selected 1.34 (colored)

Upgrade lemon 1.0 from sqlite 3.5.9 to lemon 1.0 from sqlite 3.15.0

pkgsrc changes
==============

Bind this package with databases/sqlite3 to get immediate updates along
with the sqlite3 package.

Set new versioning policy and concatenate versions of lemon and sqlite3.
The reasoning for it is as follows:
 - currently lemon is an integral part of sqlite3
 - lemon has its own conservative versioning regardless of changes in its code
 - leave room for possible standalone lemon package with bumped versions
 - reflect reality and make it human readable without checking the sources

Set LICENSE to public-domain.

Install documentation in the HTML format.

Compile with LDFLAGS set.

Finally don't use databases/sqlite3/Makefile.common as lemon is not
distributed in the same archive. Make use of Makefile.version that does the
same job of tracking upstream.

Do not set PKGCONFIG_OVERRIDE in Makefile.common, it is not accessible in
sqlite3-tcl.

Upstream changelog
==================

Changes are unknown, but at least the program acquired a -T command line
option used by brlcad.

Revision 1.49 / (download) - annotate - [select for diffs], Fri Oct 21 23:32:40 2016 UTC (7 years, 5 months ago) by kamil
Branch: MAIN
Changes since 1.48: +3 -18 lines
Diff to previous 1.48 (colored) to selected 1.34 (colored)

Add sqlite3/Makefile.common for sqlite3 packages to share code

The intention is to reuse Makefile.common in devel/lemon.

Replace ${IS_BUILTIN.editline} == "yes" with !empty(IS_BUILTIN.editline:M[yY][eE][sS])

Revision 1.48, Sat Nov 21 16:58:05 2009 UTC (14 years, 4 months ago) by tnn
Branch: MAIN
CVS Tags: pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2009Q4-base, pkgsrc-2009Q4
Changes since 1.47: +1 -1 lines
FILE REMOVED

Switch to amalgamation style sqlite3 build. This is the recommended
way to build sqlite3 according to upstream.
It should give a small performance increase due to static inlining,
but more importantly lets us avoid manual maintenance of sqlite3.h.

Bump revisions for sqlite3 and sqlite3-tcl.

Revision 1.47 / (download) - annotate - [select for diffs], Fri Nov 13 18:28:42 2009 UTC (14 years, 5 months ago) by adam
Branch: MAIN
Changes since 1.46: +2 -2 lines
Diff to previous 1.46 (colored) to selected 1.34 (colored)

Changes 3.6.20:
* Optimizer enhancement: prepared statements are automatically re-compiled when
  a binding on the RHS of a LIKE operator changes or when any range constraint
  changes under SQLITE_ENABLE_STAT2.
* Various minor bug fixes and documentation enhancements.

Revision 1.46 / (download) - annotate - [select for diffs], Wed Oct 28 16:46:51 2009 UTC (14 years, 5 months ago) by tnn
Branch: MAIN
Changes since 1.45: +3 -1 lines
Diff to previous 1.45 (colored) to selected 1.34 (colored)

patch-ab: regen
Makefile: bump
Makefile.common: document why this needs to be done

Revision 1.45 / (download) - annotate - [select for diffs], Wed Oct 28 06:42:37 2009 UTC (14 years, 5 months ago) by adam
Branch: MAIN
Changes since 1.44: +2 -2 lines
Diff to previous 1.44 (colored) to selected 1.34 (colored)

Changes 3.6.19:
* Added support for foreign key constraints. Foreign key constraints are
  disabled by default. Use the foreign_keys pragma to turn them on.
* Generalized the IS and IS NOT operators to take arbitrary expressions on
  their right-hand side.
* The TCL Interface has been enhanced to use the Non-Recursive Engine (NRE)
  interface to the TCL interpreter when linked against TCL 8.6 or later.
* Fix a bug introduced in 3.6.18 that can lead to a segfault when an attempt
  is made to write on a read-only database.

Revision 1.44 / (download) - annotate - [select for diffs], Sun Oct 11 16:06:21 2009 UTC (14 years, 6 months ago) by tnn
Branch: MAIN
Changes since 1.43: +1 -8 lines
Diff to previous 1.43 (colored) to selected 1.34 (colored)

Fix:
===> Building for sqlite3-3.6.18
tclsh ./tool/mksqlite3h.tcl . >sqlite3.h
tclsh: not found
gmake: *** [sqlite3.h] Error 127

Upstream didn't ship a pregenerated sqlite3.h. Committed as patch-ab.

Revision 1.43 / (download) - annotate - [select for diffs], Sun Oct 11 09:14:14 2009 UTC (14 years, 6 months ago) by adam
Branch: MAIN
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored) to selected 1.34 (colored)

Changes 3.6.18:
* Versioning of the SQLite source code has transitioned from CVS to Fossil.
* Query planner enhancements.
* The SQLITE_ENABLE_STAT2 compile-time option causes the ANALYZE command to
  collect a small histogram of each index, to help SQLite better select among
  competing range query indices.
* Recursive triggers can be enabled using the PRAGMA recursive_triggers
  statement.
* Delete triggers fire when rows are removed due to a REPLACE conflict
  resolution. This feature is only enabled when recursive triggers are enabled.
* Added the SQLITE_OPEN_SHAREDCACHE and SQLITE_OPEN_PRIVATECACHE flags for
  sqlite3_open_v2() used to override the global shared cache mode settings for
  individual database connections.
* Added improved version identification features: C-Preprocessor macro
  SQLITE_SOURCE_ID, C/C++ interface sqlite3_sourceid(), and SQL function
  sqlite_source_id().
* Obscure bug fix on triggers

Revision 1.42 / (download) - annotate - [select for diffs], Fri Aug 21 03:37:15 2009 UTC (14 years, 8 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2009Q3-base, pkgsrc-2009Q3
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored) to selected 1.34 (colored)

Changes 3.6.17:
* Expose the sqlite3_strnicmp() interface for use by extensions and
  applications.
* Remove the restriction on virtual tables and shared cache mode. Virtual
  tables and shared cache can now be used at the same time.
* Many code simplifications and obscure bug fixes in support of providing 100%
  branch test coverage.

Revision 1.41 / (download) - annotate - [select for diffs], Thu Jul 9 09:24:21 2009 UTC (14 years, 9 months ago) by adam
Branch: MAIN
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored) to selected 1.34 (colored)

Changes 3.6.16:
* Fix a bug that occastionally causes INSERT or UPDATE operations to fail on
  an indexed table that has a self-modifying trigger.
* Other minor bug fixes and performance optimizations.

Revision 1.40 / (download) - annotate - [select for diffs], Thu Jun 4 13:02:45 2009 UTC (14 years, 10 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2009Q2-base, pkgsrc-2009Q2
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored) to selected 1.34 (colored)

Changes 3.6.14.2:
* Fix a code generator bug introduced in version 3.6.14. This bug can cause
  incorrect query results under obscure circumstances.

Revision 1.39 / (download) - annotate - [select for diffs], Thu May 21 11:44:42 2009 UTC (14 years, 11 months ago) by adam
Branch: MAIN
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored) to selected 1.34 (colored)

Changes 3.6.14.1:
* Fix a bug in group_concat().
* Fix a performance bug in the pager cache.
* Fix a bug in the sqlite3_backup implementation that can lead to a corrupt
  backup database.

Revision 1.38 / (download) - annotate - [select for diffs], Tue May 19 09:07:13 2009 UTC (14 years, 11 months ago) by wiz
Branch: MAIN
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored) to selected 1.34 (colored)

Uncomment some more LICENSE lines (all "public-domain").

Revision 1.37 / (download) - annotate - [select for diffs], Tue May 19 08:59:07 2009 UTC (14 years, 11 months ago) by wiz
Branch: MAIN
Changes since 1.36: +1 -2 lines
Diff to previous 1.36 (colored) to selected 1.34 (colored)

Use standard location for LICENSE line (in MAINTAINER/HOMEPAGE/COMMENT
block). Uncomment some commented out LICENSE lines while here.

Revision 1.36 / (download) - annotate - [select for diffs], Thu May 7 08:01:32 2009 UTC (14 years, 11 months ago) by adam
Branch: MAIN
Changes since 1.35: +9 -2 lines
Diff to previous 1.35 (colored) to selected 1.34 (colored)

Changed 3.6.14:
* Added the optional asynchronous VFS module.
* Enhanced the query optimizer so that virtual tables are able to make use of
  OR and IN operators in the WHERE clause.
* Speed improvements in the btree and pager layers.
* Added the SQLITE_HAVE_ISNAN compile-time option which will cause the isnan()
  function from the standard math library to be used instead of SQLite's own
  home-brew NaN checker.
* Countless minor bug fixes, documentation improvements, new and improved
  test cases, and code simplifications and cleanups.

Revision 1.35 / (download) - annotate - [select for diffs], Sat Apr 18 18:13:55 2009 UTC (15 years ago) by adam
Branch: MAIN
Changes since 1.34: +2 -2 lines
Diff to previous 1.34 (colored)

Changes 3.6.13:
* Fix a bug in version 3.6.12 that causes a segfault when running a count(*)
  on the sqlite_master table of an empty database.
* Fix a bug in version 3.6.12 that causes a segfault that when inserting into
  a table using a DEFAULT value where there is a function as part of the
  DEFAULT value expression.
* Fix data structure alignment issues on Sparc.
* Other minor bug fixes.

Revision 1.34 / (download) - annotate - [selected], Fri Apr 10 08:44:03 2009 UTC (15 years ago) by adam
Branch: MAIN
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

Changes 3.6.12:
* Fixed a bug that caused database corruption when an incremental vacuum is
  rolled back in an in-memory database.
* Added the sqlite3_unlock_notify() interface.
* Added the reverse unordered selects pragma.
* The default page size on windows is automatically adjusted to match the
  capabilities of the underlying filesystem.
* Add the new ".genfkey" command in the CLI for generating triggers to
  implement foreign key constraints.
* Performance improvements for "count(*)" queries.
* Reduce the amount of heap memory used, especially by TRIGGERs.

Revision 1.33 / (download) - annotate - [select for diffs], Wed Feb 18 19:13:04 2009 UTC (15 years, 2 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2009Q1-base, pkgsrc-2009Q1
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored) to selected 1.34 (colored)

Changes 3.6.11:
* Added the hot-backup interface.
* Added new commands ".backup" and ".restore" to the CLI.
* Added new methods backup and restore to the TCL interface.
* Improvements to the syntax bubble diagrams
* Various minor bug fixes

Revision 1.32 / (download) - annotate - [select for diffs], Sat Jan 17 07:34:29 2009 UTC (15 years, 3 months ago) by adam
Branch: MAIN
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored) to selected 1.34 (colored)

Changes 3.6.10:
* Fix a cache coherency problem that could lead to database corruption.

Revision 1.31 / (download) - annotate - [select for diffs], Thu Jan 15 12:51:33 2009 UTC (15 years, 3 months ago) by adam
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored) to selected 1.34 (colored)

Changes 3.6.9:
* Fix two bugs, which when combined might result in incorrect query results.
  Both bugs were harmless by themselves; only when they team up do they cause
  problems.

Changes 3.6.8:
* Added support for nested transactions.
* Enhanced the query optimizer so that it is able to use multiple indices
  to efficiently process OR-connected constraints in a WHERE clause.
* Added support for parentheses in FTS3 query patterns using
  the SQLITE_ENABLE_FTS3_PARENTHESIS compile-time option.

Revision 1.30 / (download) - annotate - [select for diffs], Tue Dec 16 18:46:16 2008 UTC (15 years, 4 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2008Q4-base, pkgsrc-2008Q4
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored) to selected 1.34 (colored)

Changes 3.6.7:
* Reorganize the Unix interface in os_unix.c
* Added support for "Proxy Locking" on MacOSX.
* Changed the prototype of the sqlite3_auto_extension() interface in a way
  that is backwards compatible but which might cause warnings in new
  builds of applications that use that interface.
* Changed the signature of the xDlSym method of the sqlite3_vfs object in
  a way that is backwards compatible but which might cause compiler
  warnings.
* Added superfluous casts and variable initializations in order to
  suppress nuisance compiler warnings.
* Fixes for various minor bugs.

Revision 1.29 / (download) - annotate - [select for diffs], Fri Nov 28 20:50:06 2008 UTC (15 years, 4 months ago) by adam
Branch: MAIN
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored) to selected 1.34 (colored)

Changes 3.6.6.2:
* Fix a bug in the b-tree delete algorithm that seems like it might
  be able to cause database corruption. The bug was first introduced in
  version 3.6.6.
* Fix a memory leak that can occur following a disk I/O error.

Revision 1.28 / (download) - annotate - [select for diffs], Sun Nov 23 09:16:35 2008 UTC (15 years, 4 months ago) by adam
Branch: MAIN
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored) to selected 1.34 (colored)

Changes 3.6.6.1:
* Fix a bug in the page cache that can lead database corruption following
  a rollback. This bug was first introduced in version 3.6.4.
* Two other very minor bug fixes

Revision 1.27 / (download) - annotate - [select for diffs], Fri Nov 21 12:22:21 2008 UTC (15 years, 4 months ago) by adam
Branch: MAIN
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored) to selected 1.34 (colored)

Changes 3.6.6:
* Fix a define that prevented memsys5 from compiling
* Fix a problem in the virtual table commit mechanism that was causing
  a crash in FTS3.
* Add the application-defined page cache
* Added built-in support for VxWorks

Changes 3.6.5:
* Add the MEMORY option to the journal_mode pragma.
* Added the sqlite3_db_mutex() interface.
* Added the SQLITE_OMIT_TRUNCATE_OPTIMIZATION compile-time option.
* Fixed the truncate optimization so that sqlite3_changes() and
  sqlite3_total_changes() interfaces and the count_changes pragma return
  the correct values.
* Added the sqlite3_extended_errcode() interface.
* The COMMIT command now succeeds even if there are pending queries. It returns * SQLITE_BUSY if there are pending incremental BLOB I/O requests.
* The error code is changed to SQLITE_BUSY (instead of SQLITE_ERROR) when
  an attempt is made to ROLLBACK while one or more queries are still pending.
* Drop all support for the experimental memory allocators memsys4 and memsys6.
* Added the SQLITE_ZERO_MALLOC compile-time option.

Revision 1.26 / (download) - annotate - [select for diffs], Sun Oct 19 00:11:49 2008 UTC (15 years, 6 months ago) by gdt
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored) to selected 1.34 (colored)

Comment out LICENSE=public-domain because we aren't putting in free
licenses yet.  Noticed By smb@.

Revision 1.25 / (download) - annotate - [select for diffs], Wed Oct 15 18:22:04 2008 UTC (15 years, 6 months ago) by martti
Branch: MAIN
Changes since 1.24: +4 -2 lines
Diff to previous 1.24 (colored) to selected 1.34 (colored)

Updated databases/sqlite3 to 3.6.4

* Add option support for LIMIT and ORDER BY clauses on DELETE and UPDATE
  statements. Only works if SQLite is compiled with
  SQLITE_ENABLE_UPDATE_DELETE_LIMIT.
* Added the sqlite3_stmt_status() interface for performance monitoring.
* Add the INDEXED BY clause.
* The LOCKING_STYLE extension is now enabled by default on Mac OS-X
* Added the TRUNCATE option to PRAGMA journal_mode
* Performance enhancements to tree balancing logic in the B-Tree layer.
* Added the source code and documentation for the genfkey program for
  automatically generating triggers to enforce foreign key constraints.
* Added the SQLITE_OMIT_TRUNCATE_OPTIMIZATION compile-time option.
* The SQL language documentation is converted to use syntax diagrams
  instead of BNF.
* Other minor bug fixes

Revision 1.24 / (download) - annotate - [select for diffs], Mon Oct 6 08:00:49 2008 UTC (15 years, 6 months ago) by adam
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored) to selected 1.34 (colored)

Changes 3.6.3:
* Fix for a bug in SELECT DISTINCT logic that was introduced by the prior
  version.
* Other minor bug fixes.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Sep 22 08:34:08 2008 UTC (15 years, 6 months ago) by obache
Branch: MAIN
CVS Tags: pkgsrc-2008Q3-base, pkgsrc-2008Q3
Changes since 1.22: +1 -8 lines
Diff to previous 1.22 (colored) to selected 1.34 (colored)

py-sqlite2 does not require disable-threadsafe but expect to exist
load-extension these days.  OKed by wiz to commit.

Bump PKGREVISION.

Revision 1.22 / (download) - annotate - [select for diffs], Sun Sep 7 14:04:01 2008 UTC (15 years, 7 months ago) by adam
Branch: MAIN
CVS Tags: cube-native-xorg-base, cube-native-xorg
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored) to selected 1.34 (colored)

Changes 3.6.2:
* Split the pager subsystem into separate pager and pcache subsystems.
* Factor out indentifier resolution procedures into separate files.
* Bug fixes.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Aug 18 12:29:20 2008 UTC (15 years, 8 months ago) by adam
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored) to selected 1.34 (colored)

Changes 3.6.1:
* Added the lookaside memory allocator for a speed improvement in excess of 15%
  on some workloads. (Your mileage may vary.)
* Added the SQLITE_CONFIG_LOOKASIDE verb to sqlite3_config() to control the
  default lookaside configuration.
* Added verbs SQLITE_STATUS_PAGECACHE_SIZE and SQLITE_STATUS_SCRATCH_SIZE to
  the sqlite3_status() interface.
* Modified SQLITE_CONFIG_PAGECACHE and SQLITE_CONFIG_SCRATCH to remove the "+4"
  magic number in the buffer size computation.
* Added the sqlite3_db_config() and sqlite3_db_status() interfaces for
  controlling and monitoring the lookaside allocator separately on each
  database connection.
* Numerious other performance enhancements
* Miscellaneous minor bug fixes

Revision 1.20 / (download) - annotate - [select for diffs], Fri Jul 18 17:43:34 2008 UTC (15 years, 9 months ago) by adam
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored) to selected 1.34 (colored)

Changes 3.6.0:
* Modifications to the virtual file system interface to support a wider range
  of embedded systems.
* All C-preprocessor macros used to control compile-time options now begin
  with the prefix "SQLITE_".
* The SQLITE_MUTEX_APPDEF compile-time option is no longer supported.
* The handling of IN and NOT IN operators that contain a NULL on their
  right-hand side expression is brought into compliance with the SQL standard
  and with other SQL database engines. This is a bug fix, but as it has the
  potential to break legacy applications that depend on the older buggy
  behavior.
* The result column names generated for compound subqueries have been
  simplified to show only the name of the column of the original table and
  omit the table name. This makes SQLite operate more like other SQL database
  engines.
* Added the sqlite3_config() interface for doing run-time configuration of the
  entire SQLite library.
* Added the sqlite3_status() interface used for querying run-time status
  information about the overall SQLite library and its subsystems.
* Added the sqlite3_initialize() and sqlite3_shutdown() interfaces.
* The SQLITE_OPEN_NOMUTEX option was added to sqlite3_open_v2().
* Added the PRAGMA page_count command.
* Added the sqlite3_next_stmt() interface.
* Added a new R*Tree virtual table

Revision 1.19 / (download) - annotate - [select for diffs], Sun May 25 07:11:13 2008 UTC (15 years, 10 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2008Q2-base, pkgsrc-2008Q2, cwrapper
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored) to selected 1.34 (colored)

Changes 3.5.9:
* Added experimental support for the journal_mode PRAGMA and persistent
  journal.
* Journal mode PERSIST is the default behavior in exclusive locking mode.
* Fix a performance regression on LEFT JOIN (see ticket #3015) that was
  mistakenly introduced in version 3.5.8.
* Performance enhancement: Reengineer the internal routines used to
  interpret and render variable-length integers.
* Fix a buffer-overrun problem in sqlite3_mprintf() which occurs when
  a string without a zero-terminator is passed to "%.*s".
* Always convert IEEE floating point NaN values into NULL during
  processing.
* Make sure that when a connection blocks on a RESERVED lock that it is
  able to continue after the lock is released.
* The "configure" scripts should now automatically configure unix systems
  for large file support. Improved error messages for when large files are
  encountered and large file support is disabled.
* Avoid cache pages leaks following disk-full or I/O errors
* And, many more minor bug fixes and performance enhancements...

Revision 1.18 / (download) - annotate - [select for diffs], Tue Mar 4 10:46:55 2008 UTC (16 years, 1 month ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2008Q1-base, pkgsrc-2008Q1
Changes since 1.17: +4 -2 lines
Diff to previous 1.17 (colored) to selected 1.34 (colored)

Update to 3.5.6:

2008 Feb 6 (3.5.6)

   * Fix a bug ( ticket #2913) that prevented virtual tables from working
     in a LEFT JOIN. The problem was introduced into shortly before the
     3.5.5 release.
   * Bring the OS/2 porting layer up-to-date.
   * Add the new sqlite3_result_error_code() API and use it in the
     implementation of ATTACH so that proper error codes are returned when
     an ATTACH fails.

2008 Jan 31 (3.5.5)

   * Convert the underlying virtual machine to be a register-based machine
     rather than a stack-based machine. The only user-visible change is in
     the output of EXPLAIN.
   * Add the build-in RTRIM collating sequence.

2007 Dec 14 (3.5.4)

   * Fix a critical bug in UPDATE or DELETE that occurs when an OR REPLACE
     clause or a trigger causes rows in the same table to be deleted as
     side effects. (See ticket #2832.) The most likely result of this bug
     is a segmentation fault, though database corruption is a possibility.
   * Bring the processing of ORDER BY into compliance with the SQL standard
     for case where a result alias and a table column name are in conflict.
     Correct behavior is to prefer the result alias. Older versions of
     SQLite incorrectly picked the table column. (See ticket #2822.)
   * The VACUUM command preserves the setting of the legacy_file_format
     pragma. ( Ticket #2804.)
   * Productize and officially support the group_concat() SQL function.
   * Better optimization of some IN operator expressions.
   * Add the ability to change the auto_vacuum status of a database by
     setting the auto_vaccum pragma and VACUUMing the database.
   * Prefix search in FTS3 is much more efficient.
   * Relax the SQL statement length restriction in the CLI so that the
     ".dump" output of databases with very large BLOBs and strings can be
     played back to recreate the database.
   * Other small bug fixes and optimizations.

2007 Nov 27 (3.5.3)

   * Move website and documentation files out of the source tree into a
     separate CM system.
   * Fix a long-standing bug in INSERT INTO ... SELECT ... statements where
     the SELECT is compound.
   * Fix a long-standing bug in RAISE(IGNORE) as used in BEFORE triggers.
   * Fixed the operator precedence for the ~ operator.
   * On win32, do not return an error when attempting to delete a file that
     does not exist.
   * Allow collating sequence names to be quoted.
   * Modify the TCL interface to use sqlite3_prepare_v2().
   * Fix multiple bugs that can occur following a malloc() failure.
   * sqlite3_step() returns SQLITE_MISUSE instead of crashing when called
     with a NULL parameter.
   * FTS3 now uses the SQLite memory allocator exclusively. The FTS3
     amalgamation can now be appended to the SQLite amalgamation to
     generate a super-amalgamation containing both.
   * The DISTINCT keyword now will sometimes use an INDEX if an appropriate
     index is available and the optimizer thinks its use might be
     advantageous.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Nov 15 14:11:53 2007 UTC (16 years, 5 months ago) by rillig
Branch: MAIN
CVS Tags: pkgsrc-2007Q4-base, pkgsrc-2007Q4
Changes since 1.16: +8 -1 lines
Diff to previous 1.16 (colored) to selected 1.34 (colored)

The new thread-safe feature doesn't really work: The py-sqlite2
self-test fails with a segmentation fault.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Nov 15 10:39:18 2007 UTC (16 years, 5 months ago) by rillig
Branch: MAIN
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored) to selected 1.34 (colored)

Updated sqlite to 3.5.2. The main reason to update was that on Solaris,
the file lemon.c uses the same identifiers (B_TRUE, B_FALSE) as the
<sys/types.h> header, and therefore fails to build.

Changes since 3.4.2:

   2007 Nov 05 (3.5.2)

     * Dropped support for the SQLITE_OMIT_MEMORY_ALLOCATION compile-time
       option.
     * Always open files using FILE_FLAG_RANDOM_ACCESS under windows.
     * The 3rd parameter of the built-in SUBSTR() function is now
       optional.
     * Bug fix: do not invoke the authorizer when reparsing the schema
       after a schema change.
     * Added the experimental malloc-free memory allocator in mem3.c.
     * Virtual machine stores 64-bit integer and floating point constants
       in binary instead of text for a performance boost.
     * Fix a race condition in test_async.c.
     * Added the ".timer" command to the CLI

   2007 Oct 04 (3.5.1)

     * Nota Bene: We are not using terms "alpha" or "beta" on this release
       because the code is stable and because if we use those terms,
       nobody will upgrade. However, we still reserve the right to make
       incompatible changes to the new VFS interface in future releases.
     * Fix a bug in the handling of SQLITE_FULL errors that could lead to
       database corruption. [11]Ticket #2686.
     * The test_async.c drive now does full file locking and works
       correctly when used simultaneously by multiple processes on the
       same database.
     * The CLI ignores whitespace (including comments) at the end of lines
     * Make sure the query optimizer checks dependences on all terms of a
       compound SELECT statement. [12]Ticket #2640.
     * Add demonstration code showing how to build a VFS for a raw mass
       storage without a filesystem.
     * Added an output buffer size parameter to the xGetTempname() method
       of the VFS layer.
     * Sticky SQLITE_FULL or SQLITE_IOERR errors in the pager are reset
       when a new transaction is started.

   2007 Sep 04 (3.5.0) alpha

     * Redesign the OS interface layer. See [13]34to35.html for details.
       *** Potentially incompatible change ***
     * The [14]sqlite3_release_memory(), [15]sqlite3_soft_heap_limit(),
       and [16]sqlite3_enable_shared_cache() interfaces now work cross all
       threads in the process, not just the single thread in which they
       are invoked. *** Potentially incompatible change ***
     * Added the [17]sqlite3_open_v2() interface.
     * Reimplemented the memory allocation subsystem and made it
       replacable at compile-time.
     * Created a new mutex subsystem and made it replacable at
       compile-time.
     * The same database connection may now be used simultaneously by
       separate threads.

Revision 1.15 / (download) - annotate - [select for diffs], Sat Sep 15 09:17:43 2007 UTC (16 years, 7 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2007Q3-base, pkgsrc-2007Q3
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored) to selected 1.34 (colored)

Update to 3.4.2:

While stress-testing the soft_heap_limit  feature, a bug that could
lead to database corruption was  discovered and fixed. Though the
consequences of this bug are severe, the chances of hitting it in
a typical application are remote. Upgrading is recommended only if
you use the sqlite3_soft_heap_limit  interface.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Aug 13 17:27:30 2007 UTC (16 years, 8 months ago) by drochner
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored) to selected 1.34 (colored)

update to 3.4.1
This release fixes a bug in VACUUM that can lead to database
corruption. The bug was introduced in version 3.3.14. Upgrading is
recommended for all users. Also included are a slew of other more
routine enhancements and bug fixes.

pkgsrc note: 3 selftests are failing due to some loss of accuracy
in floating point calculations. The upstream fix is to disable the
selftests in question (see sqlite ticket #2570).

Revision 1.13 / (download) - annotate - [select for diffs], Tue Jul 3 17:29:57 2007 UTC (16 years, 9 months ago) by wiz
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored) to selected 1.34 (colored)

Update to 3.4.0:

2007 June 18 (3.4.0)

* Fix a bug that can lead to database corruption if an SQLITE_BUSY
error occurs in the middle of an explicit transaction and that
transaction is later committed. Ticket #2409. See the
CorruptionFollowingBusyError wiki page for details.
* Fix a bug that can lead to database corruption if autovacuum mode
is on and a malloc() failure follows a CREATE TABLE or CREATE INDEX
statement which itself follows a cache overflow inside a transaction.
See ticket #2418.
* Added explicit upper bounds on the sizes and quantities of things
SQLite can process. This change might cause compatibility problems
for applications that use SQLite in the extreme, which is why the
current release is 3.4.0 instead of 3.3.18.
* Added support for Incremental BLOB I/O.
* Added the zeroblob API and the zeroblob() SQL function.
* Added support for Incremental Vacuum.
* Added the SQLITE_MIXED_ENDIAN_64BIT_FLOAT compile-time option to
suppport ARM7 processors with goofy endianness.
* Removed all instances of sprintf() and strcpy() from the core
library.
* Added support for International Components for Unicode (ICU) to
the full-text search extensions.

* In the windows OS driver, reacquire a SHARED lock if an attempt
to acquire an EXCLUSIVE lock fails. Ticket #2354
* Fix the REPLACE() function so that it returns NULL if the second
argument is an empty string. Ticket #2324.
* Document the hazards of type coversions in sqlite3_column_blob()
and related APIs. Fix unnecessary type conversions. Ticket #2321.
* Internationalization of the TRIM() function. Ticket #2323
* Use memmove() instead of memcpy() when moving between memory
regions that might overlap. Ticket #2334
* Fix an optimizer bug involving subqueries in a compound SELECT
that has both an ORDER BY and a LIMIT clause. Ticket #2339.
* Make sure the sqlite3_snprintf() interface does not zero-terminate
the buffer if the buffer size is less than 1. Ticket #2341
* Fix the built-in printf logic so that it prints "NaN" not "Inf"
for floating-point NaNs. Ticket #2345
* When converting BLOB to TEXT, use the text encoding of the main
database. Ticket #2349
* Keep the full precision of integers (if possible) when casting
to NUMERIC. Ticket #2364
* Fix a bug in the handling of UTF16 codepoint 0xE000
* Consider explicit collate clauses when matching WHERE constraints
to indices in the query optimizer. Ticket #2391
* Fix the query optimizer to correctly handle constant expressions
in the ON clause of a LEFT JOIN. Ticket #2403
* Fix the query optimizer to handle rowid comparisions to NULL
correctly. Ticket #2404
* Fix many potental segfaults that could be caused by malicious
SQL statements.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Jun 7 19:49:10 2007 UTC (16 years, 10 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2007Q2-base, pkgsrc-2007Q2
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored) to selected 1.34 (colored)

Update to 3.3.17:

2007 April 25 (3.3.17)

* When the "write_version" value of the database
  header is larger than what the library understands,
  make the database read-only instead of unreadable.
* Other minor bug fixes

2007 April 18 (3.3.16)

* Fix a bug that caused VACUUM to fail if NULLs
  appeared in a UNIQUE column.
* Reinstate performance improvements that were added
  in 3.3.14 but regressed in 3.3.15.
* Fix problems with the handling of ORDER BY expressions
  on compound SELECT statements in subqueries.
* Fix a potential segfault when destroying locks on
  WinCE in a multi-threaded environment.
* Documentation updates.

2007 April 9 (3.3.15)

* Fix a bug introduced in 3.3.14 that caused a rollback
  of CREATE TEMP TABLE to leave the database connection
  wedged.
* Fix a bug that caused an extra NULL row to be
  returned when a descending query was interrupted by
  a change to the database.
* The FOR EACH STATEMENT clause on a trigger now
  causes a syntax error. It used to be silently ignored.
* Fix an obscure and relatively harmless problem that
  might have caused a resource leak following an I/O
  error.
* Many improvements to the test suite. Test coverage
  now exceeded 98%

2007 April 2 (3.3.14)

* Fix a bug in 3.3.13 that could cause a segfault
  when the IN operator is used one one term of a
  two-column index and the right-hand side of the IN
  operator contains a NULL.
* Added a new OS interface method for determining
  the sector size of underlying media: sqlite3OsSectorSize().
* A new algorithm for statements of the form INSERT
  INTO table1 SELECT * FROM table2 is faster and
  reduces fragmentation. VACUUM uses statements of
  this form and thus runs faster and defragments
  better.
* Performance enhancements through reductions in disk I/O:
* Do not read the last page of an overflow chain
  when deleting the row - just add that page to
  the freelist.
* Do not store pages being deleted in the rollback journal.
* Do not read in the (meaningless) content of
  pages extracted from the freelist.
* Do not flush the page cache (and thus avoiding
  a cache refill) unless another process changes
  the underlying database file.
* Truncate rather than delete the rollback
  journal when committing a transaction in
  exclusive access mode, or when committing the
  TEMP database.
* Added support for exclusive access mode using
  "PRAGMA locking_mode=EXCLUSIVE"
* Use heap space instead of stack space for large
  buffers in the pager - useful on embedded platforms
  with stack-space limitations.
* Add a makefile target "sqlite3.c" that builds an
  amalgamation containing the core SQLite library C
  code in a single file.
* Get the library working correctly when compiled
  with GCC option "-fstrict-aliasing".
* Removed the vestigal SQLITE_PROTOCOL error.
* Improvements to test coverage, other minor bugs
  fixed, memory leaks plugged, code refactored and/or
  recommented in places for easier reading.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Mar 7 12:17:58 2007 UTC (17 years, 1 month ago) by drochner
Branch: MAIN
CVS Tags: pkgsrc-2007Q1-base, pkgsrc-2007Q1
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored) to selected 1.34 (colored)

update to 3.3.13
changes:
-bugfixes
-enhanced PRAGMA integrity_check

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jan 11 19:08:48 2007 UTC (17 years, 3 months ago) by drochner
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored) to selected 1.34 (colored)

update to 3.3.10
changes:
-fixed bugs which can lead to database corruption under obscure and
 difficult to reproduce circumstances
-new sqlite3_prepare_v2() API
-bug fixes in the command-line shell
-enhancements to the query optimizer

pkgsrc change: fix a selftest which couldn't work as intended due to
misuse of O_APPEND

Revision 1.9 / (download) - annotate - [select for diffs], Sat Nov 18 23:56:18 2006 UTC (17 years, 5 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2006Q4-base, pkgsrc-2006Q4
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored) to selected 1.34 (colored)

Update to 3.3.8:

Version 3.3.8 adds support for full-text search using the FTS1
module. There are also minor bug fixes. Upgrade only if you want
to try out the new full-text search capabilities or if you are
having problems with 3.3.7.

Version 3.3.7 includes support for loadable extensions and virtual
tables. But both features are still considered "beta" and their
APIs are subject to change in a future release. This release is
mostly to make available the minor bug fixes that have accumulated
since 3.3.6. Upgrading is not necessary. Do so only if you encounter
one of the obscure bugs that have been fixed or if you want to try
out the new features.

2006-Jun-6 - Version 3.3.6

Changes include improved tolerance for windows virus scanners and
faster :memory: databases. There are also fixes for several obscure
bugs. Upgrade if you are having problems.

2006-Apr-5 - Version 3.3.5

This release fixes many minor bugs and documentation typos and
provides some minor new features and performance enhancements.
Upgrade only if you are having problems or need one of the new
features.

Revision 1.8 / (download) - annotate - [select for diffs], Sat Mar 4 21:29:11 2006 UTC (18 years, 1 month ago) by jlam
Branch: MAIN
CVS Tags: pkgsrc-2006Q3-base, pkgsrc-2006Q3, pkgsrc-2006Q2-base, pkgsrc-2006Q2, pkgsrc-2006Q1-base, pkgsrc-2006Q1
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored) to selected 1.34 (colored)

Point MAINTAINER to pkgsrc-users@NetBSD.org in the case where no
developer is officially maintaining the package.

The rationale for changing this from "tech-pkg" to "pkgsrc-users" is
that it implies that any user can try to maintain the package (by
submitting patches to the mailing list).  Since the folks most likely
to care about the package are the folks that want to use it or are
already using it, this would leverage the energy of users who aren't
developers.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Feb 15 19:50:52 2006 UTC (18 years, 2 months ago) by drochner
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored) to selected 1.34 (colored)

update to 3.3.4
changes:
adds support for CHECK constraints, DESC indices, separate
REAL and INTEGER column affinities, a new OS interface layer design, and
many other changes

pkgsrc note:
a selftest fails on NetBSD/i386: a loss of precision is not detected in
the sum() function. Reason is that the code assumes that a "long double"
keeps more significant bits than a "long long int" which is not true here.
This is not a regression to 3.2.x which did just wrap on int overflows.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Sep 30 12:17:39 2005 UTC (18 years, 6 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2005Q4-base, pkgsrc-2005Q4
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored) to selected 1.34 (colored)

Update to 3.2.7:

2005 September 24 (3.2.7)

* GROUP BY now considers NULLs to be equal again, as it should
* Now compiles on Solaris and OpenBSD and other Unix variants that lack the
  fdatasync() function
* Now compiles on MSVC++6 again
* Fix uninitialized variables causing malfunctions for various obscure queries
* Correctly compute a LEFT OUTER JOINs that is constrained on the left table only

2005 September 17 (3.2.6)

* Fix a bug that can cause database corruption if a VACUUM (or autovacuum) fails
  and is rolled back on a database that is larger than 1GiB
* LIKE optiization now works for columns with COLLATE NOCASE
* ORDER BY and GROUP BY now use bounded memory
* Added support for COUNT(DISTINCT expr)
* Change the way SUM() handles NULL values in order to comply with the SQL standard
* Use fdatasync() instead of fsync() where possible in order to speed up commits
  slightly
* Use of the CROSS keyword in a join turns off the table reordering optimization
* Added the experimental and undocumented EXPLAIN QUERY PLAN capability
* Use the unicode API in windows

2005 August 27 (3.2.5)

* Fix a bug effecting DELETE and UPDATE statements that changed more than 40960
  rows.
* Change the makefile so that it no longer requires GNUmake extensions
* Fix the --enable-threadsafe option on the configure script
* Fix a code generator bug that occurs when the left-hand side of an IN operator is
  constant and the right-hand side is a SELECT statement
* The PRAGMA synchronous=off statement now disables syncing of the master journal
  file in addition to the normal rollback journals

2005 August 24 (3.2.4)

* Fix a bug introduced in the previous release that can cause a segfault while
  generating code for complex WHERE clauses.
* Allow floating point literals to begin or end with a decimal point.

2005 August 21 (3.2.3)

* Added support for the CAST operator
* Tcl interface allows BLOB values to be transferred to user-defined functions
* Added the "transaction" method to the Tcl interface
* Allow the DEFAULT value of a column to call functions that have constant operands
* Added the ANALYZE command for gathering statistics on indices and using those
  statistics when picking an index in the optimizer
* Remove the limit (formerly 100) on the number of terms in the WHERE clause
* The right-hand side of the IN operator can now be a list of expressions instead
  of just a list of constants
* Rework the optimizer so that it is able to make better use of indices
* The order of tables in a join is adjusted automatically to make better use of
  indices
* The IN operator is now a candidate for optimization even if the left-hand side is
  not the left-most term of the index. Multiple IN operators can be used with the
  same index.
* WHERE clause expressions using BETWEEN and OR are now candidates for optimization
* Added the "case_sensitive_like" pragma and the SQLITE_CASE_SENSITIVE_LIKE
  compile-time option to set its default value to "on".
* Use indices to help with GLOB expressions and LIKE expressions too when the
  case_sensitive_like pragma is enabled
* Added support for grave-accent quoting for compatibility with MySQL
* Improved test coverage

Revision 1.5 / (download) - annotate - [select for diffs], Wed Jul 6 18:13:07 2005 UTC (18 years, 9 months ago) by drochner
Branch: MAIN
CVS Tags: pkgsrc-2005Q3-base, pkgsrc-2005Q3
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored) to selected 1.34 (colored)

update to 3.2.2
from the announcement:
This release includes numerous minor bug fixes, speed improvements, and
code size reductions. There is no reason to upgrade unless you are having
problems or unless you just want to.

Revision 1.4 / (download) - annotate - [select for diffs], Sun May 22 20:07:46 2005 UTC (18 years, 11 months ago) by jlam
Branch: MAIN
CVS Tags: pkgsrc-2005Q2-base, pkgsrc-2005Q2
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored) to selected 1.34 (colored)

Remove USE_GNU_TOOLS and replace with the correct USE_TOOLS definitions:

	USE_GNU_TOOLS	-> USE_TOOLS
	awk		-> gawk
	m4		-> gm4
	make		-> gmake
	sed		-> gsed
	yacc		-> bison

Revision 1.3 / (download) - annotate - [select for diffs], Thu Apr 14 05:45:51 2005 UTC (19 years ago) by xtraeme
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored) to selected 1.34 (colored)

Update to 3.2.1

2005 March 29 (3.2.1)

        * Fix a memory allocation error in the new ADD COLUMN comment.
        * Documentation updates

2005 March 21 (3.2.0)

        * Added support for ALTER TABLE ADD COLUMN.
        * Added support for the "T" separator in ISO-8601 date/time strings.
        * Improved support for Cygwin.
        * Numerous bug fixes and documentation updates.

2005 March 16 (3.1.6)

        * Fix a bug that could cause database corruption when inserting
          record into tables with around 125 columns.
        * sqlite3_step() is now much more likely to invoke the busy
          handler and less likely to return SQLITE_BUSY.
        * Fix memory leaks that used to occur after a malloc() failure.

2005 March 11 (3.1.5)

        * The ioctl on OS-X to control syncing to disk is F_FULLFSYNC,
	  not F_FULLSYNC. The previous release had it wrong.

2005 March 10 (3.1.4)

        * Fix a bug in autovacuum that could cause database corruption
	  if a CREATE UNIQUE INDEX fails because of a constraint violation.
	  This problem only occurs if the new autovacuum feature introduced
	  in version 3.1 is turned on.
        * The F_FULLSYNC ioctl (currently only supported on OS-X) is
	  disabled if the synchronous pragma is set to something other
	  than "full".
        * Add additional forward compatibility to the future version 3.2
	  database file format.
        * Fix a bug in WHERE clauses of the form (rowid<'2')
        * New SQLITE_OMIT_... compile-time options added
        * Updates to the man page
        * Remove the use of strcasecmp() from the shell
        * Windows DLL exports symbols Tclsqlite_Init and Sqlite_Init

Revision 1.2 / (download) - annotate - [select for diffs], Mon Apr 11 21:45:16 2005 UTC (19 years ago) by tv
Branch: MAIN
Changes since 1.1: +1 -2 lines
Diff to previous 1.1 (colored) to selected 1.34 (colored)

Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Mar 23 22:08:06 2005 UTC (19 years ago) by jmmv
Branch: MAIN
Diff to selected 1.34 (colored)

Remove the 'tcl' option and split the Makefile in two parts to aid in the
addition of the new sqlite3-tcl package.  The TCL bindings can be easily
built and installed independently, so it's better to have an standalone
package rather than a build-time option.

While here, fix PKGCONFIG_OVERRIDE and bump PKGREVISION to 2.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>