Skip to content

Commit 087d2ba

Browse files
committed
Report TDS version 7.1 as 7.1 instead of 8.0.
This is a backward-incompatible change.
1 parent 6f8038a commit 087d2ba

4 files changed

Lines changed: 34 additions & 2 deletions

File tree

ChangeLog

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
Change Log
22
==========
33

4+
Version 2.2.0 - To be released
5+
==============================
6+
7+
Features
8+
--------
9+
10+
TBA
11+
12+
Bug fixes
13+
---------
14+
15+
- Fix ``tds_version`` ``_mssql`` connection property value for TDS version.
16+
7.1 is actually 7.1 and not 8.0.
17+
418
Version 2.1.2 - 2016-02-10 - Ramiro Morales
519
===============================================
620

ChangeLog_highlights.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
Recent Changes
22
==============
33

4+
Version 2.2.0 - To be released
5+
==============================
6+
7+
Features
8+
--------
9+
10+
TBA
11+
12+
Bug fixes
13+
---------
14+
15+
- Fix ``tds_version`` ``_mssql`` connection property value for TDS version.
16+
7.1 is actually 7.1 and not 8.0.
17+
418
Version 2.1.2 - 2016-02-10 - Ramiro Morales
519
===============================================
620

docs/ref/_mssql.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,11 @@ Functions
169169
.. attribute:: MSSQLConnection.tds_version
170170

171171
The TDS version used by this connection. Can be one of ``4.2``, ``5.0``
172-
``7.0``, ``8.0`` and ``7.2``.
172+
``7.0``, ``7.1`` and ``7.2``.
173+
174+
.. versionchanged:: 2.2.0
175+
For correctness and consistency the value used to indicate TDS 7.1
176+
changed from ``8.0`` to ``7.1`` on pymssql 2.2.0.
173177

174178
.. warning::
175179
For historical and backward compatibility reasons, the value used to

src/_mssql.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ cdef class MSSQLConnection:
515515
if version == 10:
516516
return 7.2
517517
elif version == 9:
518-
return 8.0 # Actually 7.1, return 8.0 to keep backward compatibility
518+
return 7.1
519519
elif version == 8:
520520
return 7.0
521521
elif version == 6:

0 commit comments

Comments
 (0)