Skip to content

TinyTds::Error: Bad numbytes parameter passed to dbstrcpy #537

@Nyazfoxsoft

Description

@Nyazfoxsoft

Hi,

I'm having an issue with using this gem. Hoping someone can point to the right direction. Many thanks

Environment

Operating System

Using MacOS M1 Venture
ProductName: macOS
ProductVersion: 13.2.1
BuildVersion: 22D68

TinyTDS Version and Information
Using Version: freetds v1.3.18

Compile-time settings (established with the "configure" script)
                            Version: freetds v1.3.18
             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

FreeTDS Version
freetds 1.3.18_1

Description

I'm getting the following error when trying to access an item from database using rails console

1] pry(main)> StockItem.last

TinyTds::Error: Bad numbytes parameter passed to dbstrcpy

from /Users/nyaz/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/tiny_tds-2.1.5/lib/tiny_tds/client.rb:60:in `connect'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions