]> 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 22:48:10 +0000 (17:48 -0500)
commit532ddb0fa717bc10c3a95b7ddf3a60bbfad7ac56
tree71abf19dad4545e0a8d5916c7891bc576b01a3fc
parentfd4df2c456c142e4d6adc317a2941c026b92c4f1
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
doc/build/changelog/unreleased_13/5132.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mssql/pyodbc.py
test/dialect/mssql/test_types.py