Skip to Content.
Sympa Menu

freetds - Re: [freetds] Best way to get FreeTDS version?

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT freetds.org>
  • To: freetds AT lists.ibiblio.org
  • Subject: Re: [freetds] Best way to get FreeTDS version?
  • Date: Sat, 2 Mar 2013 22:30:56 -0500

On Sat, 2 Mar 2013 17:56:29 +0000
Marc Abramowitz <marca AT surveymonkey.com> wrote:

> On 3/1/13 7:56 PM, "James K. Lowden" <jklowden AT freetds.org> 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




Archive powered by MHonArc 2.6.24.

Top of Page