]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
collapse all chars for mssql defaults, move quoting
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 14 Feb 2023 17:45:24 +0000 (12:45 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 15 Feb 2023 18:17:48 +0000 (13:17 -0500)
commit8d97de0ba7ee8dbff4301be6a2bd76a963327d0f
treeb31644ac5f050dd7a4bda55c176269a582ecfce3
parenta79ba7d74d12e0be63e1afb05e037d0a052b5086
collapse all chars for mssql defaults, move quoting

Ongoing fixes for SQL Server server default comparisons under autogenerate,
adjusting for SQL Server's collapsing of whitespace between SQL function
arguments when reporting on a function-based server default, as well as its
arbitrary addition of parenthesis within arguments; the approach has now
been made more aggressive by stripping the two default strings to compare
of all whitespace, parenthesis, and quoting characters.

Fixed PostgreSQL server default comparison to handle SQL expressions
sent as ``text()`` constructs, such as ``text("substring('name', 1, 3)")``,
which previously would raise errors when attempting to run a server-based
comparison.

Change-Id: Icd861f62653fc7b3900164c0d047821125e1305e
Fixes: #1177
alembic/ddl/mssql.py
alembic/ddl/postgresql.py
docs/build/unreleased/1177.rst [new file with mode: 0644]
tests/test_autogen_diffs.py