]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Pass precision value to mssql.DATETIME2 when it is 0
authorJacobo de Vera <devel@jacobodevera.com>
Fri, 13 Nov 2015 15:57:41 +0000 (16:57 +0100)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 14 Nov 2015 17:40:20 +0000 (12:40 -0500)
commitf34deb456e9d2a82fa8f2f1accc20a896760bd17
treeabbb948e7725dceb658c8d48aba25da63df5f419
parentbc3ee40a2e20172acdf6dd98675342a356826ab9
Pass precision value to mssql.DATETIME2 when it is 0

The simple check on the precision results in DATETIME2(0) generating a
DATETIME2 column, with default precision, which is 7.

(cherry picked from commit 80ce23f6fd0f14ab656d3ec82773bd0cffbd4791)
lib/sqlalchemy/dialects/mssql/base.py
test/dialect/mssql/test_types.py