]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Update to correct TDS version; FreeTDS only supports up to 7.3. 8.0 is not a valid...
authorAllen, Timothy <tallen@wharton.upenn.edu>
Thu, 28 May 2015 18:25:56 +0000 (11:25 -0700)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 30 May 2015 00:52:43 +0000 (20:52 -0400)
(cherry picked from commit 19571e2f8f4b621f3a1eaea198a8556497178015)

lib/sqlalchemy/dialects/mssql/base.py

index 7aab9556ef26db36a2941d8affcb0f71f57072a6..4839d324f2f8e5c2d76877fbbffb364d05d15c8c 100644 (file)
@@ -1375,11 +1375,15 @@ class MSDialect(default.DefaultDialect):
             # FreeTDS with version 4.2 seems to report here
             # a number like "95.10.255".  Don't know what
             # that is.  So emit warning.
+            # Use TDS Version 7.0 through 7.3, per the MS information here:
+            # https://msdn.microsoft.com/en-us/library/dd339982.aspx
+            # and FreeTDS information here (7.3 highest supported version):
+            # http://www.freetds.org/userguide/choosingtdsprotocol.htm
             util.warn(
                 "Unrecognized server version info '%s'.   Version specific "
                 "behaviors may not function properly.   If using ODBC "
-                "with FreeTDS, ensure server version 7.0 or 8.0, not 4.2, "
-                "is configured in the FreeTDS configuration." %
+                "with FreeTDS, ensure TDS_VERSION 7.0 through 7.3, not "
+                "4.2, is configured in the FreeTDS configuration." %
                 ".".join(str(x) for x in self.server_version_info))
         if self.server_version_info >= MS_2005_VERSION and \
                 'implicit_returning' not in self.__dict__: