]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Support for `IF EXISTS` in SQL Server 2016 (13.x) and later versions
authorEdgar Ramírez Mondragón <edgarrm358@gmail.com>
Thu, 18 Dec 2025 19:58:59 +0000 (14:58 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 19 Dec 2025 19:44:51 +0000 (14:44 -0500)
commit301198f3b2d8dd45a0dd8a939bb5cbedc5f6f002
tree05662c381a4f188b5dfd827b907254c7917ad27a
parent805131e4abc8541bc95026a3fbaac5a5c29245ff
Support for `IF EXISTS` in SQL Server 2016 (13.x) and later versions

Added support for the ``IF EXISTS`` clause when dropping indexes on SQL
Server 2016 (13.x) and later versions. The :paramref:`.DropIndex.if_exists`
parameter is now honored by the SQL Server dialect, allowing conditional
index drops that will not raise an error if the index does not exist.
Pull request courtesy Edgar Ramírez Mondragón.

Fixes: #13045
Closes: #13046
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/13046
Pull-request-sha: 65dca2055cb403430730b5cf42f0c5f55b23bfb1

Change-Id: Iab95b1a46003b38709a791b8a7c4233dfda5e830
(cherry picked from commit 40fc3c90e1fee3f7a19184ab57cca3cbcdfa6da1)
doc/build/changelog/unreleased_20/13045.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mssql/base.py
test/dialect/mssql/test_compiler.py