yamldb/yaml_db

t.datetime objects from MySQL dumping out as !ruby/object:Mysql::Time {}

jrosengren opened this issue · 2 comments

At some point recently, t.datetime schema objects in our production MySQL DB started dumping out as:

!ruby/object:Mysql::Time {}

I've poked at it a bit, but I can't figure out which of the recently upgraded components is causing the issue. We're using the following relevant gems:

Gems included by the bundle:

  • actionmailer (3.1.3)
  • actionpack (3.1.3)
  • activemodel (3.1.3)
  • activerecord (3.1.3)
  • activeresource (3.1.3)
  • activesupport (3.1.3)
  • arel (2.2.1)
  • aws (2.5.6)
  • builder (3.0.0)
  • bundler (1.0.18)
  • capistrano (2.9.0)
  • erubis (2.7.0)
  • highline (1.6.8)
  • hike (1.2.1)
  • hpricot (0.8.5)
  • http_connection (1.4.1)
  • i18n (0.6.0)
  • jquery-rails (1.0.19)
  • json (1.6.2)
  • mail (2.3.0)
  • mime-types (1.17.2)
  • multi_json (1.0.4)
  • mysql (2.8.1)
  • net-ldap (0.2.2)
  • net-scp (1.0.4)
  • net-sftp (2.0.5)
  • net-ssh (2.2.1)
  • net-ssh-gateway (1.1.0)
  • polyglot (0.3.3)
  • rack (1.3.5)
  • rack-cache (1.1)
  • rack-mount (0.8.3)
  • rack-ssl (1.3.2)
  • rack-test (0.6.1)
  • rails (3.1.3)
  • railties (3.1.3)
  • rake (0.9.2.2)
  • rdoc (3.11)
  • route53 (0.2.1)
  • ruby-hmac (0.4.0)
  • sprockets (2.0.3)
  • sqlite3 (1.3.4)
  • thor (0.14.6)
  • tilt (1.3.3)
  • treetop (1.4.10)
  • tzinfo (0.3.31)
  • uuidtools (2.1.2)
  • will_paginate (3.0.2)
  • xml-simple (1.1.1)
  • yaml_db (0.2.2)

I've done some searching, but haven't found anybody else reporting a similar problem, so hopefully we're just doing something dumb that's easy to fix.

Thanks!

+1

I was able to resolve this issue by switching over to the mysql2 gem.