diff options
| author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2016-07-18 21:06:53 +0000 |
|---|---|---|
| committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2016-07-18 21:06:53 +0000 |
| commit | 7f732a08457cf15b4eaba3be4b5bc24bd2f9ee95 (patch) | |
| tree | 8136e3665d3f74838a71b561ca553a5c5515eb4a /databases/py-pymssql/files | |
| parent | - Update to 1.0 (diff) | |
- Fix build after FreeTDS update by porting upstream commit ec46fea
PR: 210363
Reported by: ports@thelanman.net (maintainer), pkg-fallout
Approved by: portmgr blanket
Notes
Notes:
svn path=/head/; revision=418751
Diffstat (limited to 'databases/py-pymssql/files')
| -rw-r--r-- | databases/py-pymssql/files/patch-__mssql.pyx | 16 | ||||
| -rw-r--r-- | databases/py-pymssql/files/patch-sqlfront.pxd | 10 |
2 files changed, 26 insertions, 0 deletions
diff --git a/databases/py-pymssql/files/patch-__mssql.pyx b/databases/py-pymssql/files/patch-__mssql.pyx new file mode 100644 index 000000000000..28a1732da585 --- /dev/null +++ b/databases/py-pymssql/files/patch-__mssql.pyx @@ -0,0 +1,16 @@ +--- _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) + + ####################### diff --git a/databases/py-pymssql/files/patch-sqlfront.pxd b/databases/py-pymssql/files/patch-sqlfront.pxd new file mode 100644 index 000000000000..896fb07854e8 --- /dev/null +++ b/databases/py-pymssql/files/patch-sqlfront.pxd @@ -0,0 +1,10 @@ +--- sqlfront.pxd.orig 2014-08-29 22:32:11 UTC ++++ sqlfront.pxd +@@ -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: |
