= Rails 1.2.6
I've been down this road of not being able to get the SQLServer AR
driver to support pre-1970 SQLServer datetime fields before back in
Rails 1.1.6 (http://www.ruby-forum.com/topic/85216), but now I'm finally
updating this app. to Rails 1.2 and beyond.
So...below is a patch to the current 1.0.0 version of
sqlserver_adapter.rb (from the new separate AR adapter Rails 2.0-style
gem) that appears (in my app. so far) to successfully allow for the
successful manipulation of < 1970 datetime values in Rails. It requires
mods. to both the "cast_to_datetime" and "string_to_time" methods, and
as you can see, simply returns DateTime objects instead of Time objects
(which are limited to 1970 and later).
I'm not sure why the casts to time are there in the first place - my
guess is that the way that MySQL handles dates influences how this
SQLServer driver is handling dates.
I will try and make time to set up a proper patch submission in Trac at
some point, but really pressed for time these days.
---- BEGIN PATCH ----