]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
run update_subclass anytime we add new clslevel dispatch
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 31 Aug 2022 15:07:23 +0000 (11:07 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 31 Aug 2022 18:31:34 +0000 (14:31 -0400)
commitd3e0b8e750d864766148cdf1a658a601079eed46
tree7b6ee55bbd18e6fa73b299f46b231abbae8780f5
parentec65def6bffa94d1c89ae5896e4d7e85f9abe84a
run update_subclass anytime we add new clslevel dispatch

Fixed event listening issue where event listeners added to a superclass
would be lost if a subclass were created which then had its own listeners
associated. The practical example is that of the :class:`.sessionmaker`
class created after events have been associated with the
:class:`_orm.Session` class.

Fixes: #8467
Change-Id: I9bdba8769147e30110a09900d4a577e833ac3af9
doc/build/changelog/unreleased_14/8467.rst [new file with mode: 0644]
lib/sqlalchemy/event/attr.py
lib/sqlalchemy/sql/annotation.py
lib/sqlalchemy/util/langhelpers.py
test/base/test_events.py
test/orm/test_events.py