]> 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:03:55 +0000 (06:03 -0600)
commit2c2bdceab7ce1bf31fffa260caafa0443e8a9c23
tree838d6aa1a18c22cb02c7fdda589ed9073565baf0
parentb7bbbf0ff1f6568543e25d3bd4ae40ceff20f040
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
(cherry picked from commit ddff320473dcbd3cc11d577715f96237276bc685)
doc/build/changelog/unreleased_13/5359.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mssql/pyodbc.py
test/dialect/mssql/test_engine.py