lib/sequel/extensions/date_arithmetic.rb in sequel-3.47.0 vs lib/sequel/extensions/date_arithmetic.rb in sequel-3.48.0
- old
+ new
@@ -120,9 +120,10 @@
each_valid_interval_unit(h, DB2_DURATION_UNITS) do |value, sql_unit|
expr = Sequel.+(expr, Sequel.lit(["", " "], value, sql_unit))
end
false
else
+ Sequel::Deprecation.deprecate('Sequel::NotImplemented', 'Sequel 4 will just raise Error if date_arithmetic is not supported on the database')
raise NotImplemented, "date arithmetic is not implemented on #{db.database_type}"
end
if cast
expr = Sequel.cast(expr, Time)