Upgraded activerecord-sqlserver-adapter from 2.2.22 to 2.3.8 and now getting an ODBC error
Posted
by stuartc
on Stack Overflow
See other posts from Stack Overflow
or by stuartc
Published on 2010-06-10T13:20:48Z
Indexed on
2010/06/10
16:32 UTC
Read the original article
Hit count: 289
I have been using MSSQL 2005 with Rails for quite a while now, and decided to bump my gems up on one of my projects and ran into a problem.
I moved from 2.2.22 to 2.3.8 (latest as of writing) and all of a sudden I got this:
ODBC::Error: S1090 (0) [unixODBC][Driver Manager]Invalid string or buffer length
I'm using a DSN connection with FreeTDS my database.yml
looks like this:
adapter: sqlserver
mode: ODBC
dsn: 'DRIVER=FreeTDS;TDSVER=7.0;SERVER=10.0.0.5;DATABASE=db;Port=1433;UID=user;PWD=pwd;'
Now in the mean time I moved back to 2.2.22 and there are no deprecation warnings and everything seems fine but obviously for the sake of being up to date, any ideas what could have changed in the adaptor that could cause this?
© Stack Overflow or respective owner