Re: Best way to get FreeTDS version?

Marc Abramowitz <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <E5CD626161E81C4DBB58B3E7F649BEA21394A4@DAGN04b-e6.exg6.exghost.com>
On 3/1/13 7:56 PM, "James K. Lowden" <[email protected]> wrote:

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



OK, here you go:

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)

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