File tree Expand file tree Collapse file tree
doc/build/changelog/unreleased_13 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ .. change ::
2+ :tags: change, mssql
3+ :tickets: 5321
4+
5+ Moved the ``supports_sane_rowcount_returning = False `` requirement from
6+ the ``PyODBCConnector `` level to the ``MSDialect_pyodbc `` since pyodbc
7+ does work properly in some circumstances.
Original file line number Diff line number Diff line change 1414class PyODBCConnector (Connector ):
1515 driver = "pyodbc"
1616
17- supports_sane_rowcount_returning = False
17+ # this is no longer False for pyodbc in general
18+ supports_sane_rowcount_returning = True
1819 supports_sane_multi_rowcount = False
1920
2021 supports_unicode_statements = True
Original file line number Diff line number Diff line change @@ -314,6 +314,9 @@ def post_exec(self):
314314
315315class MSDialect_pyodbc (PyODBCConnector , MSDialect ):
316316
317+ # mssql still has problems with this on Linux
318+ supports_sane_rowcount_returning = False
319+
317320 execution_ctx_cls = MSExecutionContext_pyodbc
318321
319322 colspecs = util .update_copy (
You can’t perform that action at this time.
0 commit comments