freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] Cannot Use DBVERSION_72 With DBLIB In 0.91 Release
- From: "James K. Lowden" <jklowden AT freetds.org>
- To: freetds AT lists.ibiblio.org
- Subject: Re: [freetds] Cannot Use DBVERSION_72 With DBLIB In 0.91 Release
- Date: Thu, 8 Sep 2011 00:52:36 -0400
On Sun, 4 Sep 2011 10:21:57 -0400
Ken Collins <ken AT metaskills.net> wrote:
> >> 2) I found out that dbsetversion is basically a no-op that sets a
> >> global.
> >
> > Sorry? A "no-op that sets a global" is a contradiction.
>
> Maybe a bad term on my part, the code comment said it has "No effect
> on behavior". It does set the global and that global is not used
> anywhere from my code search too.
Confirmed, Ken. dbsetversion() should call tds_set_version(). The
code you found was probably a placeholder once upon a time that never
got finished. Most people don't care, you see, because freetds.conf
and TDSVER cover the same territory. (I wonder how many db-lib
programs ever called dbsetversion() or dbsetlversion(). I used
Microsoft's db-lib for over 10 years without setting the version.)
> If anyone has advice on why dbsetlversion() is not doing what I
> expect, I'd love to hear it. I was thinking it would set the version
> in the login structure and work exactly like setting the TDSVER
> environment variable or "tds version" in a external conf file.
It should work that way, but it looks like it doesn't. dbsetlversion()
correctly calls tds_set_version(), which is used by ct-lib and db-lib.
Likely as not the tds_version of the login record is overwritten by
tds_config_verstr() when the connection is made. That whole process
has always been more complicated than it needs to be, attracting
gnats.
Maybe it should call putenv(3) instead....
--jkl
-
[freetds] Cannot Use DBVERSION_72 With DBLIB In 0.91 Release,
Ken Collins, 09/03/2011
-
Re: [freetds] Cannot Use DBVERSION_72 With DBLIB In 0.91 Release,
James K. Lowden, 09/04/2011
-
Re: [freetds] Cannot Use DBVERSION_72 With DBLIB In 0.91 Release,
Ken Collins, 09/04/2011
-
Re: [freetds] Cannot Use DBVERSION_72 With DBLIB In 0.91 Release,
James K. Lowden, 09/04/2011
- Re: [freetds] Cannot Use DBVERSION_72 With DBLIB In 0.91 Release, Frediano Ziglio, 09/05/2011
-
Re: [freetds] Cannot Use DBVERSION_72 With DBLIB In 0.91 Release,
James K. Lowden, 09/08/2011
- Re: [freetds] Cannot Use DBVERSION_72 With DBLIB In 0.91 Release, Jackson, Craig, 09/08/2011
-
Re: [freetds] Cannot Use DBVERSION_72 With DBLIB In 0.91 Release,
LacaK, 09/08/2011
-
Re: [freetds] Cannot Use DBVERSION_72 With DBLIB In 0.91 Release,
Ken Collins, 09/08/2011
-
Re: [freetds] Cannot Use DBVERSION_72 With DBLIB In 0.91 Release,
LacaK, 09/20/2011
- Re: [freetds] Cannot Use DBVERSION_72 With DBLIB In 0.91 Release, Ken Collins, 09/20/2011
-
Re: [freetds] Cannot Use DBVERSION_72 With DBLIB In 0.91 Release,
LacaK, 09/20/2011
-
Re: [freetds] Cannot Use DBVERSION_72 With DBLIB In 0.91 Release,
Ken Collins, 09/08/2011
-
Re: [freetds] Cannot Use DBVERSION_72 With DBLIB In 0.91 Release,
James K. Lowden, 09/04/2011
-
Re: [freetds] Cannot Use DBVERSION_72 With DBLIB In 0.91 Release,
Ken Collins, 09/04/2011
-
Re: [freetds] Cannot Use DBVERSION_72 With DBLIB In 0.91 Release,
James K. Lowden, 09/04/2011
Archive powered by MHonArc 2.6.24.