freebsd-ports/databases/py-pymssql/files/patch-__mssql.pyx
Dmitry Marakasov 7f732a0845 - Fix build after FreeTDS update by porting upstream commit ec46fea
PR:		210363
Reported by:	ports@thelanman.net (maintainer), pkg-fallout
Approved by:	portmgr blanket
2016-07-18 21:06:53 +00: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)
#######################