I managed to get rails working with mysql 4.1.14 on fedora by installing the MySQL/Ruby bindings. However, when I ran the tests, I did get one failure:
[user@host mysql-ruby-2.7]$ ruby ./test.rb localhost user pass db
Loaded suite ./test
Started
....................................................................................F.........................
Finished in 0.223897 seconds.
1) Failure:
test_fetch_timestamp(TC_MysqlStmt2) [./test.rb:950]:
<[#<Mysql::Time:2037-12-31 23:59:59>]> expected but was
<[#<Mysql::Time:0000-00-00 00:00:00>]>.
110 tests, 351 assertions, 1 failures, 0 errors
The bindings work, and I'm up and running, but it looks like I may have some problems working with timestamps. Any suggestions? TIA
Well if you don't have problems with using timestamps in your own rails app, you should be OK, likewise if you don't depend on timestamps (for instance, you could use datetime instead), then you should be OK.
It might be worth reporting the issue to the author though
prim8-
That particulaar test has always failed for me with the C mysql/ruby bindings. Ever since a few versions ago in Nov 04. But the good thing is that it has never affected my use of the bindings. So I don't believe that it is much of a problem. I even use timestamps without a problem.
Bookmarks