]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- query.order_by() now accepts False, which cancels
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 17 Jun 2010 19:53:07 +0000 (15:53 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 17 Jun 2010 19:53:07 +0000 (15:53 -0400)
commit0276ec0cd874aafb06606c443e8cdeb692c232f9
tree4774fbc3c83baec5ff2b2a2d164d61da65f30886
parentcaa465512cae22d2a5288ff7b424904d246459fa
- query.order_by() now accepts False, which cancels
any existing order_by() state on the Query, allowing
subsequent generative methods to be called which do
not support ORDER BY.  This is not the same as the
already existing feature of passing None, which
suppresses any existing order_by() settings, including
those configured on the mapper.  False will make it
as though order_by() was never called, while
None is an active setting.
CHANGES
lib/sqlalchemy/orm/query.py
test/orm/test_query.py