Skip to content

Commit 267f725

Browse files
committed
Merge pull request pymssql#397 from pymssql/report-tds-version-7.3
_mssql.pyx: report TDS version 7.3 in connection.tds_version property.
2 parents 2f5b32d + 1c54dcc commit 267f725

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

ChangeLog

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ General
88
-------
99

1010
- Drop support for versions of FreeTDS older than 0.91.
11+
- Add support for reporting TDS version 7.3 is i use via the ``tds_version``
12+
property of a ``_mssql``-level connection.
1113

1214
Features
1315
--------

src/_mssql.pyx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,9 @@ cdef class MSSQLConnection:
508508
"""
509509
def __get__(self):
510510
cdef int version = dbtds(self.dbproc)
511-
if version == 10:
511+
if version == 11:
512+
return 7.3
513+
elif version == 10:
512514
return 7.2
513515
elif version == 9:
514516
return 7.1

0 commit comments

Comments
 (0)