]> 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:42:49 +0000 (11:42 -0400)
commit5628da627c4f248a817eafd72ecdf4793809f68d
treef3fb07bce5108345e2ff7ca8776271205def7100
parent45b22c9c3fd8fc0d2c80ec00ef9070837cd18063
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
doc/build/changelog/unreleased_12/4269.rst [new file with mode: 0644]
lib/sqlalchemy/orm/query.py
test/orm/test_query.py