freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "James K. Lowden" <jklowden AT freetds.org>
- To: freetds AT lists.ibiblio.org
- Subject: Re: [freetds] Best way to get FreeTDS version?
- Date: Fri, 1 Mar 2013 22:56:39 -0500
On Sat, 2 Mar 2013 01:55:12 +0000
Marc Abramowitz <marca AT surveymonkey.com> wrote:
> On 3/1/13 5:43 PM, "James K. Lowden" <jklowden AT freetds.org> wrote:
>
> >On Fri, 1 Mar 2013 15:55:47 +0000
> >Marc Abramowitz <marca AT surveymonkey.com> wrote:
> >
> >> I thought it would be nice to have a function in pymssql that
> >> prints out the version of FreeTDS in use.
> >
> >$ grep dbver api_status.txt
> >dblib core n/a dbversion
> >OK
> >
> >Is dbversion what you want?
>
> I looked at that and it's not exactly what I want:
>
> >>> pymssql.get_dbversion()
> '$Id: dblib.c,v 1.407 2012-03-11 15:52:22 freddy77 Exp $'
Ah. Well, you know, the way dbversion() is defined predates the
compile-time version manifest constant.
0 tdsver.h <global> 25 #define TDS_VERSION_NO
"freetds v0.92.dev.20120915"
Just change dbversion to refer to TDS_VERSION_NO instead. I see no
great value in using the CVS keyword expansion, especially now that
we're not using CVS. ;-)
That's the right fix IMO. If you supply a patch, I'd gladly apply it.
--jkl
>
>
> I wanted the version of FreeTDS rather than the version of a
> particular source file.
>
> Marc
>
> _______________________________________________
> FreeTDS mailing list
> FreeTDS AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds
-
[freetds] Best way to get FreeTDS version?,
Marc Abramowitz, 03/01/2013
-
Re: [freetds] Best way to get FreeTDS version?,
James K. Lowden, 03/01/2013
-
Re: [freetds] Best way to get FreeTDS version?,
Marc Abramowitz, 03/01/2013
-
Re: [freetds] Best way to get FreeTDS version?,
James K. Lowden, 03/01/2013
-
Re: [freetds] Best way to get FreeTDS version?,
Marc Abramowitz, 03/02/2013
-
Re: [freetds] Best way to get FreeTDS version?,
James K. Lowden, 03/02/2013
-
Re: [freetds] Best way to get FreeTDS version?,
Marc Abramowitz, 03/03/2013
- Re: [freetds] Best way to get FreeTDS version?, Frediano Ziglio, 03/09/2013
-
Re: [freetds] Best way to get FreeTDS version?,
Marc Abramowitz, 03/03/2013
-
Re: [freetds] Best way to get FreeTDS version?,
James K. Lowden, 03/02/2013
-
Re: [freetds] Best way to get FreeTDS version?,
Marc Abramowitz, 03/02/2013
-
Re: [freetds] Best way to get FreeTDS version?,
James K. Lowden, 03/01/2013
-
Re: [freetds] Best way to get FreeTDS version?,
Marc Abramowitz, 03/01/2013
-
Re: [freetds] Best way to get FreeTDS version?,
James K. Lowden, 03/01/2013
Archive powered by MHonArc 2.6.24.