Skip to content

Commit

Permalink
Merge pull request #438 from pymssql/drop-tds-version-8_0
Browse files Browse the repository at this point in the history
Drop usage of `DBVERSION_80` symbol.
  • Loading branch information
ramiro committed Jun 23, 2016
2 parents 55e9e8a + d90c9b8 commit ec46fea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions src/_mssql.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1718,12 +1718,10 @@ cdef int _tds_ver_str_to_constant(verstr) except -1:
return DBVERSION_42
if verstr == u'7.0':
return DBVERSION_70
if verstr == u'7.1':
if verstr in (u'7.1', u'8.0'):
return DBVERSION_71
if verstr == u'7.2':
return DBVERSION_72
if verstr == u'8.0':
return DBVERSION_80
raise MSSQLException('unrecognized tds version: %s' % verstr)

#######################
Expand Down
1 change: 0 additions & 1 deletion src/sqlfront.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ cdef extern from "sqlfront.h":
int DBVERSION_70
int DBVERSION_71
int DBVERSION_72
int DBVERSION_80

## Type Constants ##
cdef enum:
Expand Down

0 comments on commit ec46fea

Please sign in to comment.