]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
handle DBAPI error for fetchall()
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 28 Jun 2024 20:30:57 +0000 (16:30 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 1 Jul 2024 13:17:24 +0000 (09:17 -0400)
commitfb47dbbc74f59d0be3411d52bc27155095b50631
tree9273b44432f0e5e0fea7a63f1c8a372dd1a51cb1
parent83b0690f88f46c0c8c04f8f24b5a95f426eba12b
handle DBAPI error for fetchall()

Fixed issue in "insertmanyvalues" feature where a particular call to
``cursor.fetchall()`` were not wrapped in SQLAlchemy's exception wrapper,
which apparently can raise a database exception during fetch when using
pyodbc.

Fixes: #11532
Change-Id: Ic07d3e79dd597e18d87a56b45ddffa25e762beb9
doc/build/changelog/unreleased_20/11532.rst [new file with mode: 0644]
lib/sqlalchemy/engine/base.py
lib/sqlalchemy/engine/default.py
lib/sqlalchemy/engine/interfaces.py
lib/sqlalchemy/testing/fixtures/sql.py
test/sql/test_insert_exec.py