Other keywords interpreted by the Pyodbc dialect to be passed to
``pyodbc.connect()`` in both the DSN and hostname cases include:
-``odbc_autotranslate``, ``ansi``, ``unicode_results``, ``autocommit``,
+``odbc_autotranslate``, ``ansi``, ``unicode_results``, ``autocommit``,
``authentication`` (e.g., ``authentication=ActiveDirectoryIntegrated``).
Note that in order for the dialect to recognize these keywords
(including the ``driver`` keyword above) they must be all lowercase.
def is_disconnect(self, e, connection, cursor):
if isinstance(e, self.dbapi.Error):
code = e.args[0]
- if code in (
+ if code in {
"08S01",
+ "01000",
"01002",
"08003",
"08007",
"HYT00",
"HY010",
"10054",
- ):
+ }:
return True
return super(MSDialect_pyodbc, self).is_disconnect(
e, connection, cursor