Open nPaul opened 3 years ago
FREETDS version
tsql -C
Compile-time settings (established with the "configure" script)
Version: freetds v1.1.24
freetds.conf directory: /usr/local/etc
MS db-lib source compatibility: no
Sybase binary compatibility: no
Thread safety: yes
iconv library: yes
TDS version: 7.3
iODBC: no
unixodbc: yes
SSPI "trusted" logins: no
Kerberos: no
OpenSSL: yes
GnuTLS: no
MARS: yes
I'm having the exact issue. Were you able to solve this?
To be more helpful, this is caused by connecting to our ERP 2012 SQL Server DB. It has many different custom column types. SiteType, being among them. All which cause the error, TinyTds::Error: Type SiteType is not a defined system type.
It would be helpful to know how to pass custom system types to TinyTDS. Many of these are datatypes are glorified strings.
Is it possible to map, for instance, SiteType = String, somewhere, so that TinyTDS can handle?
There is an article about using custom data types in Rails with PostgreSQL https://pganalyze.com/blog/custom-postgres-data-types-ruby-rails
The same technique might work for the SQL Server adapter but I've never tried it myself.
Rails version 6 multi database using
for example if run db:rollback got error:
--trace log