]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Filter non-integer characters from pyodbc SQL Server version
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 30 Mar 2018 15:22:30 +0000 (11:22 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 30 Mar 2018 15:22:30 +0000 (11:22 -0400)
commitf55c4f6bd2cb2f2b18e62159361ce7ecb5897396
tree13dd4b79b15231c6558d392733d0a4db0e04ce40
parentf9c4b5ea7deca071d38e89cbd5643b98f78dd25f
Filter non-integer characters from pyodbc SQL Server version

Adjusted the SQL Server version detection for pyodbc to only allow for
numeric tokens, filtering out non-integers, since the dialect does tuple-
numeric comparisons with this value.  This is normally true for all known
SQL Server / pyodbc drivers in any case.

Change-Id: I4ab18a07e19231091b5e877ba1fccd5eda72a992
Fixes: #4227
doc/build/changelog/unreleased_12/4227.rst [new file with mode: 0644]
lib/sqlalchemy/connectors/pyodbc.py
lib/sqlalchemy/dialects/mssql/pyodbc.py
test/dialect/mssql/test_engine.py