lib/sequel/extensions/date_arithmetic.rb in sequel-4.28.0 vs lib/sequel/extensions/date_arithmetic.rb in sequel-4.29.0
- old
+ new
@@ -64,9 +64,12 @@
DB2_DURATION_UNITS = DURATION_UNITS.zip(DURATION_UNITS.map{|s| Sequel.lit(s.to_s).freeze}).freeze
FDBSQL_DURATION_UNITS = DURATION_UNITS.zip(DURATION_UNITS.map{|s| Sequel.lit(s.to_s.chop).freeze}).freeze
# Append the SQL fragment for the DateAdd expression to the SQL query.
def date_add_sql_append(sql, da)
+ if defined?(super)
+ return super
+ end
h = da.interval
expr = da.expr
cast = case db_type = db.database_type
when :postgres
interval = ""