rails-sqlserver / activerecord-sqlserver-adapter

SQL Server Adapter For Rails
MIT License
972 stars 558 forks source link

Warning: undefining the allocator of T_DATA class TinyTds::Result #1046

Closed daveomcd closed 1 year ago

daveomcd commented 1 year ago

Issue

When I'm running rails t I get a lot of warnings. /.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/activerecord-sqlserver-adapter-7.0.1.0/lib/active_record/connection_adapters/sqlserver_adapter.rb:111: warning: undefining the allocator of T_DATA class TinyTds::Result

Expected behavior

I want to silence these warnings to read the console output better when running my tests.

Actual behavior

Run rails t in a terminal.

Details

Compile-time settings (established with the "configure" script)
                            Version: freetds v1.3.12
             freetds.conf directory: /opt/homebrew/etc
     MS db-lib source compatibility: no
        Sybase binary compatibility: yes
                      Thread safety: yes
                      iconv library: yes
                        TDS version: 7.3
                              iODBC: no
                           unixodbc: yes
              SSPI "trusted" logins: no
                           Kerberos: yes
                            OpenSSL: yes
                             GnuTLS: no
                               MARS: yes.
aidanharan commented 1 year ago

This appears to be a TinyTDS issue with Ruby 3.2 https://github.com/rails-sqlserver/tiny_tds/issues/515