Skip to content

can't cast ActiveRecord::ConnectionAdapters::SQLServer::Type::Char::Data to varchar #523

@neongrau

Description

@neongrau

Getting the error

can't cast ActiveRecord::ConnectionAdapters::SQLServer::Type::Char::Data to varchar

when i try to modify or insert a record into a table that has varchar columns, although i'm not sure it's the varchar columns that is causing it.

Googling for the error made me suspect tiny-tds at first but downgrading that did not help.

So i downgraded activerecord-sqlserver-adapter from 4.2.15 insteps until i found that 4.2.10 is the last version working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions