Skip to Content.
Sympa Menu

freetds - [freetds] Small CTlib patch

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Michael Peppler <mpeppler AT peppler.org>
  • To: freetds AT lists.ibiblio.org
  • Subject: [freetds] Small CTlib patch
  • Date: Sun, 12 Oct 2003 11:09:05 -0700

In DBD::Sybase I like to know what version of OpenClient is being used -
it helps tremendously when trying to debug problems over email :-)

So I added the attached to src/ctlib/ct.c.

I don't think there should be any negative impact :-)

Michael
--
Michael Peppler Data Migrations, Inc.
mpeppler AT peppler.org http://www.mbay.net/~mpeppler
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short or
long term contract positions - http://www.mbay.net/~mpeppler/resume.html
*** ct.c~	Thu Sep 25 14:14:24 2003
--- ct.c	Sun Oct 12 10:52:23 2003
***************
*** 1498,1503 ****
--- 1498,1515 ----
  			ret = CS_FALSE;
  		}
  		break;
+         case CS_VER_STRING:
+ 		switch (action) {
+ 		case CS_GET:
+ 			if (buf && buflen > 0)
+ 				strncpy((char *)buf, TDS_VERSION_NO, buflen);
+ 			else
+ 				ret = CS_FALSE;
+ 			break;
+ 		default:
+ 			ret = CS_FALSE;
+ 		}
+ 		break;
  	default:
  		ret = CS_SUCCEED;
  		break;


  • [freetds] Small CTlib patch, Michael Peppler, 10/12/2003

Archive powered by MHonArc 2.6.24.

Top of Page