]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- query.one() no longer applies LIMIT to the query, this to
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 14 Feb 2010 19:23:35 +0000 (19:23 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 14 Feb 2010 19:23:35 +0000 (19:23 +0000)
commit4e9a2307a719667ffe27157146fa6c3dabcdb65b
tree360476ef43c1763def86ccae2aa956b983dae42f
parent1005251437dbce7d32819a835c7e65d1a6fd304b
- query.one() no longer applies LIMIT to the query, this to
ensure that it fully counts all object identities present
in the result, even in the case where joins may conceal
multiple identities for two or more rows.  As a bonus,
one() can now also be called with a query that issued
from_statement() to start with since it no longer modifies
the query.  [ticket:1688]
CHANGES
doc/build/ormtutorial.rst
lib/sqlalchemy/orm/query.py
test/orm/test_query.py