]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
dont pass empty sequences to connection.execute()
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 10 Jan 2024 15:13:16 +0000 (10:13 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 10 Jan 2024 16:19:47 +0000 (11:19 -0500)
commitf24a644e15216980917ca9160fe1dcc5f3c040aa
tree63c3dca1c3f8b7176215d423efb375ee859ca9d4
parentabc8002ec67ddcb0a0be56b8167a4837f3884217
dont pass empty sequences to connection.execute()

Fixed internal issue where Alembic would call ``connection.execute()``
sending an empty tuple to indicate "no params".  In SQLAlchemy 2.1 this
case will be deprecated as "empty sequence" is ambiguous as to its intent.

Fixes: #1394
Change-Id: If3105866a13f4e3ffdcd513de3f970257ea48089
alembic/ddl/impl.py
alembic/testing/fixtures.py
docs/build/unreleased/1394.rst [new file with mode: 0644]
tests/test_impl.py