Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: Daniel Berger
RE: Date vs OraDate [ reply ]  
2005-10-18 14:32
Thank you! I would definitely like to see this become default behavior, but I can understand waiting.

- Dan

By: Kubo Takehiro
RE: Date vs OraDate [ reply ]  
2005-09-29 23:51
DateTime class was added at ruby 1.8.0.
But my knowledge about ruby libraries has been stopped at ruby 1.6.8.
Okay, I'll add DateTime options at the next release as following.

OCI8::BindType::Mapping[OCI8::SQLT_DAT] = OCI8::BindType::DateTime
OCI8::BindType::Mapping[OCI8::SQLT_TIMESTAMP] = OCI8::BindType::DateTime

These would not be default behaviour for a while.
It may be changed when major version is changed.

By: Daniel Berger
RE: Date vs OraDate [ reply ]  
2005-09-29 16:12
What about the DateTime class?

By: Kubo Takehiro
RE: Date vs OraDate [ reply ]  
2005-03-28 16:05
A Ruby Date class has date information only. But an OraDate class has date and time.
If you fetch a sysdate as a Date, hour, minute and second are truncated.

By: Daniel Berger
Date vs OraDate [ reply ]  
2005-03-24 19:31
Hi,

I noticed that something like a sysdate comes back as part of the "OraDate" class.

What is the difference between a standard Ruby Date class and an OraDate class? Why not just use the standard Date class?

Regards,

Dan