lib/groupdate/adapters/mysql_adapter.rb in groupdate-5.2.3 vs lib/groupdate/adapters/mysql_adapter.rb in groupdate-5.2.4
- old
+ new
@@ -47,10 +47,11 @@
clean_group_clause(@relation.send(:sanitize_sql_array, query))
end
def clean_group_clause(clause)
- clause.gsub(/ (\-|\+) INTERVAL 0 second/, "")
+ # zero quoted in Active Record 7+
+ clause.gsub(/ (\-|\+) INTERVAL 0 second/, "").gsub(/ (\-|\+) INTERVAL '0' second/, "")
end
end
end
end