activerecord-sqlserver-adapter: activerecord-sqlserver-adapter-3.2.14 with rails 3.2.22.5, problem in user options

Activerecord-sqlserver-adapter throws the following error at me:

/gems/activerecord-sqlserver-adapter-3.2.14/lib/active_record/connection_adapters/sqlserver/database_statements.rb:139:in block in user_options': undefined method gsub’ for [“textsize”, “2147483647”]:Array (NoMethodError)

I have tried this on ruby-2.1.10, ruby-2.2.6 and ruby-2.3.3, same result.

My database.yml file looks like this

development: adapter: sqlserver mode: dblib dataserver: my_server database: my_database username: my_username password: xxxxxx timeout: 0

My Gemfile looks like this:

source ‘https://rubygems.org’ gem ‘rails’, ‘3.2.22.5’

gem ‘tiny_tds’, ‘~> 1.1’ gem “activerecord-sqlserver-adapter”, “~> 3.2.14”

group :assets do gem ‘sass-rails’, ‘~> 3.2.3’ gem ‘coffee-rails’, ‘~> 3.2.1’

gem ‘uglifier’, ‘>= 1.0.3’ end

gem ‘jquery-rails’

The application has nothing else in it, to isolate the problem. The error is thrown when I attempt to start a console. FreeTDS and Tinytds have been tested and work just fine.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 30 (14 by maintainers)

Commits related to this issue

Most upvoted comments

Up now!