Skip to content

fix(mssql): update tds version #826

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

Merged
merged 1 commit into from
Oct 15, 2024
Merged

fix(mssql): update tds version #826

merged 1 commit into from
Oct 15, 2024

Conversation

grieve54706
Copy link
Contributor

@grieve54706 grieve54706 commented Oct 15, 2024

We found an error.

('42000', '[42000] [FreeTDS][SQL Server]Unicode data in a Unicode-only collation or ntext data cannot be sent to clients using DB-Library (such as ISQL) or ODBC version 3.7 or earlier. (4004) (SQLFetch)')

The default TDS or ODBC version in the base image python:3.11-slim-buster(Debian 10) may be too low.
The default TDS version is 4.2. Update the version, and it will be fine.
You can execute tsql -C in the container will get this.

# tsql -C
Compile-time settings (established with the "configure" script)
                            Version: freetds v1.00.104
             freetds.conf directory: /etc/freetds
     MS db-lib source compatibility: no
        Sybase binary compatibility: yes
                      Thread safety: yes
                      iconv library: yes
                        TDS version: 4.2
                              iODBC: no
                           unixodbc: yes
              SSPI "trusted" logins: no
                           Kerberos: yes
                            OpenSSL: no
                             GnuTLS: yes
                               MARS: no

Reference:
https://www.freetds.org/userguide/choosingtdsprotocol.htm
https://learn.microsoft.com/en-us/sql/relational-databases/security/networking/tds-8

@grieve54706 grieve54706 requested a review from goldmedal October 15, 2024 09:35
Copy link
Contributor

@goldmedal goldmedal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @grieve54706 LGTM

@goldmedal goldmedal merged commit e084e2b into main Oct 15, 2024
14 checks passed
@goldmedal goldmedal deleted the bugfix/mssql-unicode branch October 15, 2024 09:51
grieve54706 added a commit that referenced this pull request Dec 13, 2024
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

Successfully merging this pull request may close these issues.

2 participants