]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fix missing None handling of Table.prefixes
authorKai Mueller <15907922+kasium@users.noreply.github.com>
Thu, 24 Jun 2021 15:57:20 +0000 (11:57 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 28 Jun 2021 14:26:01 +0000 (10:26 -0400)
commit7e5e40ff849c92e4c062bad28848b5bdbb8bdd80
treec9f4908f14aff9ba8874f043743190452393ee73
parent2f909a6b127e3ff8f8d411db28094804c8b9a2df
Fix missing None handling of Table.prefixes

Fixed issue where passing ``None`` for the value of
:paramref:`_schema.Table.prefixes` would not store an empty list, but
rather the constant ``None``, which may be unexpected by third party
dialects. The issue is revealed by a usage in recent versions of Alembic
that are passing ``None`` for this value. Pull request courtesy Kai
Mueller.

Fixes: #6685
Closes: #6672
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/6672
Pull-request-sha: b79aca0ee4011b244978b35fed4c687ffbe56dc9

Change-Id: I758641c6fbde6f2607d074fecea7efa6728aeea0
doc/build/changelog/unreleased_14/6685.rst [new file with mode: 0644]
lib/sqlalchemy/sql/schema.py
test/sql/test_metadata.py