diff options
| author | Anthony Dodd <adodd@vbridges.com> | 2013-06-24 16:23:00 -0500 |
|---|---|---|
| committer | Anthony Dodd <adodd@vbridges.com> | 2013-07-01 11:06:47 -0500 |
| commit | 05e7a87b893aae0cb22ef85e282ada4979f9db9e (patch) | |
| tree | 8084b120cae9967bddb9b8fc1d144b7d460d80fa /docs | |
| parent | 6362fb73eda13e7710226a72a083ad9918410bd9 (diff) | |
Use event.listen() instead of deprecated listeners kwarg
The listeners kwarg is deprecated in SQLAlchemy 0.7.0.
Use the new event.listen() method instead.
Instead of using the original approach of testing whether or not the string
'mysql' is in 'connection_dict.drivername', now we are using a more direct
string equality test to ensure that engine.name == 'mysql' before passing
it to sql.event.listen().
We've decided to change the name of our ping_listener function to reflect its
purpose more accurately. Its name has been changed from "ping_listener" to
"mysql_on_checkout".
Change-Id: Ib9ef52404e3d474a60cdc82e8fcf8c6a9616bce3
Fixes: bug #1031405
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions
