Fixes: #5321
Change-Id: Id83e98e9013818424c133297a850746302633158
--- /dev/null
+.. change::
+ :tags: change, mssql
+ :tickets: 5321
+
+ Moved the ``supports_sane_rowcount_returning = False`` requirement from
+ the ``PyODBCConnector`` level to the ``MSDialect_pyodbc`` since pyodbc
+ does work properly in some circumstances.
class PyODBCConnector(Connector):
driver = "pyodbc"
- supports_sane_rowcount_returning = False
+ # this is no longer False for pyodbc in general
+ supports_sane_rowcount_returning = True
supports_sane_multi_rowcount = False
supports_unicode_statements = True
class MSDialect_pyodbc(PyODBCConnector, MSDialect):
+ # mssql still has problems with this on Linux
+ supports_sane_rowcount_returning = False
+
execution_ctx_cls = MSExecutionContext_pyodbc
colspecs = util.update_copy(