]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fix handling of None as parameter for a datetimeoffset column
authorGord Thompson <gord@gordthompson.com>
Mon, 3 Feb 2020 23:42:45 +0000 (16:42 -0700)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 10 Feb 2020 23:28:05 +0000 (18:28 -0500)
commite9544a3be13a10659ad2d6fa87a5d6190996b301
tree959892b0f0e38857b11451d0993375b2ade9e4be
parentd41f28a192a176bb939dfffeea28e1a035062dee
Fix handling of None as parameter for a datetimeoffset column

Fixed issue where the :class:`.mssql.DATETIMEOFFSET` type would not
accommodate for the ``None`` value, introduced as part of the series of
fixes for this type first introduced in :ticket:`4983`, :ticket:`5045`.
Additionally, added support for passing a backend-specific date formatted
string through this type, as is typically allowed for date/time types on
most other DBAPIs.

Fixes: #5132
Change-Id: Iab05d67382e0f550474d50e0c3c1c888521b678a
(cherry picked from commit 532ddb0fa717bc10c3a95b7ddf3a60bbfad7ac56)
doc/build/changelog/unreleased_13/5132.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mssql/pyodbc.py
test/dialect/mssql/test_types.py