The subtract_temporals() database operation was not handling expressions returning SQL params in mixed database types. Regression in 35431298226165986ad07e91f9d3aca721ff38ec. Thanks Reupen Shah for the report. Backport of 9bcbcd599abac91ea853b2fe10b784ba32df043e from master