]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
Adjust mssql accommodate existing_type and type
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 4 Mar 2021 15:54:03 +0000 (10:54 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 4 Mar 2021 15:54:03 +0000 (10:54 -0500)
commitbd34d2e4e4daee6e25d3c8a9a43299e883cb8da3
tree3ed66d63a3765bc4dea8b72b25c7b38ea5abd350
parent763103407a22f68450c08d731dc7bbc312967dcf
Adjust mssql accommodate existing_type and type

Fixed bug where the "existing_type" parameter, which the MSSQL dialect
requires in order to change the nullability of a column in the absence of
also changing the column type, would cause an ALTER COLUMN operation to
incorrectly render a second ALTER statement without the nullability if a
new type were also present, as the MSSQL-specific contract did not
anticipate all three of "nullability", "type_" and "existing_type" being
sent at the same time.

Change-Id: Ia95b6c3e9276cc067fd773928f9678ab429d5670
Fixes: #812
alembic/ddl/mssql.py
docs/build/unreleased/812.rst [new file with mode: 0644]
tests/test_mssql.py
tests/test_op.py