Any AR find() call that generates a SELECT * type query against a table
with a DATETIME column in SQL Server whose value occurs before 1970 will
fail, because of the coercion of SQL Server datetime types to Time
values in Ruby.
See sqlserver_adapter.rb line 490
(record[col] = record[col].to_time if record[col].is_a? DBI::Timestamp)
If I remove the coercion (just commenting out that line), I can
successfully execute these find() calls.
I have a couple of questions:
- Does anyone know of any adverse effects that I will incur by doing
- Does anyone know when this will be resolved in the sqlserver_adapter?
A related thread that has to do with the input side of this may be found
Still a big bug, in my opinion.