]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Move try_cast() from mssql to base
authorNick Crews <nicholas.b.crews@gmail.com>
Mon, 8 May 2023 23:07:58 +0000 (15:07 -0800)
committerNick Crews <nicholas.b.crews@gmail.com>
Mon, 8 May 2023 23:07:58 +0000 (15:07 -0800)
commit9fc21c07b7cd3206a78fcc8665304fcbc2c5b27a
tree8580e98322bb499de1ccb182b137ade54dbee53b
parenta1a16a3509a286225ab28ba3a418e638b004f858
Move try_cast() from mssql to base

Other backends besides mssql support an operation like try_cast. Move it
to a common place so they can all implement it.

Fixes: #9752
Closes: #9752
doc/build/changelog/unreleased_20/9752.rst [new file with mode: 0644]
lib/sqlalchemy/__init__.py
lib/sqlalchemy/dialects/mssql/base.py
lib/sqlalchemy/sql/_elements_constructors.py
lib/sqlalchemy/sql/elements.py
test/dialect/mssql/test_compiler.py