Issue
I'm trying to query a DB which has some custom types, I've not seen before, one column has the type TD_BooleanFalse, when querying the db, the following error is raised:
ActiveRecord::StatementInvalid (TinyTds::Error: Type DT_BooleanFalse is not a defined system type.)
I've tried registering a type with an initializer like so:
ActiveRecord::Type.register(:DT_BooleanFalse, ActiveRecord::Type::SQLServer::Boolean)
And then setting the attribute type in the model with:
attribute :isDeleted, :DT_BooleanFalse
Although this does not work.
Details
Issue
I'm trying to query a DB which has some custom types, I've not seen before, one column has the type
TD_BooleanFalse, when querying the db, the following error is raised:I've tried registering a type with an initializer like so:
And then setting the attribute type in the model with:
Although this does not work.
Details
Rails version:
6.1.4.4SQL Server adapter version:
v6.1.2.1TinyTDS version: v1.3.7
FreeTDS details: