]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fix repr for MySQL SET, generic Enum
authorpetit87 <west12capri12@gmail.com>
Sat, 26 Feb 2022 21:46:32 +0000 (16:46 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 4 Mar 2022 18:01:30 +0000 (13:01 -0500)
commit3cc9448ce311e4a18e746bddd55a2bf912e317c4
tree2cab0721bfc78a58ed210d0f385c14db6d3a09e5
parentc3a51918dccc19d1872c6095c27363bd54485890
Fix repr for MySQL SET, generic Enum

Fixed issues in :class:`_mysql.SET` datatype as well as :class:`.Enum`
where the ``__repr__()`` method would not render all optional parameters in
the string output, impacting the use of these types in Alembic
autogenerate. Pull request for MySQL courtesy Yuki Nishimine.

Fixes: #7720
Fixes: #7789
Closes: #7772
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/7772
Pull-request-sha: d58845479f497f6b2e12d7df2e9eb2d6ac22109b
Co-authored-by: Mike Bayer <mike_mp@zzzcomputing.com>
Change-Id: Idcec23eab4258511d9f32f4e3d78e511ea6021f1
(cherry picked from commit a926dea6b78c91b627f0f0b86cdc6a9279872e99)
doc/build/changelog/unreleased_14/7720_7789.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mysql/enumerated.py
lib/sqlalchemy/sql/sqltypes.py
test/dialect/mysql/test_types.py
test/sql/test_types.py