Skip to Content.
Sympa Menu

freetds - [freetds] Cannot Use DBVERSION_72 With DBLIB In 0.91 Release

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Ken Collins <ken AT metaskills.net>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: [freetds] Cannot Use DBVERSION_72 With DBLIB In 0.91 Release
  • Date: Sat, 3 Sep 2011 22:29:43 -0400


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



Archive powered by MHonArc 2.6.24.

Top of Page