opnsense-ports/databases/py-pymssql/files/patch-__mssql.pyx
Franco Fichtner 6a4a1ad696 */*: sync with upstream
Taken from: FreeBSD
2016-07-19 07:54:21 +02:00

16 lines
503 B
Cython

--- _mssql.pyx.orig 2014-10-24 22:03:00 UTC
+++ _mssql.pyx
@@ -1677,12 +1677,10 @@ cdef int _tds_ver_str_to_constant(verstr
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)
#######################