patch report: Fix interval computations

sql_interval is probably a remnant from 3.6. Closest thing to it I
could find is sql_date_math.