rails-sqlserver / tiny_tds

TinyTDS - Simple and fast FreeTDS bindings for Ruby using DB-Library.
Other
607 stars 189 forks source link

Draft: Ruby 3.1 #523

Closed bryanwieg closed 1 year ago

bryanwieg commented 1 year ago

experimental ruby 3.1 support

you should be able to build and test by setting env var ruby_version to 3.1, then running the script start_dev.sh

clearly, something changes in ruby 3.1 and tls. freetds receives an error "Adaptive Server connection failed", which turns out to be ssl related. updating dependencies version did not fix the issue. but further research found it is a known issue with other projects that depend on the freetds library.

i tried updating openssl to the latest version, that didn't work. the only thing that has given progress so far is setting freetds to build with gnutls instead of openssl, which seem to be solution accepted by most people.

as a result, it may be needed to switch tinytds to gnutls