[Sqlalchemy-commits] commit/sqlalchemy: zzzeek: ResultProxy won't autoclose connection until state
Brought to you by:
zzzeek
From: Bitbucket <com...@bi...> - 2017-04-04 01:50:41
|
1 new commit in sqlalchemy: https://bitbucket.org/zzzeek/sqlalchemy/commits/9609f5ffb52c/ Changeset: 9609f5ffb52c Branch: master User: zzzeek Date: 2017-04-04 01:13:08+00:00 Summary: ResultProxy won't autoclose connection until state flag is set Changed the mechanics of :class:`.ResultProxy` to unconditionally delay the "autoclose" step until the :class:`.Connection` is done with the object; in the case where Postgresql ON CONFLICT with RETURNING returns no rows, autoclose was occurring in this previously non-existent use case, causing the usual autocommit behavior that occurs unconditionally upon INSERT/UPDATE/DELETE to fail. Change-Id: I235a25daf4381b31f523331f810ea04450349722 Fixes: #3955 (cherry picked from commit 8ee363e4917b0dcd64a83b6d26e465c9e61e0ea5) (cherry picked from commit f52fb5282a046d26b6ee2778e03b995eb117c2ee) Affected #: 6 files Repository URL: https://bitbucket.org/zzzeek/sqlalchemy/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. |