Oracle driver doesn't support expressions for default date v

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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs