]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
pass to_metadata argument to Enum.copy()
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 29 Aug 2024 14:04:47 +0000 (10:04 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 29 Aug 2024 15:49:56 +0000 (11:49 -0400)
commitc5d2e78d5fde6a26207f303933d7d284ebd5227c
tree45419f25982c4e508c98719726c1fdfa937b28be
parent1586088b72378fbf46e3f61aa38ac2659d38d54e
pass to_metadata argument to Enum.copy()

Fixed bug where the ``metadata`` element of an ``Enum`` datatype would not
be transferred to the new :class:`.MetaData` object when the type had been
copied via a :meth:`.Table.to_metadata` operation, leading to inconsistent
behaviors within create/drop sequences.

Fixes: #11802
Change-Id: Ibbc93aa31bdfde0d67a9530f41a08e826c17d58e
(cherry picked from commit 22cbc7dcb48c946dda66704797665289965eb22e)
doc/build/changelog/unreleased_20/11802.rst [new file with mode: 0644]
lib/sqlalchemy/sql/schema.py
lib/sqlalchemy/sql/sqltypes.py
test/sql/test_metadata.py