Search code examples
ruby-on-railsdatabaseactiverecordnuodb

ActiveRecord::StatementInvalid TypeError not a supported Ruby type, with NuoDB


I'm using Rails 3.2.13 with a legacy NuoDB database and the activerecord-nuodb-adapter gem. The database is connected and I can get an accurate list of tables with ActiveRecord::Base.connections.tables.

Here's the error:

[2] pry(main)> Store.first
  Store Load (3.2ms)  SELECT `store`.* FROM `store` FETCH FIRST 1 ROWS ONLY
ActiveRecord::StatementInvalid: TypeError: not a supported ruby type: 2004: SELECT `store`.* FROM `store`  FETCH FIRST 1 ROWS ONLY
from /home/bion/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-nuodb-adapter-1.0.3/lib/active_record/connection_adapters/nuodb_adapter.rb:905:in `columns'

Solution

  • The type error has been resolved in an update of the nuodb ruby driver.