Hammed Malik
2006-Mar-25 06:19 UTC
[Rails] Oracle driver doesn''t support expressions for default date values
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060325/882f4f18/attachment.html