diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-09-12 16:07:50 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-09-12 16:07:50 -0400 |
commit | a4bfde4a18e50d93e44aec5c6216be8a6f9fbacb (patch) | |
tree | 271ab4178a669115ffa66f8f81a02831c53fa1ac /lib/sqlalchemy/dialects/mysql/mariadbconnector.py | |
parent | 645be4aa24a06241dfeb635aee8ca7a09574d800 (diff) | |
download | sqlalchemy-a4bfde4a18e50d93e44aec5c6216be8a6f9fbacb.tar.gz |
Ensure cursor is closed for scalar() if make_row fails
As we have some tests that are against enums which
can raise on fetch, if we call scalar() and it fails,
we need to close the cursor. mariadb segfaults
etc. seem to have been caused by this.
Change-Id: I8261f6fe7f972ae2d8702650440fd8d71e9bce53
Diffstat (limited to 'lib/sqlalchemy/dialects/mysql/mariadbconnector.py')
0 files changed, 0 insertions, 0 deletions