DBI improvement

Discussion in 'Ruby' started by Ferenc Engard, Jan 20, 2004.

  1. Hello,

    I think all the DBI type classes (DBI::Timestamp etc.) should support
    the <=> operator. Lacking this makes life heavy; implementing them would
    be easy.

    Bye,
    Ferenc
     
    Ferenc Engard, Jan 20, 2004
    #1
    1. Advertising

  2. Ferenc Engard

    Ara.T.Howard Guest

    On Wed, 21 Jan 2004, Ferenc Engard wrote:

    > Date: Wed, 21 Jan 2004 04:43:33 +0900
    > From: Ferenc Engard <>
    > Newsgroups: comp.lang.ruby
    > Subject: DBI improvement
    >
    > Hello,
    >
    > I think all the DBI type classes (DBI::Timestamp etc.) should support
    > the <=> operator. Lacking this makes life heavy; implementing them would
    > be easy.



    how about special timestamps? for example, postgresql supports

    '-infinity' < all_other_times < 'infinity'

    and

    'epoch' == '1970-01-01 00:00:00'

    things like this get tricky.

    >
    > Bye,
    > Ferenc
    >
    >
    >
    >


    --

    ATTN: please update your address books with address below!

    ===============================================================================
    | EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
    | PHONE :: 303.497.6469
    | ADDRESS :: E/GC2 325 Broadway, Boulder, CO 80305-3328
    | STP :: http://www.ngdc.noaa.gov/stp/
    | NGDC :: http://www.ngdc.noaa.gov/
    | NESDIS :: http://www.nesdis.noaa.gov/
    | NOAA :: http://www.noaa.gov/
    | US DOC :: http://www.commerce.gov/
    |
    | The difference between art and science is that science is what we
    | understand well enough to explain to a computer.
    | Art is everything else.
    | -- Donald Knuth, "Discover"
    |
    | /bin/sh -c 'for l in ruby perl;do $l -e "print \"\x3a\x2d\x29\x0a\"";done'
    ===============================================================================
     
    Ara.T.Howard, Jan 20, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ulloa
    Replies:
    1
    Views:
    537
    Juha Laiho
    Jul 22, 2004
  2. JV
    Replies:
    4
    Views:
    1,634
  3. Jerome Hauss
    Replies:
    0
    Views:
    181
    Jerome Hauss
    Oct 13, 2004
  4. Asby

    Mason, DBI, and DBI::Pg

    Asby, Jul 24, 2003, in forum: Perl Misc
    Replies:
    0
    Views:
    185
  5. Tim Haynes
    Replies:
    3
    Views:
    147
    Ron Reidy
    Sep 13, 2003
Loading...

Share This Page