Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tds version ignored #521

Open
leonardorame opened this issue Dec 15, 2023 · 2 comments
Open

tds version ignored #521

leonardorame opened this issue Dec 15, 2023 · 2 comments

Comments

@leonardorame
Copy link

Hi, I'm using FreeTDS 1.4.2 on FreeBSD 13.2

My /usr/local/etc/freetds/freetds.conf file is this:

[global]
        # TDS protocol version
        tds version = 7.0
        port = 1433
        client charset = UTF-8
        dump file = /tmp/freetds.log

[testdb]
host = 192.168.0.12
port = 1433
tds version = 7.0

When I use tsql it connects to testdb without issues. Now, if I try to connect using my own program (written in FreePascal), the log file /tmp/freetds.log reports that it is Connecting with protocol version 7.3, ignoring the tds version config.

If I set TDSVER=7.0 environment variable before running my program it connects ok.

The question is, why the config param tds version is ignored?, host and port are read perfectly.

@leonardorame
Copy link
Author

Fixed by building with GnuTLS instead of OpenSSL.

@freddy77
Copy link
Contributor

That's pretty weird... it should take the version configured. Did you try to use TDSDUMPCONFIG option (https://www.freetds.org/userguide/logging.html) ? Just to confirm that the right file was used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants