Forum: Ruby on Rails Oracle driver doesn't support expressions for default date v

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Hammed M. (Guest)
on 2006-03-25 08:19
(Received via mailing list)
I'm working with a legacy Oracle db which has trunc(SYSDATE) and
TO_DATE('...','...') as default values for some date columns. The oracle
driver craps out with these default values or sets them to the default
1, 2000 date.

The culprit appears to be the cast_to_time method in oracle_adapter.rb.

Any pointers on how to change the driver to 'eval' the SYSDATE and
default values? Evaling these values probably won't work because that
to be done at the time of record insertion however.


This topic is locked and can not be replied to.