Skip to Content.
Sympa Menu

freetds - Re: [freetds] Setting tds version to 8.0 (0x701)

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddy77 AT gmail.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Setting tds version to 8.0 (0x701)
  • Date: Wed, 24 Nov 2010 09:01:24 +0100

2010/11/24 Fulvio Casali <fulvioc AT webcollective.coop>:
> Hi all,
>
> I'm not sure if this is an issue, but I thought I'd bring to your attention
> a discrepancy I noticed between 0.82 and 0.83.dev.20101122.
> I set the TDSDUMPCONFIG environment variable, and ran tsql -S MYDSN -U
> myuser -P mypass, and then looked at the dump config file, and compared it
> with the one generated by 0.82.
>
> The following two lines are repeated both in the "Looking for section
> global" part, as well as in the "Looking for section MYDSN" part:
>
> config.c:557:   tds version = '8.0'
> config.c:773:Setting tds version to 8.0 (0x701) from $TDSVER.
>
> Is the value 0x701 correct?
>
>
> Then there are these, under "Final connection parameters:":
>
> config.c:223:          major_version = 7
> config.c:224:          minor_version = 1
>
>
> When I run 0.82, major_version is 8 and minor_version is 0.
>
> I don't have a $TDSVER environment variable set, but I am specifying the
> following in etc/freetds.conf, both in the [global] section, as well as in
> the [MYDSN] section:
>
>       tds version = 8.0
>
>
>
> Thanks,
> Fulvio

Perfectly expected. TDS protocol version is 7.1, 8.0 is the former
"wrong" version still supported for compatibility. 0.83 supports both
(8.0 and 7.1) but internally use correct one (7.1 or 0x701 in
tds_version).

freddy77




Archive powered by MHonArc 2.6.24.

Top of Page