dbsetlversion + DBVERSION_100

LacaK <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
Hi,
can you please add into dblib.c support for Sybase 10 and above in 
dbsetlversion()
See attached diff.
TIA
-Laco.

_______________________________________________
FreeTDS mailing list
[email protected]
http://lists.ibiblio.org/mailman/listinfo/freetds
dblib.c.diff (text/plain, 385 B)
--- dblib.c.ori	Thu Aug 18 02:54:40 2011
+++ dblib.c	Thu Nov 10 13:45:56 2011
@@ -936,6 +936,9 @@ dbsetlversion (LOGINREC * login, BYTE ve
 	case DBVER60:
 		login->tds_login->tds_version = 0x700;
 		return SUCCEED;
+	case DBVERSION_100:
+		tds_set_version(login->tds_login, 5, 0);
+		return SUCCEED;
 	case DBVERSION_71:
 		tds_set_version(login->tds_login, 7, 1);
 		return SUCCEED;
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.