News and Updates

SQLAlchemy 2.1.10 Released
permalink

SQLAlchemy 2.1.10 is now available.

Release 2.1.10 fixes two regressions in the 2.1 series. The first caused Select.filter_by() to raise AmbiguousColumnError when selecting an entity along with an expression derived from that same entity. The second caused a dataclass-mapped collection relationship() with a function-based collection_class, such as ordering_list(), to fail when default_factory was set to the plain collection type.

The release also fixes an issue in the Oracle dialect's new JSON support, where the key used to index a JSON column was cached as part of the SQL string, so that later statements with a different key would use the wrong one. Two-phase transaction support is added to the asyncio extension.

2.1.10 also includes the fixes released in 2.0.59. Among these, identifiers and inline literal values that contain the text of one of SQLAlchemy's internal placeholder tokens are now refused, as this text could allow SQL to be injected where such names or values came from untrusted input. This issue is described in security advisory GHSA-r8f3-r58r-x62g.

The detailed changelog for 2.1.10 is at Changelog.

SQLAlchemy 2.1.10 is available on the Download Page.