]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Deprecate FromClause.count() (pending for 1.1)
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 13 Jun 2016 19:18:13 +0000 (15:18 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 13 Jun 2016 19:37:46 +0000 (15:37 -0400)
commite7ea2a4e198f3203b6f8e13649cd5bf5ea4ad172
treef9fc48b6af6bc3221c2ca0cc2772f0739681ed12
parent33e2a0230e63e92dce1b32b7d6a379ef63aec0ba
Deprecate FromClause.count() (pending for 1.1)

count() here is misleading in that it not only
counts from an arbitrary column in the table, it also
does not make accommodations for DISTINCT, JOIN, etc.
as the ORM-level function does.  Core should not be
attempting to provide a function like this.

Change-Id: I9916fc51ef744389a92c54660ab08e9695b8afc2
Fixes: #3724
doc/build/changelog/changelog_10.rst
lib/sqlalchemy/sql/selectable.py
test/sql/test_defaults.py
test/sql/test_metadata.py
test/sql/test_types.py