]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Support undocumented non-entity sequence Query argument
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 1 Jun 2018 21:54:11 +0000 (16:54 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 4 Jun 2018 15:43:21 +0000 (11:43 -0400)
commit02402f3cbd3f8a1fa5638510694916a7c9b9c50c
treeab78f7addf379d5f8276051b4a22462c6d47a94e
parentabf82155aabf8c883d64367703a76d7a484c1126
Support undocumented non-entity sequence Query argument

Fixed regression caused by :ticket:`4256` (itself a regression fix for
:ticket:`4228`) which breaks an undocumented behavior which converted for a
non-sequence of entities passed directly to the :class:`.Query` constructor
into a single-element sequence.  While this behavior was never supported or
documented, it's already in use so has been added as a behavioral contract
to :class:`.Query`.

Change-Id: I97546f5ab5af29f37c86321f39d564f98a12daf5
Fixes: #4269
(cherry picked from commit 5628da627c4f248a817eafd72ecdf4793809f68d)
doc/build/changelog/unreleased_12/4269.rst [new file with mode: 0644]
lib/sqlalchemy/orm/query.py
test/orm/test_query.py