diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-01-06 01:14:26 -0500 |
|---|---|---|
| committer | mike bayer <mike_mp@zzzcomputing.com> | 2019-01-06 17:34:50 +0000 |
| commit | 1e1a38e7801f410f244e4bbb44ec795ae152e04e (patch) | |
| tree | 28e725c5c8188bd0cfd133d1e268dbca9b524978 /lib/sqlalchemy/dialects/mssql/mxodbc.py | |
| parent | 404e69426b05a82d905cbb3ad33adafccddb00dd (diff) | |
| download | sqlalchemy-1e1a38e7801f410f244e4bbb44ec795ae152e04e.tar.gz | |
Run black -l 79 against all source files
This is a straight reformat run using black as is, with no edits
applied at all.
The black run will format code consistently, however in
some cases that are prevalent in SQLAlchemy code it produces
too-long lines. The too-long lines will be resolved in the
following commit that will resolve all remaining flake8 issues
including shadowed builtins, long lines, import order, unused
imports, duplicate imports, and docstring issues.
Change-Id: I7eda77fed3d8e73df84b3651fd6cfcfe858d4dc9
Diffstat (limited to 'lib/sqlalchemy/dialects/mssql/mxodbc.py')
| -rw-r--r-- | lib/sqlalchemy/dialects/mssql/mxodbc.py | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/lib/sqlalchemy/dialects/mssql/mxodbc.py b/lib/sqlalchemy/dialects/mssql/mxodbc.py index 8983a3b60..3b9ea2707 100644 --- a/lib/sqlalchemy/dialects/mssql/mxodbc.py +++ b/lib/sqlalchemy/dialects/mssql/mxodbc.py @@ -46,10 +46,14 @@ of ``False`` will unconditionally use string-escaped parameters. from ... import types as sqltypes from ...connectors.mxodbc import MxODBCConnector from .pyodbc import MSExecutionContext_pyodbc, _MSNumeric_pyodbc -from .base import (MSDialect, - MSSQLStrictCompiler, - VARBINARY, - _MSDateTime, _MSDate, _MSTime) +from .base import ( + MSDialect, + MSSQLStrictCompiler, + VARBINARY, + _MSDateTime, + _MSDate, + _MSTime, +) class _MSNumeric_mxodbc(_MSNumeric_pyodbc): @@ -64,6 +68,7 @@ class _MSDate_mxodbc(_MSDate): return "%s-%s-%s" % (value.year, value.month, value.day) else: return None + return process @@ -74,6 +79,7 @@ class _MSTime_mxodbc(_MSTime): return "%s:%s:%s" % (value.hour, value.minute, value.second) else: return None + return process @@ -98,6 +104,7 @@ class _VARBINARY_mxodbc(VARBINARY): else: # should pull from mx.ODBC.Manager.BinaryNull return dialect.dbapi.BinaryNull + return process @@ -107,6 +114,7 @@ class MSExecutionContext_mxodbc(MSExecutionContext_pyodbc): SELECT SCOPE_IDENTITY in cases where OUTPUT clause does not work (tables with insert triggers). """ + # todo - investigate whether the pyodbc execution context # is really only being used in cases where OUTPUT # won't work. @@ -136,4 +144,5 @@ class MSDialect_mxodbc(MxODBCConnector, MSDialect): super(MSDialect_mxodbc, self).__init__(**params) self.description_encoding = description_encoding + dialect = MSDialect_mxodbc |
