Oracle: datetime type casting problem
-------------------------------------
Key: JRUBY-2312
URL: http://jira.codehaus.org/browse/JRUBY-2312
Project: JRuby
Issue Type: Bug
Components: ActiveRecord-JDBC
Affects Versions: JRuby 1.1RC3
Environment: Activerecord-JDBC 0.8.0 / 0.7.2 , JRuby 1.1RC3 / 1.1RC2
Reporter: Jesse Hu
Data of the four types including "date", "time", "datetime", "timestamp" in
Rails are stored in Oracle as the DATE type. When retrieving a "datetime" type
data whose time part is zero from Oracle (that means its hour, minute and
second attributes equal to 0), it will be converted to a Date rather than a
Time, then operations on a Date (supposed to be a Time) may conduct to
"undefined method min()" error such as the datetime_helper functions.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email