]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fix DATETIMEOFFSET formatting to preserve fractional seconds.
authorGord Thompson <gord@gordthompson.com>
Tue, 31 Dec 2019 17:42:09 +0000 (12:42 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 1 Jan 2020 00:29:43 +0000 (19:29 -0500)
commit0d316e42f0645283c222f050c403c9c8d20463ec
treee6453ac671b2b4e84a5d6047b38c15ab45373819
parent65428cf95023a462ec452d7c6a1a6aff7c4c20a4
Fix DATETIMEOFFSET formatting to preserve fractional seconds.

Fixed issue where a timezone-aware ``datetime`` value being converted to
string for use as a parameter value of a :class:`.mssql.DATETIMEOFFSET`
column was omitting the fractional seconds.

Fixes: #5045
Closes: #5046
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5046
Pull-request-sha: 99dc7b23f69b7b068795a02d20b88bf352c7dcd7

Change-Id: I971629466fe0675536bbdf55693f0c1821dfb3cc
doc/build/changelog/unreleased_13/5045.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mssql/pyodbc.py
test/dialect/mssql/test_types.py