Cannot Use DBVERSION_72 With DBLIB In 0.91 Release

Ken Collins <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
I just recently found out that I have been testing TinyTDS using DBVERSION_71/DBVERSION_80 on all my databases versions from 2000-2008 & Azure and I decided I needed to try out the DBVERSION_72 since my main focus is on 2005 and up. I have run into the following issues:

1) I can not configure FreeTDS --with-tdsver="7.2". Is this an oversight?

2) I found out that dbsetversion is basically a no-op that sets a global. However, it has not been updated with DBVERSION_72 and was throwing a bunch of "FreeTDS: db-lib: exiting because client error handler returned INT_EXIT for msgno 20206" which was misleading. Should it be patched like so?

--- dblib.c
+++ (clipboard)
@@ -5801,8 +5801,8 @@
 	case DBVERSION_42:
 	case DBVERSION_46:
 	case DBVERSION_100:
-	case DBVERSION_70:
-	case DBVERSION_80:
+	case DBVERSION_71:
+	case DBVERSION_72:
 		g_dblib_version = version;
 		return SUCCEED;
 	default:

3) Even if I do not use dbsetversion and avoid the problem above and instead rely on dbsetlversion(DBVERSION_72), I can not get a connection. The message is "TDS version downgraded to 7.1!" and it is driving me nuts. I consistently get this error weather I use the TDSVER environment variable, freetds.conf setting, etc. Any insight? 


 - Ken
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.