]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fix is_disconnect false positive for mssql+pyodbc
authorGord Thompson <gord@gordthompson.com>
Fri, 29 May 2020 13:20:54 +0000 (07:20 -0600)
committerGord Thompson <gord@gordthompson.com>
Mon, 1 Jun 2020 12:02:20 +0000 (06:02 -0600)
commitddff320473dcbd3cc11d577715f96237276bc685
tree541871384a1bc58a52d3c6127c79744567293f93
parentcbfa1363d7201848a56e7209146e81b9c51aa8af
Fix is_disconnect false positive for mssql+pyodbc

Fixed an issue where the ``is_disconnect`` function in the SQL Server
pyodbc dialect was incorrectly reporting the disconnect state when the
exception messsage had a substring that matched a SQL Server ODBC error
code.

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