Re: Best way to get FreeTDS version?

"James K. Lowden" <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
On Sat, 2 Mar 2013 17:56:29 +0000
Marc Abramowitz <[email protected]> wrote:

> On 3/1/13 7:56 PM, "James K. Lowden" <[email protected]> wrote:
> 
> >That's the right fix IMO.  If you supply a patch, I'd gladly apply
> >it.

> diff --git a/src/dblib/dblib.c b/src/dblib/dblib.c
> index 21ba37a..2a9978c 100644
> --- a/src/dblib/dblib.c
> +++ b/src/dblib/dblib.c
> @@ -6598,7 +6598,7 @@ const char *
>  dbversion()
>  {
>  	tdsdump_log(TDS_DBG_FUNC, "dbversion(void)\n");
> -	return rcsid_var;
> +	return TDS_VERSION_NO;
>  }
>  
>  #if defined(DBLIB_UNIMPLEMENTED)

Thanks.  Although a one-liner like that seems trivial, it's not.  It
saves me the time to investigate and test.  You're presumably already
using it, and it solves a problem for you.  We make your change part of
the next version, and everyone wins.  

Regards, 

--jkl
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.