]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fixed indirect regression regarding :func:`.has_inherited_table`,
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 9 Apr 2013 18:21:40 +0000 (14:21 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 9 Apr 2013 18:21:40 +0000 (14:21 -0400)
commitd84ae4f75468fea6b3345c1275d6a472d0cf7c5f
tree69ae37b83fcbd196cb4cb9424c7f407ebf7acf21
parent70a173d22b520b41acc8624f1a1d6c8c456412f7
Fixed indirect regression regarding :func:`.has_inherited_table`,
where since it considers the current class' ``__table__``, was
sensitive to when it was called.  This is 0.7's behavior also,
but in 0.7 things tended to "work out" within events like
``__mapper_args__()``.  :func:`.has_inherited_table` now only
considers superclasses, so should return the same answer
regarding the current class no matter when it's called
(obviously assuming the state of the superclass).
[ticket:2656]
doc/build/changelog/changelog_08.rst
lib/sqlalchemy/ext/declarative/api.py
test/ext/declarative/test_inheritance.py