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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
0bcc972918891ef358b0b3dfb4e7f18b?d=identicon&s=25 Hammed Malik (Guest)
on 2006-03-25 07: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
Jan
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
TO_DATE
default values? Evaling these values probably won't work because that
needs
to be done at the time of record insertion however.

Thanks

Hammed
This topic is locked and can not be replied to.