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 01:55:12 +0000 Marc Abramowitz <[email protected]> wrote: > On 3/1/13 5:43 PM, "James K. Lowden" <[email protected]> wrote: > > >On Fri, 1 Mar 2013 15:55:47 +0000 > >Marc Abramowitz <[email protected]> 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 > [email protected] > http://lists.ibiblio.org/mailman/listinfo/freetds