DBI improvement

F

Ferenc Engard

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
 
A

Ara.T.Howard

Date: Wed, 21 Jan 2004 04:43:33 +0900
From: Ferenc Engard <[email protected]>
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'
===============================================================================
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,007
Latest member
obedient dusk

Latest Threads

Top