New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
connectionless execution + autocommit + ON CONFLICT DO NOTHING + no rows == boom #3955
Comments
Michael Bayer (@zzzeek) wrote: so this is the first approach, not sure if I like this because I'd perhaps like to see COMMIT even though the RETURNING had no rows:
|
Michael Bayer (@zzzeek) wrote: https://gerrit.sqlalchemy.org/#/q/I235a25daf4381b31f523331f810ea04450349722 |
Michael Bayer (@zzzeek) wrote: ResultProxy won't autoclose connection until state flag is set Changed the mechanics of :class: Change-Id: I235a25daf4381b31f523331f810ea04450349722 → f52fb52 |
Changes by Michael Bayer (@zzzeek):
|
Michael Bayer (@zzzeek) wrote: ResultProxy won't autoclose connection until state flag is set Changed the mechanics of :class: Change-Id: I235a25daf4381b31f523331f810ea04450349722 → 9609f5f |
Migrated issue, originally created by Michael Bayer (@zzzeek)
the lack of row returned sends the connection into autoclose via result.fetchone(). then autocommit causes an exception, then it continues to be confused because the connection has been closed.
The text was updated successfully, but these errors were encountered: