diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2018-02-06 18:13:27 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2018-02-07 20:55:09 -0500 |
commit | 4065352c7e9779cfeae34f01073ef6c43aeae488 (patch) | |
tree | 133bcc4e4a26439c94f6086556ceb0d32d8a3481 /lib/sqlalchemy/dialects/mysql/enumerated.py | |
parent | 00570a6ac9453a48b06ca094de6e0502c3b73fa5 (diff) | |
download | sqlalchemy-4065352c7e9779cfeae34f01073ef6c43aeae488.tar.gz |
Add flag for class-level disallow of events, apply to OptionEngine
Fixed bug where events associated with an :class:`Engine`
at the class level would be doubled when the
:meth:`.Engine.execution_options` method were used. To
achieve this, the semi-private class :class:`.OptionEngine`
no longer accepts events directly at the class level
and will raise an error; the class only propagates class-level
events from its parent :class:`.Engine`. Instance-level
events continue to work as before.
The comments present another way of doing this where we would
copy events from the parent engine at option time rather
than linking the event listeners, but this would be a behavioral
change that adding new events to the parent engine would not
take effect for an already-created OptionEngine.
Change-Id: Id128516f54103fbad9a2210d6571eceb59c8b0cb
Fixes: #4181
Diffstat (limited to 'lib/sqlalchemy/dialects/mysql/enumerated.py')
0 files changed, 0 insertions, 0 deletions