I just noticed something. I do not think we have any tests for
smalldatetime columns. I could start to add some to make sure this is
not an adapter bug. Curious tho... any reason why you have that vs
just datetime? Just curious.
BTW, some background. Other adapters like the PostgreSQL one supports
storing nanoseconds while SQL Server only stores microseconds. We
wanted to be as cool as we could and take ruby objects that acted like
datetime as in core and store the appropriate amount we could (in and
out) of the DB that SQL Server supported. I had a series of commits
back in the data that added that as well as our own tests. Search the
CHANGELOG if your interested or run the tests.
Hmm... I just noticed I did add tests for smalldatetime. Take a look
at the column_test_sqlserver.rb, there is a context around line 155
called "For datetime columns" with a sub context called "For
smalldatetime types". Can you run the test to see if they are even
passing for you? This could be language and/or DB config specific. The
tests are a great place to start and they help point us to what is
going wrong. FYI, all tests pass for me in 2000/2005/2008 in Rails
2.3.4 with ruby 1.9.1 and 1.8.7.
- Ken
On Sep 14, 2009, at 3:42 PM, Chris wrote:
>