]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
ensure result_map objects collection is non-empty
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 30 Apr 2024 19:41:04 +0000 (15:41 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 30 Apr 2024 19:49:36 +0000 (15:49 -0400)
commitfbb7172c69402d5f0776edc96d1c23a7cfabd3d0
tree31c1c29f06b8d758c995a7da26ae6ecfd4eb08dc
parentf53f261ad85fb251ac8989d7d9b0ccf1c099a892
ensure result_map objects collection is non-empty

Fixed issue in cursor handling which affected handling of duplicate
:class:`_sql.Column` or similar objcts in the columns clause of
:func:`_sql.select`, both in combination with arbitary :func:`_sql.text()`
clauses in the SELECT list, as well as when attempting to retrieve
:meth:`_engine.Result.mappings` for the object, which would lead to an
internal error.

Fixes: #11306
Change-Id: I418073b2fdba86b2121b6d00eaa40b1805b69bb8
doc/build/changelog/unreleased_20/11306.rst [new file with mode: 0644]
lib/sqlalchemy/engine/cursor.py
lib/sqlalchemy/sql/compiler.py
test/sql/test_resultset.py