diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2018-03-28 11:58:47 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2018-03-28 15:49:17 -0400 |
| commit | c5437296713288cbfcd323032ca48a75a97e10e5 (patch) | |
| tree | e44af08faca6a4935ddd595ead614d20da40f51c /doc | |
| parent | f9c4b5ea7deca071d38e89cbd5643b98f78dd25f (diff) | |
| download | sqlalchemy-c5437296713288cbfcd323032ca48a75a97e10e5.tar.gz | |
Invalidate on failed connect handler
Fixed bug in connection pool where a connection could be present in the
pool without all of its "connect" event handlers called, if a previous
"connect" handler threw an exception; note that the dialects themselves
have connect handlers that emit SQL, such as those which set transaction
isolation, which can fail if the database is in a non-available state, but
still allows a connection. The connection is now invalidated first if any
of the connect handlers fail.
Change-Id: I61d6f4827a98ab8455f1c3e1c55d046eeccec09a
Fixes: #4225
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/build/changelog/unreleased_12/4225.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/build/changelog/unreleased_12/4225.rst b/doc/build/changelog/unreleased_12/4225.rst new file mode 100644 index 000000000..99b0a6a7a --- /dev/null +++ b/doc/build/changelog/unreleased_12/4225.rst @@ -0,0 +1,12 @@ +.. change:: + :tags: bug, engine + :tickets: 4225 + :versions: 1.3.0b1 + + Fixed bug in connection pool where a connection could be present in the + pool without all of its "connect" event handlers called, if a previous + "connect" handler threw an exception; note that the dialects themselves + have connect handlers that emit SQL, such as those which set transaction + isolation, which can fail if the database is in a non-available state, but + still allows a connection. The connection is now invalidated first if any + of the connect handlers fail. |
