]> 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:56 +0000 (19:29 -0500)
commitb39bc68ab788d38eb2141e3b16f947e8159bdd5e
treee942e6686dec4bcdcb8e331cb4f093b025fab939
parent20b28ea47255b07051c2d61b8c773b16d4bd557c
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
(cherry picked from commit 0d316e42f0645283c222f050c403c9c8d20463ec)
doc/build/changelog/unreleased_13/5045.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mssql/pyodbc.py
test/dialect/mssql/test_types.py