]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
Check for rendered integer default is None on MySQL
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 27 Apr 2019 00:22:21 +0000 (20:22 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 28 Apr 2019 03:13:39 +0000 (23:13 -0400)
commit7a53fc01af539a5b2bc985bc55694466a375ea14
tree707bca24afcb3c52acc89f863908d245a57b2250
parented58b95ec0d88217228a195500d09c234813a048
Check for rendered integer default is None on MySQL

Fixed bug when using the
:paramref:`.EnvironmentContext.configure.compare_server_default` flag set
to ``True``where a server default that is introduced in the table metadata
on an ``Integer`` column, where there is no existing server default in the
database, would raise a ``TypeError``.

Change-Id: Ia2954cc113b47687d1cbf8244c77742326a50c86
Fixes: #553
alembic/ddl/mysql.py
docs/build/unreleased/553.rst [new file with mode: 0644]
tests/test_mysql.py