Skip to content

Commit

Permalink
Merge pull request #394 from pymssql/dont-report-tds-7_1-as-8_0
Browse files Browse the repository at this point in the history
Report TDS version 7.1 as 7.1 instead of 8.0.
  • Loading branch information
ramiro committed Feb 14, 2016
2 parents 6f8038a + 47d9f45 commit 2eb3ba9
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 6 deletions.
14 changes: 14 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
Change Log
==========

Version 2.2.0 - To be released
==============================

Features
--------

TBA

Bug fixes
---------

- Fix ``tds_version`` ``_mssql`` connection property value for TDS version.
7.1 is actually 7.1 and not 8.0.

Version 2.1.2 - 2016-02-10 - Ramiro Morales
===============================================

Expand Down
14 changes: 14 additions & 0 deletions ChangeLog_highlights.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
Recent Changes
==============

Version 2.2.0 - To be released
==============================

Features
--------

TBA

Bug fixes
---------

- Fix ``tds_version`` ``_mssql`` connection property value for TDS version.
7.1 is actually 7.1 and not 8.0.

Version 2.1.2 - 2016-02-10 - Ramiro Morales
===============================================

Expand Down
9 changes: 4 additions & 5 deletions docs/ref/_mssql.rst
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,11 @@ Functions
.. attribute:: MSSQLConnection.tds_version

The TDS version used by this connection. Can be one of ``4.2``, ``5.0``
``7.0``, ``8.0`` and ``7.2``.
``7.0``, ``7.1`` and ``7.2``.

.. warning::
For historical and backward compatibility reasons, the value used to
represent TDS 7.1 is ``8.0``. This will change with pymssql 2.2.0 when it
will be fixed to be ``7.1`` for correctness and consistency.
.. versionchanged:: 2.2.0
For correctness and consistency the value used to indicate TDS 7.1
changed from ``8.0`` to ``7.1`` on pymssql 2.2.0.

``MSSQLConnection`` object methods
----------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/_mssql.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ cdef class MSSQLConnection:
if version == 10:
return 7.2
elif version == 9:
return 8.0 # Actually 7.1, return 8.0 to keep backward compatibility
return 7.1
elif version == 8:
return 7.0
elif version == 6:
Expand Down

0 comments on commit 2eb3ba9

Please sign in to comment.