Small. Fast. Reliable.
Choose any three.

## SQLite Release 3.49.2 On 2025-05-07

Prior changes from version 3.49.0 (2025-02-06):

1. Enhancements to the query planner:
   1. Improve the query-time index optimization so that it works on WITHOUT ROWID tables.
   2. Better query plans for large star-query joins. This fixes three different performance regressions that were reported on the SQLite Forum.
   3. When two or more queries have the same estimated cost, use the one with the fewer bytes per row.
2. Enhance the iif() SQL function so that it can accept any number of arguments greater than or equal to two.
3. Enhance the session extension so that it works on databases that make use of generated columns.
4. Omit the SQLITE_USE_STDIO_FOR_CONSOLE compile-time option which was not implemented correctly and never worked right. In its place add the SQLITE_USE_W32_FOR_CONSOLE_IO compile-time option. This option applies to command-line tools like the CLI only, not to the SQLite core. It causes Win32 APIs to be used for console I/O instead of stdio. This option affects Windows builds only.
5. Three new options to sqlite3_db_config(). All default to "on".
   1. SQLITE_DBCONFIG_ENABLE_ATTACH_CREATE
   2. SQLITE_DBCONFIG_ENABLE_ATTACH_WRITE
   3. SQLITE_DBCONFIG_ENABLE_COMMENTS
6. Replace Autotools with Autosetup for the configure script used in the precompiled amalgamation tarball. The configure script for the canonical source code was changed to Autosetup in the previous (3.48.0) release. Only the main SQLite configure script in the amalgamation tarball is changed. The (deprecated) configuration script use by TEA subdirectory of the amalgamation tarball still relies on Autotools.
7. Various minor patches and fixes for problems seen in the 3.48.0 release.

Prior changes from version 3.49.1 (2025-02-18):

1. Improve portability of makefiles and configure scripts.
2. Fix a bug in the concat_ws() function, introduced in version 3.44.0, that could lead to a memory error, specifically a write past the end of allocated space, if the separator string is larger than two megabytes.
3. Enhanced the SQLITE_DBCONFIG_LOOKASIDE interface to make it more robust against misuse.

Changes in this specific patch release, version 3.49.2 (2025-05-07):

1. Fix a bug in the NOT NULL optimization of version 3.40.0 (item 3c in the version 3.40.0 change log) that can lead to a memory error if abused.
2. Fix the count-of-view optimization so that it does not give an incorrect answer for a DISTINCT query.
3. Fix a possible incorrect answer that can result if a UNIQUE constraint of a table contains the PRIMARY KEY column and that UNIQUE constraint is used by an IN operator.
4. Fix obscure problems with the generate_series() extension function.
5. Incremental improvements to the configure/make.

   Hashes:

6. SQLITE_SOURCE_ID: 2025-05-07 10:39:52 17144570b0d96ae63cd6f3edca39e27ebd74925252bbaf6723bcb2f6b4861fb1
7. SHA3-256 for sqlite3.c: 17f4857fc6a0def2749d248d5365c59282c044270533c6c2b21287295f01eb23

A complete list of SQLite releases in a single page and a chronology are both also available. A detailed history of every check-in is available at SQLite version control site.