Oracle driver doesn't support expressions for default date v


#1

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