diff options
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/oci_adapter.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/oci_adapter.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/oci_adapter.rb b/activerecord/lib/active_record/connection_adapters/oci_adapter.rb index 9f94df7277..bdbf6b2e5d 100644 --- a/activerecord/lib/active_record/connection_adapters/oci_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/oci_adapter.rb @@ -110,6 +110,7 @@ begin def cast_to_date_or_time(value) return value if value.is_a? Date + return nil if value.blank? guess_date_or_time (value.is_a? Time) ? value : cast_to_time(value) end |