SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Sep 2005
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    MySQL/Ruby failed test_fetch_timestamp

    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

  2. #2
    Resident Java Hater
    Join Date
    Jul 2004
    Location
    Gerodieville Central, UK
    Posts
    446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

  3. #3
    SitePoint Zealot
    Join Date
    Nov 2004
    Location
    Yakima WA.
    Posts
    100
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •