]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
organize datetime types for correct impls
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 1 Oct 2021 16:53:40 +0000 (12:53 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 1 Oct 2021 21:15:10 +0000 (17:15 -0400)
commitb230298234ea3a51c07538a37bee21d8ccb28303
tree25381a2b212f13c47e67a3b62e9a759536a83b9b
parent8dbd6736423ac444bcd30d0bc13d989fb3d6c738
organize datetime types for correct impls

Fixed bug in SQL Server ``DATETIMEOFFSET`` where the ODBC implementation
would not generate the correct DDL, for cases where the type were converted
using the ``dialect.type_descriptor()`` method, the usage of which is
illustrated in some documented examples for :class:`.TypeDecorator`, though
not necessary for most datatypes. Regression was introduced by
:ticket:`6366`. As part of this change, the full list of SQL Server date
types have been amended to return a "dialect impl" that generates the same
DDL name as the supertype.

Fixes: #7129
Change-Id: I7d9bea54c0c38e16d1a6ad978cca996006a1b624
doc/build/changelog/unreleased_14/7129.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mssql/base.py
lib/sqlalchemy/dialects/mssql/pyodbc.py
test/dialect/mssql/test_types.py