]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Support legacy select(<iterable>) in addition to select(<list>) in v1.4
authorOliver Rice <github@oliverrice.com>
Sat, 13 Feb 2021 19:21:55 +0000 (14:21 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 15 Feb 2021 18:25:43 +0000 (13:25 -0500)
commit120347aad15fac4a54e16aa60e0e5b3b6b3995c4
tree079b796a3a6ec3d0851bd4215a1edaac118b7357
parent996a8ca9bbf0cb9c9caea7926bc160d0c1fd7648
Support legacy select(<iterable>) in addition to select(<list>) in v1.4

Fixed regression where use of an arbitrary iterable with the
:func:`_sql.select` function was not working, outside of plain lists. The
forwards/backwards compatibility logic here now checks for a wider range of
incoming "iterable" types including that a ``.c`` collection from a
selectable can be passed directly. Pull request compliments of Oliver Rice.

Fixes: #5935
Closes: #5936
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5936
Pull-request-sha: 575ab3e7df30fc8da03752d102c8eeb6cb3a3e3d

Change-Id: Icd972f1078d9ea96c47a64133079f00d9b0a66f3
doc/build/changelog/unreleased_14/5935.rst [new file with mode: 0644]
lib/sqlalchemy/sql/selectable.py
test/sql/test_deprecations.py