jruby/activerecord-jdbc-adapter — pull request #144 by billkoch (2011-12-07 23:18:19+00:00)
Title: MS SQL adapter uses ParseDate (which was removed from Ruby 1.9)

When running JRuby in 1.9 mode, the MS SQL adapter will ultimately return nil (but a NameError uninitialized constant for ParseDate will be thrown) for any date related columns.

My change uses Ruby's DateTime.parse(...).to_time to return a Time object. This change works for me locally running SQL Server 2008. I'll be the first to admit I'm new to Ruby, so any feedback that you can provide would be great. I'm hoping this will at least get a conversation started to add support for JRuby's 1.9 mode.

As a side note, I believe this issue also affects the DB2 adapter, which was mentioned briefly in this issue: https://github.com/jruby/activerecord-jdbc-adapter/pull/70

Thanks!

Bill